Skip to content

Commit

Permalink
fixes nx migrate skip install env name
Browse files Browse the repository at this point in the history
  • Loading branch information
timonmasberg committed Nov 10, 2023
1 parent 8d282a2 commit 8174f43
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41800,7 +41800,7 @@ function migrate(keepMigrationsFile, legacyPeerDeps) {
env: Object.assign(Object.assign({}, process.env), { npm_config_legacy_peer_deps: String(legacyPeerDeps) })
});
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) })
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', [], {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/nx-migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function migrate(
env: {
...process.env,
npm_config_yes: String(true),
nx_migrate_skip_install: String(true)
NX_MIGRATE_SKIP_INSTALL: String(true)
}
}
)
Expand Down

0 comments on commit 8174f43

Please sign in to comment.