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 50191cc commit 5ecb076
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41797,12 +41797,12 @@ function migrate(keepMigrationsFile) {
yield (0, exec_1.exec)('npx nx migrate latest', [], {
env: Object.assign(Object.assign({}, process.env), { npm_config_yes: String(true) })
});
yield (0, exec_1.exec)('npm i');
yield (0, exec_1.exec)('npm install');
yield (0, exec_1.exec)('npx nx migrate --run-migrations=migrations.json --create-commits', [], {
env: Object.assign(Object.assign({}, process.env), { npm_config_yes: String(true), NX_MIGRATE_SKIP_INSTALL: String(true) })
});
// sometimes migrations change packages without installing them, so naivly install dependencies here again
yield (0, exec_1.exec)('npm i');
yield (0, exec_1.exec)('npm install --package-lock-only');
if (!keepMigrationsFile) {
fs_1.default.unlinkSync('./migrations.json');
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit 5ecb076

Please sign in to comment.