Skip to content

Commit a1d30b0

Browse files
committed
feat: update nest
1 parent 00f5b56 commit a1d30b0

8 files changed

Lines changed: 457 additions & 90 deletions

File tree

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ packages/**/*.d.ts
22
packages/**/*.js
33

44
pnpm-lock.yaml
5+
6+
/.nx/workspace-data

lerna.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2+
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
23
"version": "0.11.0-alpha.0",
3-
"npmClient": "pnpm",
4-
"useWorkspaces": true
4+
"packages": ["packages/*"],
5+
"npmClient": "pnpm"
56
}

package.json

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
"build:samples": "npm run build:prod && gulp test:samples && gulp test:e2e:samples",
1010
"clean": "gulp clean:bundle",
1111
"format": "prettier \"**/*.ts\" --ignore-path ./.prettierignore --write && git status",
12-
"test": "nyc --require ts-node/register mocha packages/**/*.spec.ts --reporter spec --retries 3 --require 'node_modules/reflect-metadata/Reflect.js' --exit",
12+
"test": "nyc mocha packages/**/*.spec.ts --reporter spec",
1313
"lint": "concurrently \"npm run lint:packages\" \"npm run lint:spec\"",
1414
"lint:fix": "concurrently \"npm run lint:packages -- --fix\" \"npm run lint:spec -- --fix\"",
1515
"lint:packages": "eslint \"packages/**/**.ts\" --ignore-pattern \"packages/**/*.spec.ts\"",
1616
"lint:spec": "eslint \"packages/**/**.spec.ts\" -c \"eslint.config.spec.mjs\"",
1717
"prerelease": "gulp copy-misc",
18-
"publish": " npm run prerelease && npm run build:prod && ./node_modules/.bin/lerna publish --exact --force-publish -m \"chore(@donews): publish %s release\"",
19-
"publish:beta": "npm run prerelease && npm run build:prod && ./node_modules/.bin/lerna publish --dist-tag=beta -m \"chore(@donews): publish %s release\"",
20-
"publish:next": "npm run prerelease && npm run build:prod && ./node_modules/.bin/lerna publish --dist-tag=next --skip-git -m \"chore(@donews): publish %s release\"",
21-
"publish:rc": " npm run prerelease && npm run build:prod && ./node_modules/.bin/lerna publish --dist-tag=rc -m \"chore(@donews): publish %s release\"",
22-
"publish:test": "npm run prerelease && npm run build:prod && ./node_modules/.bin/lerna publish --dist-tag=test --skip-git --force-publish -m \"chore(@donews): publish %s release\""
18+
"publish": " npm run prerelease && npm run build:prod && npx lerna publish --exact --force-publish -m \"chore(@donews): publish %s release\"",
19+
"publish:beta": "npm run prerelease && npm run build:prod && npx lerna publish --dist-tag=beta -m \"chore(@donews): publish %s release\"",
20+
"publish:next": "npm run prerelease && npm run build:prod && npx lerna publish --dist-tag=next --no-push --no-git-tag-version -m \"chore(@donews): publish %s release\"",
21+
"publish:rc": " npm run prerelease && npm run build:prod && npx lerna publish --dist-tag=rc -m \"chore(@donews): publish %s release\"",
22+
"publish:test": "npm run prerelease && npm run build:prod && npx lerna publish --dist-tag=test --no-push --no-git-tag-version --force-publish -m \"chore(@donews): publish %s release\""
2323
},
2424
"lint-staged": {
2525
"packages/**/*.{ts,json}": [
@@ -54,6 +54,7 @@
5454
"lerna": "8.2.1",
5555
"lint-staged": "15.4.3",
5656
"mocha": "11.1.0",
57+
"nx": "^20.4.6",
5758
"nyc": "17.1.0",
5859
"prettier": "3.5.3",
5960
"reflect-metadata": "0.2.2",
@@ -65,5 +66,27 @@
6566
"publishConfig": {
6667
"access": "public"
6768
},
68-
"packageManager": "pnpm@10.5.2"
69+
"packageManager": "pnpm@10.5.2",
70+
"nyc": {
71+
"include": [
72+
"packages/**/*.ts"
73+
],
74+
"exclude": [
75+
"**/*.js",
76+
"**/*.d.ts",
77+
"**/*.spec.ts"
78+
],
79+
"extension": [
80+
".ts"
81+
],
82+
"require": [
83+
"ts-node/register"
84+
],
85+
"reporter": [
86+
"text-summary",
87+
"html"
88+
],
89+
"sourceMap": true,
90+
"instrument": true
91+
}
6992
}

packages/nestjs-config/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@
1818
},
1919
"dependencies": {
2020
"joi": "17.13.3",
21-
"js-yaml": "^4.0.0",
22-
"lodash": "^4.17.21"
21+
"js-yaml": "4.1.0",
22+
"lodash": "4.17.21"
2323
},
2424
"devDependencies": {
25-
"@nestjs/common": "9.4.3",
26-
"@nestjs/core": "9.4.3",
27-
"@nestjs/platform-express": "9.4.3",
28-
"@nestjs/testing": "9.4.3",
25+
"@nestjs/common": "11.0.11",
26+
"@nestjs/core": "11.0.11",
27+
"@nestjs/platform-express": "11.0.11",
28+
"@nestjs/testing": "11.0.11",
2929
"@types/js-yaml": "4.0.9",
3030
"@types/lodash": "4.17.16"
3131
},
3232
"peerDependencies": {
33-
"@nestjs/common": "^9.0.0",
34-
"@nestjs/core": "^9.0.0"
33+
"@nestjs/common": "^11.0.0",
34+
"@nestjs/core": "^11.0.0"
3535
},
3636
"gitHead": "d92d5a4f9da81a40c26f3a45eb404e987c96bd02"
3737
}

packages/nestjs-logger/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
"url": "https://github.com/DoNewsCode/nestjs/issues"
1818
},
1919
"devDependencies": {
20-
"@nestjs/common": "9.4.3",
21-
"@nestjs/core": "9.4.3",
22-
"@nestjs/platform-express": "9.4.3",
23-
"@nestjs/testing": "9.4.3"
20+
"@nestjs/common": "11.0.11",
21+
"@nestjs/core": "11.0.11",
22+
"@nestjs/platform-express": "11.0.11",
23+
"@nestjs/testing": "11.0.11"
2424
},
2525
"peerDependencies": {
26-
"@nestjs/common": "^9.0.0",
27-
"@nestjs/core": "^9.0.0"
26+
"@nestjs/common": "^11.0.0",
27+
"@nestjs/core": "^11.0.0"
2828
},
2929
"gitHead": "d92d5a4f9da81a40c26f3a45eb404e987c96bd02"
3030
}

packages/nestjs-prom/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
"prom-client": "^15.0.0"
2121
},
2222
"devDependencies": {
23-
"@nestjs/common": "9.4.3",
24-
"@nestjs/core": "9.4.3",
25-
"@nestjs/platform-express": "9.4.3",
26-
"@nestjs/testing": "9.4.3"
23+
"@nestjs/common": "11.0.11",
24+
"@nestjs/core": "11.0.11",
25+
"@nestjs/platform-express": "11.0.11",
26+
"@nestjs/testing": "11.0.11"
2727
},
2828
"peerDependencies": {
29-
"@nestjs/common": "^9.0.0",
30-
"@nestjs/core": "^9.0.0"
29+
"@nestjs/common": "^11.0.0",
30+
"@nestjs/core": "^11.0.0"
3131
},
3232
"gitHead": "d92d5a4f9da81a40c26f3a45eb404e987c96bd02"
3333
}

packages/nestjs-tracing/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@
2424
"devDependencies": {
2525
"@grpc/grpc-js": "1.12.6",
2626
"@nestjs/axios": "4.0.0",
27-
"@nestjs/common": "9.4.3",
28-
"@nestjs/core": "9.4.3",
29-
"@nestjs/platform-express": "9.4.3",
30-
"@nestjs/testing": "9.4.3",
27+
"@nestjs/common": "11.0.11",
28+
"@nestjs/core": "11.0.11",
29+
"@nestjs/platform-express": "11.0.11",
30+
"@nestjs/testing": "11.0.11",
3131
"express": "4.21.2",
3232
"rxjs": "7.8.2"
3333
},
3434
"peerDependencies": {
35-
"@nestjs/common": "^9.0.0",
36-
"@nestjs/core": "^9.0.0"
35+
"@nestjs/common": "^11.0.0",
36+
"@nestjs/core": "^11.0.0"
3737
},
3838
"gitHead": "d92d5a4f9da81a40c26f3a45eb404e987c96bd02"
3939
}

0 commit comments

Comments
 (0)