Skip to content

Commit f36f05f

Browse files
committed
chore: nx migrate latest
1 parent 0ec2721 commit f36f05f

File tree

6 files changed

+2739
-1273
lines changed

6 files changed

+2739
-1273
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,6 @@ Thumbs.db
4848
/.env
4949

5050
.nx/cache
51-
.nx/workspace-data
51+
.nx/workspace-data
52+
.cursor/rules/nx-rules.mdc
53+
.github/instructions/nx.instructions.md

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npx lint-staged --allow-empty --relative

jest.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const { getJestProjects } = require('@nx/jest');
1+
const { getJestProjectsAsync } = require('@nx/jest');
22

3-
export default { projects: getJestProjects() };
3+
export default async () => ({ projects: await getJestProjectsAsync() });

migrations.json

Lines changed: 70 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,80 @@
11
{
22
"migrations": [
33
{
4-
"version": "20.3.0-beta.1",
5-
"description": "Update ESLint flat config to include .cjs, .mjs, .cts, and .mts files in overrides (if needed)",
6-
"implementation": "./src/migrations/update-20-3-0/add-file-extensions-to-overrides",
7-
"package": "@nx/eslint",
8-
"name": "add-file-extensions-to-overrides"
4+
"version": "21.0.0-beta.8",
5+
"description": "Removes the legacy cache configuration from nx.json",
6+
"implementation": "./src/migrations/update-21-0-0/remove-legacy-cache",
7+
"package": "nx",
8+
"name": "remove-legacy-cache"
9+
},
10+
{
11+
"version": "21.0.0-beta.8",
12+
"description": "Removes the legacy cache configuration from nx.json",
13+
"implementation": "./src/migrations/update-21-0-0/remove-custom-tasks-runner",
14+
"package": "nx",
15+
"name": "remove-custom-tasks-runner"
16+
},
17+
{
18+
"version": "21.0.0-beta.11",
19+
"description": "Updates release version config based on the breaking changes in Nx v21",
20+
"implementation": "./src/migrations/update-21-0-0/release-version-config-changes",
21+
"package": "nx",
22+
"name": "release-version-config-changes"
23+
},
24+
{
25+
"version": "21.0.0-beta.11",
26+
"description": "Updates release changelog config based on the breaking changes in Nx v21",
27+
"implementation": "./src/migrations/update-21-0-0/release-changelog-config-changes",
28+
"package": "nx",
29+
"name": "release-changelog-config-changes"
30+
},
31+
{
32+
"version": "21.1.0-beta.2",
33+
"description": "Adds **/nx-rules.mdc and **/nx.instructions.md to .gitignore if not present",
34+
"implementation": "./src/migrations/update-21-1-0/add-gitignore-entry",
35+
"package": "nx",
36+
"name": "21-1-0-add-ignore-entries-for-nx-rule-files"
937
},
1038
{
1139
"cli": "nx",
12-
"version": "20.3.0-beta.2",
13-
"description": "If workspace includes Module Federation projects, ensure the new @nx/module-federation package is installed.",
14-
"factory": "./src/migrations/update-20-3-0/ensure-nx-module-federation-package",
40+
"version": "20.4.0-beta.1",
41+
"requires": { "@angular/core": ">=19.1.0" },
42+
"description": "Update the @angular/cli package version to ~19.1.0.",
43+
"factory": "./src/migrations/update-20-4-0/update-angular-cli",
1544
"package": "@nx/angular",
16-
"name": "ensure-nx-module-federation-package"
45+
"name": "update-angular-cli-version-19-1-0"
46+
},
47+
{
48+
"cli": "nx",
49+
"version": "20.5.0-beta.5",
50+
"requires": { "@angular/core": ">=19.2.0" },
51+
"description": "Update the @angular/cli package version to ~19.2.0.",
52+
"factory": "./src/migrations/update-20-5-0/update-angular-cli",
53+
"package": "@nx/angular",
54+
"name": "update-angular-cli-version-19-2-0"
55+
},
56+
{
57+
"cli": "nx",
58+
"version": "21.0.0-beta.3",
59+
"description": "Set the `continuous` option to `true` for continuous tasks.",
60+
"factory": "./src/migrations/update-21-0-0/set-continuous-option",
61+
"package": "@nx/angular",
62+
"name": "set-continuous-option"
63+
},
64+
{
65+
"cli": "nx",
66+
"version": "21.0.0-beta.9",
67+
"description": "Replace usage of `getJestProjects` with `getJestProjectsAsync`.",
68+
"implementation": "./src/migrations/update-21-0-0/replace-getJestProjects-with-getJestProjectsAsync",
69+
"package": "@nx/jest",
70+
"name": "replace-getJestProjects-with-getJestProjectsAsync-v21"
71+
},
72+
{
73+
"version": "21.0.0-beta.10",
74+
"description": "Remove the previously deprecated and unused `tsConfig` option from the `@nx/jest:jest` executor.",
75+
"implementation": "./src/migrations/update-21-0-0/remove-tsconfig-option-from-jest-executor",
76+
"package": "@nx/jest",
77+
"name": "remove-tsconfig-option-from-jest-executor"
1778
}
1879
]
1980
}

package.json

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -36,53 +36,53 @@
3636
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
3737
},
3838
"dependencies": {
39-
"@angular/animations": "~19.0.4",
40-
"@angular/common": "~19.0.4",
41-
"@angular/compiler": "~19.0.4",
42-
"@angular/core": "~19.0.4",
43-
"@angular/forms": "~19.0.4",
44-
"@angular/platform-browser": "~19.0.4",
45-
"@angular/platform-browser-dynamic": "~19.0.4",
46-
"@angular/router": "~19.0.4",
39+
"@angular/animations": "19.2.9",
40+
"@angular/common": "19.2.9",
41+
"@angular/compiler": "19.2.9",
42+
"@angular/core": "19.2.9",
43+
"@angular/forms": "19.2.9",
44+
"@angular/platform-browser": "19.2.9",
45+
"@angular/platform-browser-dynamic": "19.2.9",
46+
"@angular/router": "19.2.9",
4747
"@nativescript/core": "~8.8.0",
4848
"@nativescript/tailwind": "^2.1.0",
4949
"nativescript-fonticon": "~8.1.3",
5050
"rxjs": "^7.8.0",
5151
"zone.js": "~0.15.0"
5252
},
5353
"devDependencies": {
54-
"@angular-devkit/build-angular": "~19.0.4",
55-
"@angular-devkit/core": "~19.0.4",
56-
"@angular-devkit/schematics": "~19.0.4",
57-
"@angular-eslint/eslint-plugin": "~19.0.2",
58-
"@angular-eslint/eslint-plugin-template": "~19.0.2",
59-
"@angular-eslint/template-parser": "~19.0.2",
60-
"@angular/compiler-cli": "~19.0.3",
54+
"@angular-devkit/build-angular": "19.2.9",
55+
"@angular-devkit/core": "19.2.9",
56+
"@angular-devkit/schematics": "19.2.9",
57+
"@angular-eslint/eslint-plugin": "19.4.0",
58+
"@angular-eslint/eslint-plugin-template": "19.4.0",
59+
"@angular-eslint/template-parser": "19.4.0",
60+
"@angular/compiler-cli": "19.2.9",
6161
"@jsdevtools/coverage-istanbul-loader": "3.0.5",
6262
"@nativescript/nx": "20.0.4",
6363
"@nativescript/types": "~8.8.0",
6464
"@nativescript/unit-test-runner": "^3.0.4",
6565
"@nativescript/webpack": "~5.0.22",
6666
"@ngtools/webpack": "~19.0.0",
67-
"@nx/angular": "20.3.0",
68-
"@nx/eslint": "20.3.0",
69-
"@nx/eslint-plugin": "20.3.0",
70-
"@nx/jest": "20.3.0",
71-
"@nx/js": "20.3.0",
72-
"@nx/node": "20.3.0",
73-
"@nx/workspace": "20.3.0",
74-
"@schematics/angular": "~19.0.4",
67+
"@nx/angular": "21.1.0",
68+
"@nx/eslint": "21.1.0",
69+
"@nx/eslint-plugin": "21.1.0",
70+
"@nx/jest": "21.1.0",
71+
"@nx/js": "21.1.0",
72+
"@nx/node": "21.1.0",
73+
"@nx/workspace": "21.1.0",
74+
"@schematics/angular": "19.2.9",
7575
"@types/jasmine": "5.1.4",
7676
"@types/jest": "29.5.13",
7777
"@types/node": "^20.0.0",
7878
"@types/sinon": "^17.0.0",
79-
"@typescript-eslint/eslint-plugin": "^8.13.0",
80-
"@typescript-eslint/parser": "^8.13.0",
81-
"@typescript-eslint/utils": "^8.13.0",
79+
"@typescript-eslint/eslint-plugin": "8.32.1",
80+
"@typescript-eslint/parser": "8.32.1",
81+
"@typescript-eslint/utils": "8.32.1",
8282
"conventional-changelog-cli": "^5.0.0",
8383
"dotenv": "16.4.5",
8484
"eslint": "8.57.0",
85-
"eslint-config-prettier": "9.1.0",
85+
"eslint-config-prettier": "10.1.5",
8686
"fs-extra": "^11.1.0",
8787
"husky": "~9.1.0",
8888
"jest": "29.7.0",
@@ -94,8 +94,8 @@
9494
"karma-nativescript-launcher": "0.4.0",
9595
"karma-sinon": "^1.0.5",
9696
"lint-staged": "^15.0.0",
97-
"ng-packagr": "~19.0.1",
98-
"nx": "20.3.0",
97+
"ng-packagr": "19.2.2",
98+
"nx": "21.1.0",
9999
"nyc": "17.1.0",
100100
"postcss": "^8.4.16",
101101
"postcss-import": "16.1.0",
@@ -108,7 +108,7 @@
108108
"ts-jest": "~29.2.0",
109109
"ts-node": "10.9.2",
110110
"tslib": "^2.8.0",
111-
"typescript": "5.6.3"
111+
"typescript": "5.7.3"
112112
},
113113
"xplat": {
114114
"prefix": "nativescript",

0 commit comments

Comments
 (0)