Skip to content

Commit

Permalink
feat(schematics): add a migration updating the version of prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Jan 20, 2018
1 parent 9609fc6 commit 847a249
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions packages/schematics/migrations/20180120-update-prettier.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { updateJsonFile } from '../src/collection/utility/fileutils';

export default {
description: 'Update the version of prettier',
run: () => {
updateJsonFile('package.json', json => {
json.devDependencies = {
...json.devDependencies,
prettier: '1.10.2'
};
});
}
};
2 changes: 1 addition & 1 deletion packages/schematics/src/collection/utility/lib-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const ngrxVersion = '4.1.1';
export const nxVersion = '*';
export const schematicsVersion = '*';
export const angularCliSchema = './node_modules/@nrwl/schematics/src/schema.json';
export const latestMigration = '20180116-update-command-line-scripts-to-use-nx-command';
export const latestMigration = '20180120-update-prettier';
export const prettierVersion = '1.10.2';
export const typescriptVersion = '2.5.3';
export const rxjsVersion = '^5.5.2';
Expand Down

0 comments on commit 847a249

Please sign in to comment.