fix(schematic): add a migration to add tsconfig.tools.json

This commit is contained in:
Victor Savkin 2018-04-24 12:03:17 -04:00
parent ea423477df
commit c18baf01ca
2 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,26 @@
import { writeFileSync } from 'fs';
import * as path from 'path';
export default {
description: 'Add tsconfig.tools.json',
run: () => {
writeFileSync(
path.join('tools', 'tsconfig.tools.json'),
JSON.stringify(
{
extends: '../tsconfig.json',
compilerOptions: {
outDir: '../dist/out-tsc/tools',
rootDir: '.',
module: 'commonjs',
target: 'es5',
types: ['jasmine', 'node']
},
include: ['**/*.ts']
},
null,
2
)
);
}
};

View File

@ -8,7 +8,7 @@ export const nxVersion = '*';
export const schematicsVersion = '*';
export const angularCliSchema =
'./node_modules/@nrwl/schematics/src/schema.json';
export const latestMigration = '20180412-nx-update-scripts';
export const latestMigration = '20180424-add-tsconfig-tools';
export const prettierVersion = '1.10.2';
export const typescriptVersion = '2.6.2';
export const rxjsVersion = '^5.5.6';