Skip to content

Commit e608211

Browse files
FrozenPandazvsavkin
authored andcommittedAug 29, 2018
fix(schematics): fix migration version
1 parent 74734c9 commit e608211

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎packages/schematics/migrations/legacy-migrations/20180515-switch-to-nx6.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ export default {
3737
}
3838
);
3939

40-
const currentVersion = readJsonFile(
41-
join(__dirname, '../../package.json')
42-
);
40+
const currentVersion = readJsonFile(join(__dirname, '../../package.json'))
41+
.version;
4342
execSync(
4443
`ng generate @schematics/update:migrate --package @nrwl/schematics --collection @nrwl/schematics/migrations/migrations.json --from 1.0.3 --to ${currentVersion}`,
4544
{

0 commit comments

Comments
 (0)
Please sign in to comment.