Skip to content

Commit 98d5e8f

Browse files
authored
chore: migrate to nx 20.4.6 (#318)
1 parent e57ba3b commit 98d5e8f

File tree

4 files changed

+569
-430
lines changed

4 files changed

+569
-430
lines changed

migrations.json

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,43 +16,34 @@
1616
"name": "move-use-daemon-process"
1717
},
1818
{
19-
"version": "20.0.1",
20-
"description": "Set `useLegacyCache` to true for migrating workspaces",
21-
"implementation": "./src/migrations/update-20-0-1/use-legacy-cache",
22-
"x-repair-skip": true,
23-
"package": "nx",
24-
"name": "use-legacy-cache"
19+
"version": "20.2.0-beta.5",
20+
"description": "Update TypeScript ESLint packages to v8.13.0 if they are already on v8",
21+
"implementation": "./src/migrations/update-20-2-0/update-typescript-eslint-v8-13-0",
22+
"package": "@nx/eslint",
23+
"name": "update-typescript-eslint-v8.13.0"
2524
},
2625
{
27-
"cli": "nx",
28-
"version": "20.2.0-beta.2",
29-
"description": "Update the ModuleFederationConfig import use @nx/module-federation.",
30-
"factory": "./src/migrations/update-20-2-0/migrate-mf-imports-to-new-package",
31-
"package": "@nx/react",
32-
"name": "update-20-2-0-update-module-federation-config-import"
26+
"version": "20.3.0-beta.1",
27+
"description": "Update ESLint flat config to include .cjs, .mjs, .cts, and .mts files in overrides (if needed)",
28+
"implementation": "./src/migrations/update-20-3-0/add-file-extensions-to-overrides",
29+
"package": "@nx/eslint",
30+
"name": "add-file-extensions-to-overrides"
3331
},
3432
{
3533
"cli": "nx",
36-
"version": "20.2.0-beta.2",
37-
"description": "Update the withModuleFederation import use @nx/module-federation/webpack.",
38-
"factory": "./src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package",
34+
"version": "20.3.0-beta.2",
35+
"description": "If workspace includes Module Federation projects, ensure the new @nx/module-federation package is installed.",
36+
"factory": "./src/migrations/update-20-3-0/ensure-nx-module-federation-package",
3937
"package": "@nx/react",
40-
"name": "update-20-2-0-update-with-module-federation-import"
41-
},
42-
{
43-
"version": "20.2.0-beta.5",
44-
"description": "Update TypeScript ESLint packages to v8.13.0 if they are already on v8",
45-
"implementation": "./src/migrations/update-20-2-0/update-typescript-eslint-v8-13-0",
46-
"package": "@nx/eslint",
47-
"name": "update-typescript-eslint-v8.13.0"
38+
"name": "ensure-nx-module-federation-package"
4839
},
4940
{
5041
"cli": "nx",
51-
"version": "20.0.0-beta.5",
52-
"description": "replace getJestProjects with getJestProjectsAsync",
53-
"implementation": "./src/migrations/update-20-0-0/replace-getJestProjects-with-getJestProjectsAsync",
54-
"package": "@nx/jest",
55-
"name": "replace-getJestProjects-with-getJestProjectsAsync"
42+
"version": "20.4.0-beta.0",
43+
"description": "Add NX_MF_DEV_REMOTES to inputs for task hashing when '@nx/webpack:webpack' or '@nx/rspack:rspack' is used for Module Federation.",
44+
"factory": "./src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults",
45+
"package": "@nx/react",
46+
"name": "add-mf-env-var-to-target-defaults"
5647
}
5748
]
5849
}

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@
3535
"@fluentui/react-shared-contexts": "^9.7.2",
3636
"@fluentui/scheme-utilities": "^8.3.58",
3737
"@griffel/shadow-dom": "~0.2.0",
38-
"@nx/devkit": "20.2.2",
39-
"@nx/eslint": "20.2.2",
40-
"@nx/eslint-plugin": "20.2.2",
41-
"@nx/jest": "20.2.2",
42-
"@nx/js": "20.2.2",
43-
"@nx/playwright": "20.2.2",
44-
"@nx/plugin": "20.2.2",
45-
"@nx/react": "20.2.2",
46-
"@nx/storybook": "20.2.2",
47-
"@nx/web": "20.2.2",
48-
"@nx/webpack": "20.2.2",
49-
"@nx/workspace": "20.2.2",
38+
"@nx/devkit": "20.4.6",
39+
"@nx/eslint": "20.4.6",
40+
"@nx/eslint-plugin": "20.4.6",
41+
"@nx/jest": "20.4.6",
42+
"@nx/js": "20.4.6",
43+
"@nx/playwright": "20.4.6",
44+
"@nx/plugin": "20.4.6",
45+
"@nx/react": "20.4.6",
46+
"@nx/storybook": "20.4.6",
47+
"@nx/web": "20.4.6",
48+
"@nx/webpack": "20.4.6",
49+
"@nx/workspace": "20.4.6",
5050
"@playwright/experimental-ct-react": "^1.49.1",
5151
"@rnx-kit/eslint-plugin": "0.5.3",
5252
"@storybook/addon-docs": "7.6.17",
@@ -67,7 +67,7 @@
6767
"@swc/core": "1.5.29",
6868
"@swc/helpers": "~0.5.11",
6969
"@swc/jest": "0.2.36",
70-
"@testing-library/react": "15.0.6",
70+
"@testing-library/react": "16.1.0",
7171
"@types/jest": "29.5.14",
7272
"@types/node": "20.14.9",
7373
"@types/react": "18.3.1",
@@ -84,7 +84,7 @@
8484
"jest": "29.7.0",
8585
"jest-environment-jsdom": "29.7.0",
8686
"jsonc-eslint-parser": "^2.1.0",
87-
"nx": "20.2.2",
87+
"nx": "20.4.6",
8888
"parsel-js": "^1.1.2",
8989
"patch-package": "^7.0.0",
9090
"prettier": "^2.6.2",
@@ -100,7 +100,7 @@
100100
"syncpack": "^9.8.6",
101101
"ts-node": "10.9.1",
102102
"tslib": "^2.3.0",
103-
"typescript": "5.6.3",
103+
"typescript": "5.7.3",
104104
"verdaccio": "^5.0.4"
105105
},
106106
"dependencies": {},

packages/nx-plugin/src/generators/library/generator.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ describe('create-package generator', () => {
4545
"package.json",
4646
"project.json",
4747
".eslintrc.json",
48-
"jest.config.ts",
4948
"tsconfig.spec.json",
49+
"jest.config.ts",
5050
]
5151
`);
5252

0 commit comments

Comments
 (0)