Skip to content

Commit 4fea37d

Browse files
committed
chore: migrate to nx 16.10
1 parent 742d551 commit 4fea37d

File tree

6 files changed

+1167
-755
lines changed

6 files changed

+1167
-755
lines changed

migrations.json

Lines changed: 46 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -2,91 +2,83 @@
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",
5+
"version": "16.2.0-beta.0",
6+
"description": "Remove outputPath from run commands",
7+
"implementation": "./src/migrations/update-16-2-0/remove-run-commands-output-path",
88
"package": "nx",
9-
"name": "16.0.0-remove-nrwl-cli"
9+
"name": "16.2.0-remove-output-path-from-run-commands"
1010
},
1111
{
1212
"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",
13+
"version": "16.6.0-beta.6",
14+
"description": "Prefix outputs with {workspaceRoot}/{projectRoot} if needed",
15+
"implementation": "./src/migrations/update-15-0-0/prefix-outputs",
1616
"package": "nx",
17-
"name": "16.0.0-tokens-for-depends-on"
17+
"name": "16.6.0-prefix-outputs"
1818
},
1919
{
2020
"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",
21+
"version": "16.8.0-beta.3",
22+
"description": "Escape $ in env variables",
23+
"implementation": "./src/migrations/update-16-8-0/escape-dollar-sign-env-variables",
2424
"package": "nx",
25-
"name": "16.0.0-update-nx-cloud-runner"
25+
"name": "16.8.0-escape-dollar-sign-env"
2626
},
2727
{
2828
"cli": "nx",
29-
"version": "16.0.0-beta.1",
30-
"description": "Replace @nx/devkit with @nx/devkit",
31-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
32-
"package": "@nx/devkit",
33-
"name": "update-16-0-0-add-nx-packages"
29+
"version": "16.3.1-beta.0",
30+
"description": "Replace @nrwl/node:webpack and @nx/node:webpack with @nx/webpack:webpack for all project targets",
31+
"implementation": "./src/migrations/update-16-3-1/update-webpack-executor",
32+
"package": "@nx/node",
33+
"name": "update-16-3-1-update-executor"
3434
},
3535
{
3636
"cli": "nx",
37-
"version": "16.0.0-beta.1",
38-
"description": "Replace @nx/workspace with @nx/workspace",
39-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
40-
"package": "@nx/workspace",
41-
"name": "update-16-0-0-add-nx-packages"
37+
"version": "16.4.0-beta.8",
38+
"description": "Replace @nx/node:node with @nx/js:node for all project targets",
39+
"implementation": "./src/migrations/update-16-4-0/replace-node-executor",
40+
"package": "@nx/node",
41+
"name": "update-16-4-0-replace-node-executor"
4242
},
4343
{
4444
"cli": "nx",
45-
"version": "16.0.0-beta.1",
46-
"description": "Replace @nx/js with @nx/js",
47-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
45+
"version": "16.6.0-beta.0",
46+
"description": "Explicitly set 'updateBuildableProjectDepsInPackageJson' to 'true' in targets that rely on that value as the default.",
47+
"factory": "./src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps",
4848
"package": "@nx/js",
49-
"name": "update-16-0-0-add-nx-packages"
50-
},
51-
{
52-
"cli": "nx",
53-
"version": "16.0.0-beta.1",
54-
"description": "Replace @nx/jest with @nx/jest",
55-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
56-
"package": "@nx/jest",
57-
"name": "update-16-0-0-add-nx-packages"
49+
"name": "explicitly-set-projects-to-update-buildable-deps"
5850
},
5951
{
6052
"cli": "nx",
61-
"version": "16.0.0-beta.1",
62-
"description": "Replace @nx/node with @nx/node",
63-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
64-
"package": "@nx/node",
65-
"name": "update-16-0-0-add-nx-packages"
53+
"version": "16.8.2-beta.0",
54+
"description": "Remove invalid options (strict, noInterop) for ES6 type modules.",
55+
"factory": "./src/migrations/update-16-8-2/update-swcrc",
56+
"package": "@nx/js",
57+
"name": "16-8-2-update-swcrc"
6658
},
6759
{
6860
"cli": "nx",
69-
"version": "16.0.0-beta.5",
70-
"description": "Replace @nx/node:webpack with @nx/node:webpack",
71-
"implementation": "./src/migrations/update-16-0-0/update-webpack-executor",
72-
"package": "@nx/node",
73-
"name": "update-16-0-0-update-executor"
61+
"version": "16.9.0-beta.1",
62+
"description": "Replace imports of Module Federation utils frm @nx/devkit to @nx/webpack",
63+
"implementation": "./src/migrations/update-16-9-0/migrate-mf-util-usage",
64+
"package": "@nx/devkit",
65+
"name": "update-16-9-0-migrate-mf-usage-to-webpack"
7466
},
7567
{
76-
"version": "16.0.0-beta.9",
77-
"description": "Fix .babelrc presets if it contains an invalid entry for @nx/web/babel.",
7868
"cli": "nx",
79-
"implementation": "./src/migrations/update-16-0-0/fix-invalid-babelrc",
80-
"package": "@nx/workspace",
81-
"name": "16-0-0-fix-invalid-babelrc"
69+
"version": "16.5.0-beta.2",
70+
"description": "Add test-setup.ts to ignored files in production input",
71+
"implementation": "./src/migrations/update-16-5-0/add-test-setup-to-inputs-ignore",
72+
"package": "@nx/jest",
73+
"name": "add-test-setup-to-inputs-ignore"
8274
},
8375
{
84-
"version": "16.0.0-beta.4",
85-
"description": "Generates a plugin called 'workspace-plugin' containing your workspace generators.",
8676
"cli": "nx",
87-
"implementation": "./src/migrations/update-16-0-0/move-workspace-generators-to-local-plugin",
88-
"package": "@nx/workspace",
89-
"name": "16-0-0-move-workspace-generators-into-local-plugin"
77+
"version": "16.2.0-beta.0",
78+
"description": "Replace @nx/plugin:e2e with @nx/jest",
79+
"implementation": "./src/migrations/update-16-2-0/replace-e2e-executor",
80+
"package": "@nx/plugin",
81+
"name": "update-16-2-0-replace-e2e-executor"
9082
}
9183
]
9284
}

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@
102102
"@microsoft/load-themed-styles": "1.10.26",
103103
"@microsoft/loader-load-themed-styles": "2.0.17",
104104
"@microsoft/tsdoc": "0.14.1",
105-
"@nx/devkit": "16.1.4",
106-
"@nx/jest": "16.1.4",
107-
"@nx/js": "16.1.4",
108-
"@nx/node": "16.1.4",
109-
"@nx/plugin": "16.1.4",
110-
"@nx/workspace": "16.1.4",
105+
"@nx/devkit": "16.10.0",
106+
"@nx/jest": "16.10.0",
107+
"@nx/js": "16.10.0",
108+
"@nx/node": "16.10.0",
109+
"@nx/plugin": "16.10.0",
110+
"@nx/workspace": "16.10.0",
111111
"@octokit/rest": "18.12.0",
112112
"@phenomnomnominal/tsquery": "6.1.2",
113113
"@storybook/addon-a11y": "6.5.15",
@@ -284,7 +284,7 @@
284284
"monosize-storage-azure": "0.0.3",
285285
"node-plop": "0.25.0",
286286
"node-polyfill-webpack-plugin": "1.0.2",
287-
"nx": "16.1.4",
287+
"nx": "16.10.0",
288288
"p-queue": "6.6.2",
289289
"parallel-webpack": "2.6.0",
290290
"parse-diff": "0.7.1",

tools/workspace-plugin/src/generators/normalize-package-dependencies/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ function createProject(
357357
graphMock.nodes[packageName] = {
358358
name: packageName,
359359
type: projectType === 'library' ? 'lib' : 'app',
360-
data: { name: packageName, root: rootPath, files: [] },
360+
data: { name: packageName, root: rootPath },
361361
};
362362

363363
return tree;

tools/workspace-plugin/src/generators/prepare-initial-release/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ These are not production-ready components and **should never be used in product*
431431
graphMock.nodes[npmName] = {
432432
name: npmName,
433433
type: projectType === 'library' ? 'lib' : 'app',
434-
data: { name: npmName, root: npmName, files: [] },
434+
data: { name: npmName, root: npmName },
435435
};
436436

437437
if (options.files) {

tools/workspace-plugin/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export function parseArgs<T extends Record<string, any>>(args: string[]) {
8080
return parsedArguments;
8181
}
8282

83-
export { updateJestConfig } from '@nx/jest/src/generators/jest-project/lib/update-jestconfig';
83+
export { updateJestConfig } from '@nx/jest/src/generators/configuration/lib/update-jestconfig';
8484

8585
export function getProjectConfig(tree: Tree, options: { packageName: string }) {
8686
const projectConfig = readProjectConfiguration(tree, options.packageName);

0 commit comments

Comments
 (0)