Skip to content

Commit 7ec83ca

Browse files
authored
feat: Nx 21+ (#83)
1 parent 20ed8ef commit 7ec83ca

File tree

7 files changed

+419
-330
lines changed

7 files changed

+419
-330
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,5 @@ Thumbs.db
4343
.nx/workspace-data
4444
.angular
4545
.env
46+
.cursor/rules/nx-rules.mdc
47+
.github/instructions/nx.instructions.md

migrations.json

Lines changed: 45 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,62 @@
11
{
22
"migrations": [
33
{
4-
"version": "20.2.0-beta.5",
5-
"description": "Update TypeScript ESLint packages to v8.13.0 if they are already on v8",
6-
"implementation": "./src/migrations/update-20-2-0/update-typescript-eslint-v8-13-0",
7-
"package": "@nx/eslint",
8-
"name": "update-typescript-eslint-v8.13.0"
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"
99
},
1010
{
11-
"version": "20.3.0-beta.1",
12-
"description": "Update ESLint flat config to include .cjs, .mjs, .cts, and .mts files in overrides (if needed)",
13-
"implementation": "./src/migrations/update-20-3-0/add-file-extensions-to-overrides",
14-
"package": "@nx/eslint",
15-
"name": "add-file-extensions-to-overrides"
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"
1616
},
1717
{
18-
"cli": "nx",
19-
"version": "20.2.0-beta.2",
20-
"description": "Update the ModuleFederationConfig import use @nx/module-federation.",
21-
"factory": "./src/migrations/update-20-2-0/migrate-mf-imports-to-new-package",
22-
"package": "@nx/angular",
23-
"name": "update-20-2-0-update-module-federation-config-import"
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"
2437
},
2538
{
2639
"cli": "nx",
27-
"version": "20.2.0-beta.2",
28-
"description": "Update the withModuleFederation import use @nx/module-federation/angular.",
29-
"factory": "./src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package",
30-
"package": "@nx/angular",
31-
"name": "update-20-2-0-update-with-module-federation-import"
40+
"version": "21.0.0-beta.9",
41+
"description": "Replace usage of `getJestProjects` with `getJestProjectsAsync`.",
42+
"implementation": "./src/migrations/update-21-0-0/replace-getJestProjects-with-getJestProjectsAsync",
43+
"package": "@nx/jest",
44+
"name": "replace-getJestProjects-with-getJestProjectsAsync-v21"
45+
},
46+
{
47+
"version": "21.0.0-beta.10",
48+
"description": "Remove the previously deprecated and unused `tsConfig` option from the `@nx/jest:jest` executor.",
49+
"implementation": "./src/migrations/update-21-0-0/remove-tsconfig-option-from-jest-executor",
50+
"package": "@nx/jest",
51+
"name": "remove-tsconfig-option-from-jest-executor"
3252
},
3353
{
3454
"cli": "nx",
35-
"version": "20.3.0-beta.2",
36-
"description": "If workspace includes Module Federation projects, ensure the new @nx/module-federation package is installed.",
37-
"factory": "./src/migrations/update-20-3-0/ensure-nx-module-federation-package",
55+
"version": "21.0.0-beta.3",
56+
"description": "Set the `continuous` option to `true` for continuous tasks.",
57+
"factory": "./src/migrations/update-21-0-0/set-continuous-option",
3858
"package": "@nx/angular",
39-
"name": "ensure-nx-module-federation-package"
59+
"name": "set-continuous-option"
4060
}
4161
]
4262
}

nx.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,5 @@
4141
},
4242
"parallel": 1,
4343
"useInferencePlugins": false,
44-
"defaultBase": "main",
45-
"useLegacyCache": true
44+
"defaultBase": "main"
4645
}

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@
3232
"private": true,
3333
"devDependencies": {
3434
"@angular-devkit/core": "~19.2.0",
35-
"@nx/angular": "20.8.1",
36-
"@nx/devkit": "20.8.1",
37-
"@nx/eslint": "20.8.1",
38-
"@nx/eslint-plugin": "20.8.1",
39-
"@nx/express": "20.8.1",
40-
"@nx/jest": "20.8.1",
41-
"@nx/js": "20.8.1",
42-
"@nx/plugin": "20.8.1",
43-
"@nx/web": "20.8.1",
44-
"@nx/workspace": "20.8.1",
35+
"@nx/angular": "21.1.2",
36+
"@nx/devkit": "21.1.2",
37+
"@nx/eslint": "21.1.2",
38+
"@nx/eslint-plugin": "21.1.2",
39+
"@nx/express": "21.1.2",
40+
"@nx/jest": "21.1.2",
41+
"@nx/js": "21.1.2",
42+
"@nx/plugin": "21.1.2",
43+
"@nx/web": "21.1.2",
44+
"@nx/workspace": "21.1.2",
4545
"@types/fs-extra": "^11.0.3",
4646
"@types/jest": "29.5.13",
4747
"@types/node": "^20.0.0",
@@ -57,7 +57,7 @@
5757
"fast-xml-parser": "^4.5.0",
5858
"fs-extra": "^11.2.0",
5959
"jest": "29.7.0",
60-
"nx": "20.8.1",
60+
"nx": "21.1.2",
6161
"nx-cloud": "19.1.0",
6262
"plist": "^3.1.0",
6363
"prettier": "^3.3.0",

packages/nx/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
"plist": "^3.1.0"
4444
},
4545
"peerDependencies": {
46-
"@nx/devkit": "^20.0.0",
47-
"@nx/eslint": "^20.0.0",
48-
"@nx/js": "^20.0.0",
49-
"@nx/workspace": "^20.0.0",
50-
"nx": "^20.0.0"
46+
"@nx/devkit": "^21.0.0",
47+
"@nx/eslint": "^21.0.0",
48+
"@nx/js": "^21.0.0",
49+
"@nx/workspace": "^21.0.0",
50+
"nx": "^21.0.0"
5151
}
5252
}

packages/nx/src/utils/versions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export const nxVersion = '^20.0.0';
1+
export const nxVersion = '^21.0.0';
22

3-
export const nsNxPluginVersion = '^20.0.0';
3+
export const nsNxPluginVersion = '^21.0.0';
44
export const nsCoreVersion = '~8.9.0';
55
export const nsTypesVersion = '~8.9.0';
66
export const nsWebpackVersion = '~5.0.0';

0 commit comments

Comments
 (0)