Skip to content

Commit

Permalink
fix(fsweb): Use yarn.lock for fsweb (#906)
Browse files Browse the repository at this point in the history
Allows us to lock versions of subdependencies when running fsweb.
  • Loading branch information
Cauldrath authored and bweissbart committed Oct 29, 2019
1 parent 211209a commit 2405dda
Show file tree
Hide file tree
Showing 2 changed files with 6,263 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/flagship/src/lib/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ export function homepage(homepage: string): void {
}

/**
* Performs an npm install for web packages.
* Performs a yarn install for web packages.
*/
export function install(): void {
logInfo(`running npm install for Web`);
logInfo(`running yarn for Web`);

const webPath = path.project.resolve('web');

try {
exec(`cd ${webPath} && npm install`, {
exec(`cd ${webPath} && yarn`, {
stdio: [0, 1, 2]
});

Expand All @@ -39,7 +39,7 @@ export function install(): void {
fs.removeSync(path.project.resolve('web', 'node_modules', 'react'));

} catch (err) {
logError(`npm install for Web`, err);
logError(`yarn for Web`, err);

process.exit(1);
}
Expand Down
Loading

0 comments on commit 2405dda

Please sign in to comment.