Skip to content

Commit e4ef59f

Browse files
committed
feat(json-api-nestjs-shared): fix after update nx
1 parent f11d5b8 commit e4ef59f

File tree

2 files changed

+9
-37
lines changed

2 files changed

+9
-37
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
"CRUD"
1313
],
1414
"dependencies": {},
15-
"peerDependencies": {
16-
"tslib": ">2.3.0"
17-
},
1815
"type": "commonjs",
1916
"main": "./cjs/src/index.js",
2017
"types": "./cjs/src/index.d.ts",

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

Lines changed: 9 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -80,40 +80,6 @@
8080
"parallel": false
8181
}
8282
},
83-
"build-common": {
84-
"executor": "nx:run-commands",
85-
"dependsOn": ["build-cjs", "build-mjs"],
86-
"options": {
87-
"outputPath": "dist/{projectRoot}",
88-
"commands": [
89-
{
90-
"command": "[ ! -f dist/{projectRoot}/cjs/package.json ] || cp dist/{projectRoot}/cjs/package.json dist/{projectRoot}/package.json",
91-
"forwardAllArgs": false
92-
},
93-
{
94-
"command": "rm -f dist/{projectRoot}/mjs/package.json",
95-
"forwardAllArgs": false
96-
},
97-
{
98-
"command": "rm -f dist/{projectRoot}/cjs/package.json",
99-
"forwardAllArgs": false
100-
},
101-
{
102-
"command": "node tools/scripts/prepare-package-json.mjs json-api-nestjs-shared"
103-
},
104-
{
105-
"command": "mkdir -p node_modules/@klerick && rm -rf node_modules/@klerick/json-api-nestjs-shared",
106-
"forwardAllArgs": false
107-
},
108-
{
109-
"command": "ln -s $(pwd)/dist/{projectRoot} node_modules/@klerick/json-api-nestjs-shared",
110-
"forwardAllArgs": false
111-
}
112-
],
113-
"cwd": "./",
114-
"parallel": false
115-
}
116-
},
11783
"ts-test": {
11884
"executor": "nx:run-commands",
11985
"options": {
@@ -124,6 +90,15 @@
12490
"parallel": false
12591
}
12692
},
93+
"test": {
94+
"executor": "@nx/jest:jest",
95+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
96+
"options": {
97+
"jestConfig": "{projectRoot}/jest.config.ts",
98+
"codeCoverage": true,
99+
"coverageReporters": ["json-summary"]
100+
}
101+
},
127102
"upload-badge": {
128103
"executor": "nx:run-commands",
129104
"dependsOn": [

0 commit comments

Comments
 (0)