Skip to content

Commit 0c7f696

Browse files
committed
feat(nx): update to Nx 22
BREAKING CHANGE: requires Nx 22 Closes #181
1 parent 95aabc0 commit 0c7f696

23 files changed

Lines changed: 16239 additions & 9797 deletions

.eslintrc.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,13 @@
3030
"files": ["*.ts", "*.tsx"],
3131
"extends": ["plugin:@nx/typescript"],
3232
"rules": {
33-
"@typescript-eslint/no-extra-semi": "error",
3433
"no-extra-semi": "off"
3534
}
3635
},
3736
{
3837
"files": ["*.js", "*.jsx"],
3938
"extends": ["plugin:@nx/javascript"],
4039
"rules": {
41-
"@typescript-eslint/no-extra-semi": "error",
4240
"no-extra-semi": "off"
4341
}
4442
}

docs/guides/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sidebar_position: 10
33
---
44

55
<script setup>
6-
const nxVersion = 20
6+
const nxVersion = 22
77
</script>
88

99
# Getting started

e2e/nx-forge-e2e/project.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"projectType": "application",
55
"sourceRoot": "e2e/nx-forge-e2e/src",
6+
"tags": [],
7+
"implicitDependencies": ["nx-forge"],
68
"targets": {
79
"e2e": {
810
"executor": "@nx/jest:jest",
911
"options": {
10-
"jestConfig": "e2e/nx-forge-e2e/jest.config.js",
12+
"jestConfig": "e2e/nx-forge-e2e/jest.config.cjs",
1113
"runInBand": true
1214
},
1315
"dependsOn": ["nx-forge:build"]
1416
}
15-
},
16-
"tags": [],
17-
"implicitDependencies": ["nx-forge"]
17+
}
1818
}

jest.config.cts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import type { Config } from 'jest';
2+
import { getJestProjectsAsync } from '@nx/jest';
3+
4+
export default async (): Promise<Config> => ({
5+
projects: await getJestProjectsAsync(),
6+
});

jest.config.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

nx.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
"sharedGlobals": [],
3434
"production": [
3535
"default",
36-
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
36+
"!{projectRoot}/**/?(*.)+(spec|test).c?[jt]s?(x)?(.snap)",
3737
"!{projectRoot}/tsconfig.spec.json",
38-
"!{projectRoot}/jest.config.[jt]s",
38+
"!{projectRoot}/jest.config.c?[jt]s",
3939
"!{projectRoot}/.eslintrc.json",
4040
"!{projectRoot}/src/test-setup.[jt]s"
4141
]

0 commit comments

Comments
 (0)