Skip to content

Commit cfc42d5

Browse files
committed
ci: Update Nx Monorepo
1 parent 731e2a0 commit cfc42d5

File tree

12 files changed

+19693
-14607
lines changed

12 files changed

+19693
-14607
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

apps/example/jest.config.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
export default {
33
displayName: 'example',
44
preset: '../../jest.preset.js',
5-
globals: {
6-
'ts-jest': {
7-
tsconfig: '<rootDir>/tsconfig.spec.json',
8-
},
9-
},
5+
globals: {},
106
testEnvironment: 'node',
117
transform: {
12-
'^.+\\.[tj]s$': 'ts-jest',
8+
'^.+\\.[tj]s$': [
9+
'ts-jest',
10+
{
11+
tsconfig: '<rootDir>/tsconfig.spec.json',
12+
},
13+
],
1314
},
1415
moduleFileExtensions: ['ts', 'js', 'html'],
1516
coverageDirectory: '../../coverage/apps/example',

jest.preset.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
const nxPreset = require('@nrwl/jest/preset').default;
22

3-
module.exports = { ...nxPreset };
3+
module.exports = {
4+
...nxPreset,
5+
/* TODO: Update to latest Jest snapshotFormat
6+
* By default Nx has kept the older style of Jest Snapshot formats
7+
* to prevent breaking of any existing tests with snapshots.
8+
* It's recommend you update to the latest format.
9+
* You can do this by removing snapshotFormat property
10+
* and running tests with --update-snapshot flag.
11+
* Example: "nx affected --targets=test --update-snapshot"
12+
* More info: https://jestjs.io/docs/upgrading-to-jest29#snapshot-format
13+
*/
14+
snapshotFormat: { escapeString: true, printBasicPrototype: true },
15+
};

migrations.json

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,60 @@
11
{
22
"migrations": [
33
{
4+
"version": "15.7.0-beta.0",
5+
"description": "Split global configuration files into individual project.json files. This migration has been added automatically to the beginning of your migration set to retroactively make them work with the new version of Nx.",
46
"cli": "nx",
5-
"version": "15.0.0-beta.1",
6-
"description": "Replace implicitDependencies with namedInputs + target inputs",
7-
"implementation": "./src/migrations/update-15-0-0/migrate-to-inputs",
8-
"package": "nx",
9-
"name": "15.0.0-migrate-to-inputs"
7+
"implementation": "./src/migrations/update-15-7-0/split-configuration-into-project-json-files",
8+
"package": "@nrwl/workspace",
9+
"name": "15-7-0-split-configuration-into-project-json-files"
1010
},
1111
{
1212
"cli": "nx",
13-
"version": "15.0.0-beta.1",
14-
"description": "Prefix outputs with {workspaceRoot}/{projectRoot} if needed",
15-
"implementation": "./src/migrations/update-15-0-0/prefix-outputs",
13+
"version": "15.8.2-beta.0",
14+
"description": "Updates the nx wrapper.",
15+
"implementation": "./src/migrations/update-15-8-2/update-nxw",
1616
"package": "nx",
17-
"name": "15.0.0-prefix-outputs"
17+
"name": "15.8.2-update-nx-wrapper"
1818
},
1919
{
20+
"version": "15.8.0-beta.0",
2021
"cli": "nx",
21-
"version": "15.0.12-beta.1",
22-
"description": "Set project names in project.json files",
23-
"implementation": "./src/migrations/update-15-1-0/set-project-names",
24-
"package": "nx",
25-
"name": "15.1.0-set-project-names"
22+
"description": "Update jest configs to support jest 29 changes (https://jestjs.io/docs/upgrading-to-jest29)",
23+
"factory": "./src/migrations/update-15-8-0/update-configs-jest-29",
24+
"package": "@nrwl/jest",
25+
"name": "update-configs-jest-29"
2626
},
2727
{
28-
"version": "15.0.0-beta.0",
28+
"version": "15.8.0-beta.0",
2929
"cli": "nx",
30-
"description": "Stop hashing jest spec files and config files for build targets and dependent tasks",
31-
"factory": "./src/migrations/update-15-0-0/add-jest-inputs",
30+
"description": "Update jest test files to support jest 29 changes (https://jestjs.io/docs/upgrading-to-jest29)",
31+
"factory": "./src/migrations/update-15-8-0/update-tests-jest-29",
3232
"package": "@nrwl/jest",
33-
"name": "add-jest-inputs"
33+
"name": "update-tests-jest-29"
3434
},
3535
{
3636
"cli": "nx",
37-
"version": "15.0.0-beta.0",
38-
"description": "Stop hashing eslint config files for build targets and dependent tasks",
39-
"factory": "./src/migrations/update-15-0-0/add-eslint-inputs",
37+
"version": "15.8.0-beta.0",
38+
"description": "Rename .lib.swcrc to .swcrc for better SWC support throughout the workspace",
39+
"factory": "./src/migrations/update-15-8-0/rename-swcrc-config",
40+
"package": "@nrwl/js",
41+
"name": "rename-swcrc-config"
42+
},
43+
{
44+
"cli": "nx",
45+
"version": "15.7.1-beta.0",
46+
"description": "Add node_modules to root eslint ignore",
47+
"factory": "./src/migrations/update-15-7-1/add-eslint-ignore",
4048
"package": "@nrwl/linter",
41-
"name": "add-eslint-inputs"
49+
"name": "add-eslint-ignore"
50+
},
51+
{
52+
"version": "15.7.0-beta.0",
53+
"description": "Split global configuration files (e.g., workspace.json) into individual project.json files.",
54+
"cli": "nx",
55+
"implementation": "./src/migrations/update-15-7-0/split-configuration-into-project-json-files",
56+
"package": "@nrwl/workspace",
57+
"name": "15-7-0-split-configuration-into-project-json-files"
4258
}
4359
]
4460
}

0 commit comments

Comments
 (0)