Skip to content

Commit

Permalink
feat(core): update prettier to 2.0.4 (#2885)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarmatei committed Apr 29, 2020
1 parent c9cac2d commit 9b585cb
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 4 deletions.
4 changes: 2 additions & 2 deletions e2e/node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,10 @@ forEachCli(currentCLIName => {
preset: '../../jest.config.js',
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': 'ts-jest'
'^.+\\.[tj]sx?$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
coverageDirectory: '../../coverage/libs/${nestlib}'
coverageDirectory: '../../coverage/libs/${nestlib}',
};
`
);
Expand Down
13 changes: 13 additions & 0 deletions packages/workspace/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@
"version": "9.2.0-beta.1",
"description": "Add cacheable operations to nx.json",
"factory": "./src/migrations/update-9-2-0/update-9-2-0"
},
"update-9-3-0": {
"version": "9.3.0-beta.1",
"description": "Update prettier to v2",
"factory": "./src/migrations/update-9-3-0/update-9-3-0"
}
},
"packageJsonUpdates": {
Expand Down Expand Up @@ -540,6 +545,14 @@
"alwaysAddToPackageJson": false
}
}
},
"9.3.0": {
"version": "9.3.0-beta.1",
"packages": {
"prettier": {
"version": "2.0.4"
}
}
}
}
}
2 changes: 1 addition & 1 deletion packages/workspace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
]
},
"peerDependencies": {
"prettier": "^1.19.1"
"prettier": "^2.0.4"
},
"dependencies": {
"@angular-devkit/core": "~9.1.0",
Expand Down
11 changes: 11 additions & 0 deletions packages/workspace/src/migrations/update-9-3-0/update-9-3-0.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { chain } from '@angular-devkit/schematics';
import { formatFiles, updatePackagesInPackageJson } from '@nrwl/workspace';
import { join } from 'path';

const updatePackages = updatePackagesInPackageJson(
join(__dirname, '../../../', 'migrations.json'),
'9.3.0'
);
export default function() {
return chain([updatePackages, formatFiles()]);
}
2 changes: 1 addition & 1 deletion packages/workspace/src/utils/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const nxVersion = '*';

export const angularCliVersion = '9.1.0';
export const typescriptVersion = '~3.8.3';
export const prettierVersion = '1.19.1';
export const prettierVersion = '2.0.4';
export const typescriptESLintVersion = '2.19.2';
export const eslintVersion = '6.8.0';
export const eslintConfigPrettierVersion = '6.0.0';

0 comments on commit 9b585cb

Please sign in to comment.