Skip to content

Commit

Permalink
fix "tsci add" not working for multiple packages
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Mar 29, 2024
1 parent a5aaf40 commit 6cae780
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/cmd-fns/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const addCmd = async (ctx: AppContext, args: any) => {
.join(" ")}`
console.log(kleur.gray(`> ${cmd}`))

await $`npm add ${flagsString} ${params.packages
.map((p) => `@tsci/${p.replace(/\//, ".")}`)
.join(" ")}`
await $`npm add ${flagsString} ${params.packages.map(
(p) => `@tsci/${p.replace(/\//, ".")}`
)}`
}

0 comments on commit 6cae780

Please sign in to comment.