Skip to content

Commit

Permalink
run npm install with package lock only flag to sync deps
Browse files Browse the repository at this point in the history
  • Loading branch information
timonmasberg committed Dec 20, 2023
1 parent ed7bee4 commit 50191cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nx-migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export async function migrate(keepMigrationsFile: boolean): Promise<void> {
npm_config_yes: String(true)
}
})
await exec('npm i')
await exec('npm install')
await exec(
'npx nx migrate --run-migrations=migrations.json --create-commits',
[],
Expand All @@ -21,7 +21,7 @@ export async function migrate(keepMigrationsFile: boolean): Promise<void> {
}
)
// sometimes migrations change packages without installing them, so naivly install dependencies here again
await exec('npm i')
await exec('npm install --package-lock-only')

if (!keepMigrationsFile) {
fs.unlinkSync('./migrations.json')
Expand Down

0 comments on commit 50191cc

Please sign in to comment.