Skip to content

Commit

Permalink
fix(schematic): add a migration to add tsconfig.tools.json
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Apr 24, 2018
1 parent ea42347 commit c18baf0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions packages/schematics/migrations/20180424-add-tsconfig-tools.ts
Original file line number Diff line number Diff line change
@@ -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
)
);
}
};
2 changes: 1 addition & 1 deletion packages/schematics/src/lib-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit c18baf0

Please sign in to comment.