Skip to content

Commit f86e2ef

Browse files
committed
feat(platform): platform is upgraded to v9
1 parent 9785ad9 commit f86e2ef

18 files changed

+4220
-2581
lines changed

jest.config.js jest.config.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
module.exports = {
1+
const { getJestProjects } = require('@nrwl/jest');
2+
3+
export default {
24
projects: [
5+
...getJestProjects(),
36
'<rootDir>/packages/playground',
47
'<rootDir>/packages/in-memory-db',
58
'<rootDir>/packages/playground-e2e',

jest.preset.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const nxPreset = require('@nrwl/jest/preset');
1+
const nxPreset = require('@nrwl/jest/preset').default;
22
module.exports = {
33
...nxPreset,
44
testMatch: ['**/+(*.)+(spec|test).+(ts|js)?(x)'],

migrations.json

+302-24
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,324 @@
11
{
22
"migrations": [
33
{
4-
"version": "11.0.0-beta.3",
5-
"description": "Update the decoration script when using Angular CLI",
6-
"factory": "./src/migrations/update-11-0-0/update-decorate-angular-cli",
4+
"cli": "nx",
5+
"version": "14.0.6",
6+
"description": "Remove root property from project.json files",
7+
"implementation": "./src/migrations/update-14-0-6/remove-roots",
8+
"package": "nx",
9+
"name": "14-0-6-remove-root"
10+
},
11+
{
12+
"cli": "nx",
13+
"version": "14.2.0-beta.0",
14+
"description": "Add JSON Schema to Nx configuration files",
15+
"implementation": "./src/migrations/update-14-2-0/add-json-schema",
16+
"package": "nx",
17+
"name": "14-2-0-add-json-schema"
18+
},
19+
{
20+
"cli": "nx",
21+
"version": "14.2.0-beta.0",
22+
"description": "Remove default collection from configuration to switch to prompts for collection",
23+
"implementation": "./src/migrations/update-14-2-0/remove-default-collection",
24+
"package": "nx",
25+
"name": "14-2-0-remove-default-collection"
26+
},
27+
{
28+
"cli": "nx",
29+
"version": "14.2.0-beta.5",
30+
"description": "Replace all ./ and ../ in outputs with absolute paths",
31+
"implementation": "./src/migrations/update-14-2-0/replace-all-relative-outputs-with-absolute",
32+
"package": "nx",
33+
"name": "14-2-0-replace-relative-outputs-with-absolute"
34+
},
35+
{
36+
"cli": "nx",
37+
"version": "14.3.4-beta.1",
38+
"description": "Replace targetDependencies with targetDefaults",
39+
"implementation": "./src/migrations/update-14-3-4/create-target-defaults",
40+
"package": "nx",
41+
"name": "14.3.4-create-target-defaults"
42+
},
43+
{
44+
"cli": "nx",
45+
"version": "15.0.0-beta.1",
46+
"description": "Replace implicitDependencies with namedInputs + target inputs",
47+
"implementation": "./src/migrations/update-15-0-0/migrate-to-inputs",
48+
"package": "nx",
49+
"name": "15.0.0-migrate-to-inputs"
50+
},
51+
{
52+
"cli": "nx",
53+
"version": "15.0.0-beta.1",
54+
"description": "Prefix outputs with {workspaceRoot}/{projectRoot} if needed",
55+
"implementation": "./src/migrations/update-15-0-0/prefix-outputs",
56+
"package": "nx",
57+
"name": "15.0.0-prefix-outputs"
58+
},
59+
{
60+
"cli": "nx",
61+
"version": "15.0.12-beta.1",
62+
"description": "Set project names in project.json files",
63+
"implementation": "./src/migrations/update-15-1-0/set-project-names",
64+
"package": "nx",
65+
"name": "15.1.0-set-project-names"
66+
},
67+
{
68+
"version": "12.1.0-beta.1",
69+
"cli": "nx",
70+
"description": "Update jest-preset-angular to version 8.4.0",
71+
"factory": "./src/migrations/update-12-1-2/update-jest-preset-angular",
72+
"package": "@nrwl/jest",
73+
"name": "update-jest-preset-angular-8-4-0"
74+
},
75+
{
76+
"version": "12.1.2-beta.1",
77+
"cli": "nx",
78+
"description": "Replace tsConfig with tsconfig for ts-jest in jest.config.js",
79+
"factory": "./src/migrations/update-12-1-2/update-ts-jest",
80+
"package": "@nrwl/jest",
81+
"name": "update-ts-jest-6-5-5"
82+
},
83+
{
84+
"version": "12.4.0-beta.1",
85+
"cli": "nx",
86+
"description": "Add testEnvironment: 'jsdom' in web apps + libraries",
87+
"factory": "./src/migrations/update-12-4-0/add-test-environment-for-node",
88+
"package": "@nrwl/jest",
89+
"name": "support-jest-27"
90+
},
91+
{
92+
"version": "12.4.0-beta.1",
93+
"cli": "nx",
94+
"description": "Support for Jest 27 via updating ts-jest + jest-preset-angular",
95+
"factory": "./src/migrations/update-12-4-0/update-jest-preset-angular",
96+
"package": "@nrwl/jest",
97+
"name": "update-ts-jest-and-jest-preset-angular"
98+
},
99+
{
100+
"version": "12.6.0-beta.0",
101+
"cli": "nx",
102+
"description": "Uses `getJestProjects()` to populate projects array in root level `jest.config.js` file.",
103+
"factory": "./src/migrations/update-12-6-0/update-base-jest-config",
104+
"package": "@nrwl/jest",
105+
"name": "update-jest-config-to-use-util"
106+
},
107+
{
108+
"version": "13.1.2-beta.0",
109+
"cli": "nx",
110+
"description": "Support .test. file names in tsconfigs",
111+
"factory": "./src/migrations/update-13-1-2/update-tsconfigs-for-tests",
112+
"package": "@nrwl/jest",
113+
"name": "update-ts-config-for-test-filenames"
114+
},
115+
{
116+
"version": "13.4.4-beta.0",
117+
"cli": "nx",
118+
"description": "Create a root babel config file if it doesn't exist and using babel-jest in jest.config.js and add @nrwl/web as needed",
119+
"factory": "./src/migrations/update-13-4-4/add-missing-root-babel-config",
120+
"package": "@nrwl/jest",
121+
"name": "add-missing-root-babel-config"
122+
},
123+
{
124+
"version": "14.0.0-beta.2",
125+
"cli": "nx",
126+
"description": "Update move jest config files to .ts files.",
127+
"factory": "./src/migrations/update-14-0-0/update-jest-config-ext",
128+
"package": "@nrwl/jest",
129+
"name": "update-jest-config-extensions"
130+
},
131+
{
132+
"version": "14.1.5-beta.0",
133+
"cli": "nx",
134+
"description": "Update to export default in jest config and revert jest.preset.ts to jest.preset.js",
135+
"factory": "./src/migrations/update-14-1-5/update-exports-jest-config",
136+
"package": "@nrwl/jest",
137+
"name": "update-to-export-default"
138+
},
139+
{
140+
"version": "14.5.5-beta.0",
141+
"cli": "nx",
142+
"description": "Exclude jest.config.ts from tsconfig where missing.",
143+
"factory": "./src/migrations/update-14-0-0/update-jest-config-ext",
144+
"package": "@nrwl/jest",
145+
"name": "exclude-jest-config-from-ts-config"
146+
},
147+
{
148+
"version": "14.6.0-beta.0",
149+
"cli": "nx",
150+
"description": "Update jest configs to support jest 28 changes (https://jestjs.io/docs/upgrading-to-jest28#configuration-options)",
151+
"factory": "./src/migrations/update-14-6-0/update-configs-jest-28",
152+
"package": "@nrwl/jest",
153+
"name": "update-configs-jest-28"
154+
},
155+
{
156+
"version": "14.6.0-beta.0",
157+
"cli": "nx",
158+
"description": "Update jest test files to support jest 28 changes (https://jestjs.io/docs/upgrading-to-jest28)",
159+
"factory": "./src/migrations/update-14-6-0/update-tests-jest-28",
160+
"package": "@nrwl/jest",
161+
"name": "update-tests-jest-28"
162+
},
163+
{
164+
"version": "15.0.0-beta.0",
165+
"cli": "nx",
166+
"description": "Stop hashing jest spec files and config files for build targets and dependent tasks",
167+
"factory": "./src/migrations/update-15-0-0/add-jest-inputs",
168+
"package": "@nrwl/jest",
169+
"name": "add-jest-inputs"
170+
},
171+
{
172+
"cli": "nx",
173+
"version": "13.2.0-beta.0",
174+
"description": "Update Nest.js libraries",
175+
"factory": "./src/migrations/update-13-2-0/update-to-nest-8",
176+
"package": "@nrwl/nest",
177+
"name": "update-to-nest-8"
178+
},
179+
{
180+
"cli": "nx",
181+
"version": "13.0.0-beta.1",
182+
"description": "Remove packages installed by Nx 12's `@nrwl/node:webpack5` generator.",
183+
"factory": "./src/migrations/update-13-0-0/remove-webpack-5-packages-13-0-0",
184+
"package": "@nrwl/node",
185+
"name": "remove-webpack-5-packages"
186+
},
187+
{
188+
"cli": "nx",
189+
"version": "13.8.5-beta.1",
190+
"description": "Renames @nrwl/node:build to @nrwl/node:webpack",
191+
"factory": "./src/migrations/update-13-8-5/rename-build-to-webpack",
192+
"package": "@nrwl/node",
193+
"name": "rename-build-to-webpack"
194+
},
195+
{
196+
"cli": "nx",
197+
"version": "13.8.5-beta.1",
198+
"description": "Renames @nrwl/node:execute to @nrwl/node:node",
199+
"factory": "./src/migrations/update-13-8-5/rename-execute-to-node",
200+
"package": "@nrwl/node",
201+
"name": "rename-execute-to-node"
202+
},
203+
{
204+
"cli": "nx",
205+
"version": "13.8.5-beta.1",
206+
"description": "Renames @nrwl/node:package to @nrwl/js:tsc",
207+
"factory": "./src/migrations/update-13-8-5/update-package-to-tsc",
208+
"package": "@nrwl/node",
209+
"name": "update-package-to-tsc"
210+
},
211+
{
212+
"cli": "nx",
213+
"version": "14.7.6-beta.1",
214+
"description": "Update usages of webpack executors to @nrwl/webpack",
215+
"factory": "./src/migrations/update-14-7-6/update-webpack-executor",
216+
"package": "@nrwl/node",
217+
"name": "update-webpack-executor"
218+
},
219+
{
220+
"version": "12.5.0-beta.1",
221+
"description": "Rename the workspace-schematic script into workspace-generator script",
222+
"factory": "./src/migrations/update-12-5-0/add-target-dependencies",
223+
"cli": "nx",
7224
"package": "@nrwl/workspace",
8-
"name": "update-decorate-angular-cli"
225+
"name": "add-target-dependencies"
9226
},
10227
{
11-
"version": "11.0.0-beta.3",
12-
"description": "Update the @types/node package",
13-
"factory": "./src/migrations/update-11-0-0/update-node-types",
228+
"version": "13.0.0-beta.1",
229+
"description": "Add default base to nx.json if its not currently set",
230+
"factory": "./src/migrations/update-13-0-0/set-default-base-if-not-set",
231+
"cli": "nx",
14232
"package": "@nrwl/workspace",
15-
"name": "update-node-types"
233+
"name": "set-default-base-if-not-set"
16234
},
17235
{
18-
"version": "11.0.0-beta.3",
19-
"description": "Rename tools/schematics into tools/generators",
20-
"factory": "./src/migrations/update-11-0-0/rename-workspace-schematics",
236+
"version": "13.0.0-beta.4",
237+
"description": "Move global settings into nx.json, and project specific settings into workspace.json",
238+
"cli": "nx",
239+
"implementation": "./src/migrations/update-13-0-0/config-locations/config-locations",
21240
"package": "@nrwl/workspace",
22-
"name": "rename-workspace-schematics"
241+
"name": "13-0-0-config-locations"
23242
},
24243
{
25-
"version": "11.0.0-beta.15",
26-
"description": "Adds `outputs` based on builders",
27-
"factory": "./src/migrations/update-11-0-0/add-outputs-in-workspace",
244+
"version": "13.2.0",
245+
"description": "Set --parallel=1 for existing repos to preserve the existing behavior",
246+
"cli": "nx",
247+
"implementation": "./src/migrations/update-13-2-0/set-parallel-default",
28248
"package": "@nrwl/workspace",
29-
"name": "add-outputs-in-workspace"
249+
"name": "set-parallel-default"
30250
},
31251
{
32-
"version": "11.0.0",
33-
"description": "Check that the right update command is used",
34-
"factory": "./src/migrations/update-11-0-0/update-command-check",
252+
"version": "13.3.0-beta.0",
253+
"description": "@nrwl/workspace:tsc is now @nrwl/js:tsc",
254+
"cli": "nx",
255+
"implementation": "./src/migrations/update-13-3-0/update-tsc-executor-location",
35256
"package": "@nrwl/workspace",
36-
"name": "update-command-check"
257+
"name": "13-3-0-tsc-location"
37258
},
38259
{
39-
"version": "11.0.2",
40-
"description": "Rename the workspace-schematic script into workspace-generator script",
41-
"factory": "./src/migrations/update-11-0-0/rename-workspace-schematic-script",
260+
"version": "13.6.0-beta.0",
261+
"description": "Remove old options that are no longer used",
262+
"cli": "nx",
263+
"implementation": "./src/migrations/update-13-6-0/remove-old-task-runner-options",
264+
"package": "@nrwl/workspace",
265+
"name": "13-6-0-remove-old-task-runner-options"
266+
},
267+
{
268+
"version": "13.9.0-beta.0",
269+
"description": "Replace @nrwl/tao with nx",
270+
"cli": "nx",
271+
"implementation": "./src/migrations/update-13-9-0/replace-tao-with-nx",
272+
"package": "@nrwl/workspace",
273+
"name": "13-9-0-replace-tao-with-nx"
274+
},
275+
{
276+
"version": "13.10.0-beta.0",
277+
"description": "Update the decorate-angular-cli script to require nx instead of @nrwl/cli",
278+
"cli": "nx",
279+
"implementation": "./src/migrations/update-13-10-0/update-decorate-cli",
280+
"package": "@nrwl/workspace",
281+
"name": "13-10-0-update-decorate-cli"
282+
},
283+
{
284+
"version": "13.10.0-beta.0",
285+
"description": "Update the tasks runner property to import it from the nx package instead of @nrwl/worksapce",
286+
"cli": "nx",
287+
"implementation": "./src/migrations/update-13-10-0/update-tasks-runner",
288+
"package": "@nrwl/workspace",
289+
"name": "13-10-0-update-tasks-runner"
290+
},
291+
{
292+
"version": "14.0.0-beta.0",
293+
"description": "Changes the presets in nx.json to come from the nx package",
294+
"cli": "nx",
295+
"implementation": "./src/migrations/update-14-0-0/change-nx-json-presets",
296+
"package": "@nrwl/workspace",
297+
"name": "14-0-0-change-nx-json-presets"
298+
},
299+
{
300+
"version": "14.0.0-beta.0",
301+
"description": "Migrates from @nrwl/workspace:run-script to nx:run-script",
302+
"cli": "nx",
303+
"implementation": "./src/migrations/update-14-0-0/change-npm-script-executor",
304+
"package": "@nrwl/workspace",
305+
"name": "14-0-0-change-npm-script-executor"
306+
},
307+
{
308+
"version": "14.2.0",
309+
"description": "Explicitly enable sourceAnalysis for all workspaces extending from npm.json or core.json (this was default behavior prior to 14.2)",
310+
"cli": "nx",
311+
"implementation": "./src/migrations/update-14-2-0/enable-source-analysis",
312+
"package": "@nrwl/workspace",
313+
"name": "14-2-0-enable-source-analysis"
314+
},
315+
{
316+
"version": "14.8.0-beta.0",
317+
"description": "Migrates from @nrwl/workspace:run-commands to nx:run-commands",
318+
"cli": "nx",
319+
"implementation": "./src/migrations/update-14-8-0/change-run-commands-executor",
42320
"package": "@nrwl/workspace",
43-
"name": "rename-workspace-schematic-script"
321+
"name": "14-8-0-change-run-commands-executor"
44322
}
45323
]
46324
}

0 commit comments

Comments
 (0)