Skip to content

Commit

Permalink
Deduplicate dependencies on configure and init (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
72636c authored Jul 8, 2021
1 parent ee44447 commit 3f0f14d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/sour-panthers-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'skuba': patch
---

**configure, init:** Deduplicate dependencies
3 changes: 3 additions & 0 deletions src/cli/configure/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ export const configure = async () => {
log.newline();
process.exit(1);
}
try {
await exec('npx', 'yarn-deduplicate', '--strategy=highest');
} catch {}
}

if (fixConfiguration || fixDependencies) {
Expand Down
1 change: 1 addition & 0 deletions src/cli/init/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export const init = async () => {
try {
await exec('yarn', 'add', '--dev', skubaSlug);
depsInstalled = true;
await exec('npx', 'yarn-deduplicate', '--strategy=highest');
} catch {}

await commitChanges(exec, `Clone ${templateName}`);
Expand Down

0 comments on commit 3f0f14d

Please sign in to comment.