Skip to content

Commit 5a044e6

Browse files
committed
feat(nestjs-json-rpc-sdk): fix after update nx
1 parent 8f778f0 commit 5a044e6

File tree

2 files changed

+29
-22
lines changed

2 files changed

+29
-22
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,21 @@
1010
"type:publish"
1111
],
1212
"targets": {
13+
"compile-for-angular": {
14+
"executor": "@nx/angular:package",
15+
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
16+
"options": {
17+
"project": "libs/json-rpc/nestjs-json-rpc-sdk/ng-package.json",
18+
"tsConfig": "libs/json-rpc/nestjs-json-rpc-sdk/tsconfig-mjs.lib.json"
19+
},
20+
"configurations": {
21+
"production": {
22+
"tsConfig": "libs/json-rpc/nestjs-json-rpc-sdk/tsconfig-mjs.lib.json"
23+
},
24+
"development": {}
25+
},
26+
"defaultConfiguration": "production"
27+
},
1328
"build": {
1429
"executor": "nx:run-commands",
1530
"dependsOn": ["build-cjs"],
@@ -76,6 +91,16 @@
7691
"options": {
7792
"packageRoot": "dist/libs/json-rpc/nestjs-json-rpc-sdk"
7893
}
94+
},
95+
"test": {
96+
"executor": "@nx/jest:jest",
97+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
98+
"options": {
99+
"jestConfig": "libs/json-rpc/nestjs-json-rpc-sdk/jest.config.ts",
100+
"codeCoverage": true,
101+
"coverageReporters": ["json-summary"],
102+
"tsConfig": "libs/json-rpc/nestjs-json-rpc-sdk/tsconfig.spec.json"
103+
}
79104
}
80105
}
81106
}

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

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,12 @@
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+
"types": ["jest", "node"],
7+
"moduleResolution": "bundler"
238
},
249
"include": [
25-
"vite.config.ts",
26-
"vite.config.mts",
27-
"vitest.config.ts",
28-
"vitest.config.mts",
10+
"jest.config.ts",
2911
"src/**/*.test.ts",
3012
"src/**/*.spec.ts",
3113
"src/**/*.d.ts"

0 commit comments

Comments
 (0)