Skip to content

Commit f11d5b8

Browse files
committed
feat(json-api-nestjs-sdk): fix after update nx
1 parent 03da82f commit f11d5b8

File tree

4 files changed

+32
-25
lines changed

4 files changed

+32
-25
lines changed

libs/json-api/json-api-nestjs-sdk/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
},
1717
"peerDependencies": {
1818
"axios": "^1.6.0",
19-
"@angular/common": "^19.0.0 || ^20.0.0",
20-
"@angular/core": "^19.0.0 || ^20.0.0"
19+
"@angular/common": "^20.0.0",
20+
"@angular/core": "^20.0.0"
2121
},
2222
"exports": {
2323
"./package.json": "./package.json",

libs/json-api/json-api-nestjs-sdk/project.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,20 @@
114114
"parallel": false
115115
}
116116
},
117+
"test": {
118+
"executor": "@nx/jest:jest",
119+
"outputs": [
120+
"{workspaceRoot}/coverage/{projectRoot}"
121+
],
122+
"options": {
123+
"jestConfig": "{projectRoot}/jest.config.ts",
124+
"codeCoverage": true,
125+
"coverageReporters": [
126+
"json-summary"
127+
],
128+
"tsConfig": "libs/json-api/json-api-nestjs-sdk/tsconfig.spec.json"
129+
}
130+
},
117131
"upload-badge": {
118132
"executor": "nx:run-commands",
119133
"dependsOn": [

libs/json-api/json-api-nestjs-sdk/tsconfig-mjs.lib.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@
99
"moduleResolution": "bundler"
1010
},
1111
"include": ["src/**/*.ts"],
12-
"exclude": ["src/**/*.spec.ts", "src/**/*.test.ts"]
12+
"exclude": [
13+
"jest.config.ts",
14+
"src/**/*.spec.ts",
15+
"src/**/*.test-d.ts",
16+
"src/**/___test___/**/*.ts"
17+
]
1318
}

libs/json-api/json-api-nestjs-sdk/tsconfig.spec.json

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,18 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"outDir": "../../../dist/out-tsc",
5-
"module": "ES2022",
6-
"moduleResolution": "node10",
7-
"experimentalDecorators": true,
8-
"emitDecoratorMetadata": true,
9-
"strictNullChecks": true,
10-
"noImplicitAny": true,
11-
"strictBindCallApply": true,
12-
"forceConsistentCasingInFileNames": true,
13-
"noFallthroughCasesInSwitch": true,
14-
"types": [
15-
"vitest/globals",
16-
"vitest/importMeta",
17-
"vite/client",
18-
"node",
19-
"vitest"
20-
],
21-
"allowSyntheticDefaultImports": true,
22-
"esModuleInterop": true,
5+
"module": "commonjs",
6+
"moduleResolution": "bundler",
7+
"types": ["jest", "node"],
8+
"paths": {
9+
"@klerick/json-api-nestjs-shared": [
10+
"libs/json-api/json-api-nestjs-shared/src/index.ts"
11+
]
12+
},
13+
"allowJs": true
2314
},
2415
"include": [
25-
"vite.config.ts",
26-
"vite.config.mts",
27-
"vitest.config.ts",
28-
"vitest.config.mts",
16+
"jest.config.ts",
2917
"src/**/*.test.ts",
3018
"src/**/*.spec.ts",
3119
"src/**/*.d.ts"

0 commit comments

Comments
 (0)