Skip to content

Commit

Permalink
feat(core): add NX_MIGRATE_USE_NEXT flag to test next version of migr…
Browse files Browse the repository at this point in the history
…ate (#9829)
  • Loading branch information
FrozenPandaz committed Apr 14, 2022
1 parent 1857138 commit d1b471c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/nx/src/command-line/nx-commands.ts
Expand Up @@ -715,9 +715,11 @@ function nxCliPath() {

const { dirSync } = require('tmp');
const tmpDir = dirSync().name;
const version =
process.env.NX_MIGRATE_USE_NEXT === 'true' ? 'next' : 'latest';
writeJsonFile(path.join(tmpDir, 'package.json'), {
dependencies: {
nx: 'latest',
nx: version,
},
license: 'MIT',
});
Expand Down

0 comments on commit d1b471c

Please sign in to comment.