Skip to content

Commit 50af970

Browse files
committed
build(root): update nx to v16
1 parent 920570f commit 50af970

19 files changed

+20893
-14887
lines changed

.eslintrc.json

+14-31
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
{
22
"root": true,
3-
"ignorePatterns": [
4-
"**/*"
5-
],
6-
"plugins": [
7-
"@nrwl/nx"
8-
],
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nrwl/nx"],
95
"overrides": [
106
{
11-
"files": [
12-
"*.ts",
13-
"*.tsx",
14-
"*.js",
15-
"*.jsx"
16-
],
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
178
"rules": {
189
"@nrwl/nx/enforce-module-boundaries": [
1910
"error",
@@ -24,34 +15,26 @@
2415
"depConstraints": [
2516
{
2617
"sourceTag": "*",
27-
"onlyDependOnLibsWithTags": [
28-
"*"
29-
]
18+
"onlyDependOnLibsWithTags": ["*"]
3019
}
3120
]
3221
}
3322
]
3423
}
3524
},
3625
{
37-
"files": [
38-
"*.ts",
39-
"*.tsx"
40-
],
41-
"extends": [
42-
"plugin:@nrwl/nx/typescript"
43-
],
44-
"rules": {
45-
}
26+
"files": ["*.ts", "*.tsx"],
27+
"extends": ["plugin:@nrwl/nx/typescript"],
28+
"rules": {}
29+
},
30+
{
31+
"files": ["*.js", "*.jsx"],
32+
"extends": ["plugin:@nrwl/nx/javascript"],
33+
"rules": {}
4634
},
4735
{
48-
"files": [
49-
"*.js",
50-
"*.jsx"
51-
],
52-
"extends": [
53-
"plugin:@nrwl/nx/javascript"
54-
],
36+
"files": "*.json",
37+
"parser": "jsonc-eslint-parser",
5538
"rules": {}
5639
}
5740
]

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"eslint.validate": ["json"]
3+
}

decorate-angular-cli.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ const cp = require('child_process');
2727
const isWindows = os.platform() === 'win32';
2828
let output;
2929
try {
30-
output = require('@nrwl/workspace').output;
30+
output = require('@nx/workspace').output;
3131
} catch (e) {
3232
console.warn(
33-
'Angular CLI could not be decorated to enable computation caching. Please ensure @nrwl/workspace is installed.'
33+
'Angular CLI could not be decorated to enable computation caching. Please ensure @nx/workspace is installed.'
3434
);
3535
process.exit(0);
3636
}

migrations.json

+18-10
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,27 @@
22
"migrations": [
33
{
44
"cli": "nx",
5-
"version": "15.9.0-beta.3",
6-
"description": "Update the tsconfig.spec.json to use target es2016 for jest-preset-angular v13",
7-
"factory": "./src/migrations/update-15-9-0/update-testing-tsconfig",
8-
"package": "@nrwl/angular",
9-
"name": "update-tsconfig-spec-jest"
5+
"version": "16.0.0-beta.1",
6+
"description": "Replace @nx/workspace with @nx/workspace",
7+
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
8+
"package": "@nx/workspace",
9+
"name": "update-16-0-0-add-nx-packages"
1010
},
1111
{
12+
"version": "16.0.0-beta.4",
13+
"description": "Generates a plugin called 'workspace-plugin' containing your workspace generators.",
1214
"cli": "nx",
13-
"version": "15.9.0-beta.9",
14-
"description": "Update the file-server executor to use @nrwl/web:file-server",
15-
"factory": "./src/migrations/update-15-9-0/update-file-server-executor",
16-
"package": "@nrwl/angular",
17-
"name": "update-file-server-executor"
15+
"implementation": "./src/migrations/update-16-0-0/move-workspace-generators-to-local-plugin",
16+
"package": "@nx/workspace",
17+
"name": "16-0-0-move-workspace-generators-into-local-plugin"
18+
},
19+
{
20+
"version": "16.0.0-beta.9",
21+
"description": "Fix .babelrc presets if it contains an invalid entry for @nx/web/babel.",
22+
"cli": "nx",
23+
"implementation": "./src/migrations/update-16-0-0/fix-invalid-babelrc",
24+
"package": "@nx/workspace",
25+
"name": "16-0-0-fix-invalid-babelrc"
1826
}
1927
]
2028
}

0 commit comments

Comments
 (0)