|
9 | 9 | "build:samples": "npm run build:prod && gulp test:samples && gulp test:e2e:samples", |
10 | 10 | "clean": "gulp clean:bundle", |
11 | 11 | "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", |
13 | 13 | "lint": "concurrently \"npm run lint:packages\" \"npm run lint:spec\"", |
14 | 14 | "lint:fix": "concurrently \"npm run lint:packages -- --fix\" \"npm run lint:spec -- --fix\"", |
15 | 15 | "lint:packages": "eslint \"packages/**/**.ts\" --ignore-pattern \"packages/**/*.spec.ts\"", |
16 | 16 | "lint:spec": "eslint \"packages/**/**.spec.ts\" -c \"eslint.config.spec.mjs\"", |
17 | 17 | "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\"" |
23 | 23 | }, |
24 | 24 | "lint-staged": { |
25 | 25 | "packages/**/*.{ts,json}": [ |
|
54 | 54 | "lerna": "8.2.1", |
55 | 55 | "lint-staged": "15.4.3", |
56 | 56 | "mocha": "11.1.0", |
| 57 | + "nx": "^20.4.6", |
57 | 58 | "nyc": "17.1.0", |
58 | 59 | "prettier": "3.5.3", |
59 | 60 | "reflect-metadata": "0.2.2", |
|
65 | 66 | "publishConfig": { |
66 | 67 | "access": "public" |
67 | 68 | }, |
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 | + } |
69 | 92 | } |
0 commit comments