Skip to content

Commit

Permalink
fix: dedup before scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
iowillhoit committed Jan 25, 2023
1 parent 0df01bf commit 10c4d46
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/commands/cli/release/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,12 @@ export default class build extends SfCommand<void> {
}
repo.package.writePackageJson();

await this.exec('yarn install');
// streamline the lockfile
// Run an install to generate the lock file (skip all pre/post scripts)
await this.exec('yarn install --ignore-scripts');
// Remove duplicates in the lockfile
await this.exec('npx yarn-deduplicate');
// Run an install with deduplicated dependencies (with scripts)
await this.exec('yarn install');

if (flags.snapshot) {
this.log('Updating snapshots');
Expand Down

0 comments on commit 10c4d46

Please sign in to comment.