Skip to content

Commit 4329627

Browse files
committed
chore: nx migrate latest - Nx 16.5+
1 parent 12685fd commit 4329627

File tree

5 files changed

+1244
-2105
lines changed

5 files changed

+1244
-2105
lines changed

migrations.json

Lines changed: 9 additions & 235 deletions
Original file line numberDiff line numberDiff line change
@@ -2,248 +2,22 @@
22
"migrations": [
33
{
44
"cli": "nx",
5-
"version": "16.0.0-beta.0",
6-
"description": "Remove @nrwl/cli.",
7-
"implementation": "./src/migrations/update-16-0-0/remove-nrwl-cli",
8-
"package": "nx",
9-
"name": "16.0.0-remove-nrwl-cli"
10-
},
11-
{
12-
"cli": "nx",
13-
"version": "16.0.0-beta.9",
14-
"description": "Replace `dependsOn.projects` and `inputs` definitions with new configuration format.",
15-
"implementation": "./src/migrations/update-16-0-0/update-depends-on-to-tokens",
16-
"package": "nx",
17-
"name": "16.0.0-tokens-for-depends-on"
18-
},
19-
{
20-
"cli": "nx",
21-
"version": "16.0.0-beta.0",
22-
"description": "Replace @nrwl/nx-cloud with nx-cloud",
23-
"implementation": "./src/migrations/update-16-0-0/update-nx-cloud-runner",
24-
"package": "nx",
25-
"name": "16.0.0-update-nx-cloud-runner"
26-
},
27-
{
28-
"cli": "nx",
29-
"version": "16.2.0-beta.0",
30-
"description": "Remove outputPath from run commands",
31-
"implementation": "./src/migrations/update-16-2-0/remove-run-commands-output-path",
32-
"package": "nx",
33-
"name": "16.2.0-remove-output-path-from-run-commands"
34-
},
35-
{
36-
"cli": "nx",
37-
"version": "16.0.0-beta.1",
38-
"description": "Replace @nx/devkit with @nx/devkit",
39-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
40-
"package": "@nx/devkit",
41-
"name": "update-16-0-0-add-nx-packages"
42-
},
43-
{
44-
"cli": "nx",
45-
"version": "16.0.0-beta.1",
46-
"description": "Replace @nx/workspace with @nx/workspace",
47-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
48-
"package": "@nx/workspace",
49-
"name": "update-16-0-0-add-nx-packages"
50-
},
51-
{
52-
"version": "16.0.0-beta.4",
53-
"description": "Generates a plugin called 'workspace-plugin' containing your workspace generators.",
54-
"cli": "nx",
55-
"implementation": "./src/migrations/update-16-0-0/move-workspace-generators-to-local-plugin",
56-
"package": "@nx/workspace",
57-
"name": "16-0-0-move-workspace-generators-into-local-plugin"
58-
},
59-
{
60-
"version": "16.0.0-beta.9",
61-
"description": "Fix .babelrc presets if it contains an invalid entry for @nx/web/babel.",
62-
"cli": "nx",
63-
"implementation": "./src/migrations/update-16-0-0/fix-invalid-babelrc",
64-
"package": "@nx/workspace",
65-
"name": "16-0-0-fix-invalid-babelrc"
66-
},
67-
{
68-
"version": "16.0.0-beta.1",
69-
"cli": "nx",
70-
"description": "Removes CLI property within schema.json files and moves generators and schematics to the proper root node in migrations.json",
71-
"factory": "./src/migrations/update-16-0-0/cli-in-schema-json",
72-
"package": "@nx/plugin",
73-
"name": "update-remove-cli-prop"
74-
},
75-
{
76-
"cli": "nx",
77-
"version": "16.0.0-beta.1",
78-
"description": "Replace @nx/plugin with @nx/plugin",
79-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
80-
"package": "@nx/plugin",
81-
"name": "update-16-0-0-add-nx-packages"
82-
},
83-
{
84-
"cli": "nx",
85-
"version": "16.2.0-beta.0",
86-
"description": "Replace @nx/plugin:e2e with @nx/jest",
87-
"implementation": "./src/migrations/update-16-2-0/replace-e2e-executor",
88-
"package": "@nx/plugin",
89-
"name": "update-16-2-0-replace-e2e-executor"
90-
},
91-
{
92-
"cli": "nx",
93-
"version": "16.0.0-beta.1",
94-
"description": "Replace @nx/web with @nx/web",
95-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
96-
"package": "@nx/web",
97-
"name": "update-16-0-0-add-nx-packages"
98-
},
99-
{
100-
"cli": "nx",
101-
"version": "16.0.0-beta.4",
102-
"description": "Replace @nx/web executors with @nx/webpack and @nx/rollup",
103-
"implementation": "./src/migrations/update-16-0-0-update-executors/update-16-0-0-update-executors",
104-
"package": "@nx/web",
105-
"name": "update-16-0-0-update-executors"
106-
},
107-
{
108-
"cli": "nx",
109-
"version": "16.0.0-beta.1",
110-
"description": "Replace @nx/js with @nx/js",
111-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
112-
"package": "@nx/js",
113-
"name": "update-16-0-0-add-nx-packages"
114-
},
115-
{
116-
"cli": "nx",
117-
"version": "16.0.0-beta.1",
118-
"description": "Replace @nx/eslint-plugin with @nx/eslint-plugin",
119-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
120-
"package": "@nx/eslint-plugin",
121-
"name": "update-16-0-0-add-nx-packages"
122-
},
123-
{
124-
"cli": "nx",
125-
"version": "16.0.0-beta.1",
126-
"description": "Replace @nx/jest with @nx/jest",
127-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
5+
"version": "16.5.0-beta.2",
6+
"description": "Add test-setup.ts to ignored files in production input",
7+
"implementation": "./src/migrations/update-16-5-0/add-test-setup-to-inputs-ignore",
1288
"package": "@nx/jest",
129-
"name": "update-16-0-0-add-nx-packages"
130-
},
131-
{
132-
"cli": "nx",
133-
"version": "16.0.0-beta.1",
134-
"description": "Replace @nx/linter with @nx/linter",
135-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
136-
"package": "@nx/linter",
137-
"name": "update-16-0-0-add-nx-packages"
9+
"name": "add-test-setup-to-inputs-ignore"
13810
},
13911
{
14012
"cli": "nx",
141-
"version": "16.0.0-beta.1",
142-
"description": "Replace @nx/express with @nx/express",
143-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
144-
"package": "@nx/express",
145-
"name": "update-16-0-0-add-nx-packages"
146-
},
147-
{
148-
"cli": "nx",
149-
"version": "16.0.0-beta.1",
150-
"description": "Replace the deprecated library generator 'simpleModuleName' option from generator defaults with 'simpleName'",
151-
"factory": "./src/migrations/update-16-0-0/remove-library-generator-simple-module-name-option",
152-
"package": "@nx/angular",
153-
"name": "remove-library-generator-simple-module-name-option"
154-
},
155-
{
156-
"cli": "nx",
157-
"version": "16.0.0-beta.1",
158-
"description": "Replace @nx/angular with @nx/angular",
159-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
160-
"package": "@nx/angular",
161-
"name": "update-16-0-0-add-nx-packages"
162-
},
163-
{
164-
"cli": "nx",
165-
"version": "16.0.0-beta.6",
166-
"description": "Remove protractor as default e2eTestRunner from nxJson and project configurations",
167-
"implementation": "./src/migrations/update-16-0-0/remove-protractor-defaults",
168-
"package": "@nx/angular",
169-
"name": "remove-protractor-defaults-from-generators"
170-
},
171-
{
172-
"cli": "nx",
173-
"version": "16.0.0-beta.6",
174-
"description": "Remove karma as default unitTestRunner from nxJson and project configurations",
175-
"implementation": "./src/migrations/update-16-0-0/remove-karma-defaults",
176-
"package": "@nx/angular",
177-
"name": "remove-karma-defaults-from-generators"
178-
},
179-
{
180-
"cli": "nx",
181-
"version": "16.1.0-beta.1",
13+
"version": "16.4.0-beta.11",
18214
"requires": {
183-
"@angular/core": ">=15.0.0"
15+
"@angular/core": ">=16.1.0"
18416
},
185-
"description": "Remove exported `@angular/platform-server` `renderModule` method. The `renderModule` method is now exported by the Angular CLI.",
186-
"factory": "./src/migrations/update-16-1-0/remove-render-module-platform-server-exports",
17+
"description": "Update the @angular/cli package version to ~16.1.0.",
18+
"factory": "./src/migrations/update-16-4-0/update-angular-cli",
18719
"package": "@nx/angular",
188-
"name": "remove-render-module-platform-server-exports"
189-
},
190-
{
191-
"cli": "nx",
192-
"version": "16.1.0-beta.1",
193-
"requires": {
194-
"@angular/core": ">=16.0.0-rc.4"
195-
},
196-
"description": "Remove 'ngcc' invocation if exists from the 'postinstall' script in package.json.",
197-
"factory": "./src/migrations/update-16-1-0/remove-ngcc-invocation",
198-
"package": "@nx/angular",
199-
"name": "remove-ngcc-invocation"
200-
},
201-
{
202-
"cli": "nx",
203-
"version": "16.1.0-beta.1",
204-
"requires": {
205-
"@angular/core": ">=16.0.0-rc.4"
206-
},
207-
"description": "Extract the app config for standalone apps",
208-
"factory": "./src/migrations/update-16-1-0/extract-standalone-config-from-bootstrap",
209-
"package": "@nx/angular",
210-
"name": "extract-app-config-for-standalone"
211-
},
212-
{
213-
"cli": "nx",
214-
"version": "16.1.0-beta.1",
215-
"requires": {
216-
"@angular/core": ">=16.0.0-rc.4"
217-
},
218-
"description": "Update server executors' configuration to disable 'buildOptimizer' for non optimized builds.",
219-
"factory": "./src/migrations/update-16-1-0/update-server-executor-config",
220-
"package": "@nx/angular",
221-
"name": "update-server-executor-config"
222-
},
223-
{
224-
"cli": "nx",
225-
"version": "16.1.0-beta.1",
226-
"requires": {
227-
"@angular/core": ">=16.0.0"
228-
},
229-
"description": "Update the @angular/cli package version to ~16.0.0.",
230-
"factory": "./src/migrations/update-16-1-0/update-angular-cli",
231-
"package": "@nx/angular",
232-
"name": "update-angular-cli-version-16-0-0"
233-
},
234-
{
235-
"version": "16.0.0",
236-
"description": "As of Angular v16, the `moduleId` property of `@Component` is deprecated as it no longer has any effect.",
237-
"factory": "./migrations/remove-module-id/bundle",
238-
"package": "@angular/core",
239-
"name": "migration-v16-remove-module-id"
240-
},
241-
{
242-
"version": "16.0.0",
243-
"description": "In Angular version 15.2, the guard and resolver interfaces (CanActivate, Resolve, etc) were deprecated. This migration removes imports and 'implements' clauses that contain them.",
244-
"factory": "./migrations/guard-and-resolve-interfaces/bundle",
245-
"package": "@angular/core",
246-
"name": "migration-v16-guard-and-resolve-interfaces"
20+
"name": "update-angular-cli-version-16-1-0"
24721
}
24822
]
24923
}

nx.json

Lines changed: 7 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@
77
"default": {
88
"runner": "nx/tasks-runners/default",
99
"options": {
10-
"cacheableOperations": [
11-
"build",
12-
"lint",
13-
"test",
14-
"e2e"
15-
],
10+
"cacheableOperations": ["build", "lint", "test", "e2e"],
1611
"parallel": 1
1712
}
1813
}
@@ -24,38 +19,16 @@
2419
"$schema": "./node_modules/nx/schemas/nx-schema.json",
2520
"targetDefaults": {
2621
"build": {
27-
"dependsOn": [
28-
"^build"
29-
],
30-
"inputs": [
31-
"production",
32-
"^production"
33-
]
22+
"dependsOn": ["^build"],
23+
"inputs": ["production", "^production"]
3424
},
3525
"test": {
36-
"inputs": [
37-
"default",
38-
"^production",
39-
"{workspaceRoot}/jest.preset.js"
40-
]
26+
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"]
4127
}
4228
},
4329
"namedInputs": {
44-
"default": [
45-
"{projectRoot}/**/*",
46-
"sharedGlobals"
47-
],
48-
"sharedGlobals": [
49-
"{workspaceRoot}/workspace.json",
50-
"{workspaceRoot}/tsconfig.base.json",
51-
"{workspaceRoot}/tslint.json",
52-
"{workspaceRoot}/nx.json"
53-
],
54-
"production": [
55-
"default",
56-
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
57-
"!{projectRoot}/tsconfig.spec.json",
58-
"!{projectRoot}/jest.config.[jt]s"
59-
]
30+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
31+
"sharedGlobals": ["{workspaceRoot}/workspace.json", "{workspaceRoot}/tsconfig.base.json", "{workspaceRoot}/tslint.json", "{workspaceRoot}/nx.json"],
32+
"production": ["default", "!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)", "!{projectRoot}/tsconfig.spec.json", "!{projectRoot}/jest.config.[jt]s", "!{projectRoot}/src/test-setup.[jt]s"]
6033
}
6134
}

package.json

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,45 +31,44 @@
3131
},
3232
"private": true,
3333
"devDependencies": {
34-
"@angular-devkit/schematics": "16.0.3",
35-
"@angular/core": "16.0.3",
34+
"@angular-devkit/schematics": "16.1.3",
35+
"@angular/core": "16.1.3",
3636
"@swc-node/register": "^1.4.2",
3737
"@swc/core": "^1.2.173",
3838
"@types/fs-extra": "^9.0.11",
39-
"@types/jest": "28.1.8",
39+
"@types/jest": "29.5.2",
4040
"@types/node": "^18.0.0",
4141
"@types/plist": "^3.0.2",
4242
"@types/xml2js": "^0.4.9",
43-
"@typescript-eslint/eslint-plugin": "5.59.7",
44-
"@typescript-eslint/parser": "5.59.7",
43+
"@typescript-eslint/eslint-plugin": "5.61.0",
44+
"@typescript-eslint/parser": "5.61.0",
4545
"conventional-changelog-cli": "^2.1.1",
4646
"cz-conventional-changelog": "^3.3.0",
4747
"doctoc": "^2.0.0",
4848
"dotenv": "10.0.0",
4949
"eslint": "7.22.0",
5050
"eslint-config-prettier": "8.1.0",
51-
"fs-extra": "^10.1.0",
52-
"jest": "28.1.3",
51+
"fs-extra": "^11.1.0",
52+
"jest": "29.6.0",
5353
"jsonc-parser": "3.0.0",
54-
"nx": "16.3.2",
54+
"nx": "16.5.0",
5555
"plist": "^3.0.4",
5656
"prettier": "^2.7.0",
57-
"ts-jest": "29.1.0",
57+
"ts-jest": "29.1.1",
5858
"ts-node": "10.9.1",
5959
"tslib": "^2.4.0",
60-
"typescript": "5.0.4",
60+
"typescript": "5.1.6",
6161
"xml2js": "^0.4.23",
6262
"nx-cloud": "16.0.5",
63-
"@nx/devkit": "16.3.2",
64-
"@nx/workspace": "16.3.2",
65-
"@nx/plugin": "16.3.2",
66-
"@nx/web": "16.3.2",
67-
"@nx/js": "16.3.2",
68-
"@nx/eslint-plugin": "16.3.2",
69-
"@nx/jest": "16.3.2",
70-
"@nx/linter": "16.3.2",
71-
"@nx/express": "16.3.2",
72-
"@nx/angular": "16.3.2"
63+
"@nx/devkit": "16.5.0",
64+
"@nx/workspace": "16.5.0",
65+
"@nx/plugin": "16.5.0",
66+
"@nx/web": "16.5.0",
67+
"@nx/js": "16.5.0",
68+
"@nx/eslint-plugin": "16.5.0",
69+
"@nx/jest": "16.5.0",
70+
"@nx/linter": "16.5.0",
71+
"@nx/express": "16.5.0",
72+
"@nx/angular": "16.5.0"
7373
}
7474
}
75-

packages/nx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/nx",
3-
"version": "16.3.0-dev.0",
3+
"version": "16.5.0",
44
"description": "NativeScript Plugin for Nx",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)