Skip to content

Commit

Permalink
chore: update package.json files
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Mar 22, 2024
1 parent 9e766f3 commit ad6ceb2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/kmore-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
},
"scripts": {
"build": "npm run tsc && tsc-alias && npm run rp",
"build:test": "tsc -p test/tsconfig.json",
"clean": "npm run clean:lock && npm run clean:dist && npm run clean:log",
"clean:cache": "rm -rf .eslintcache .tsbuildinfo",
"clean:dist": "npm run clean:cache && rm -rf dist/*",
Expand All @@ -75,7 +76,7 @@
"cov": "c8 --all npm run test -- --parallel=false",
"lint": "eslint --fix --cache src test",
"lint:nofix": "eslint --cache src test",
"pretest": "npm run build",
"pretest": "npm run build && npm run build:test",
"rp": "tsx bin-hashbang.js",
"test": "cross-env NODE_ENV=test TS_NODE_PROJECT=test/tsconfig.json mocha --parallel=false",
"tsc": "tsc -b"
Expand Down
2 changes: 2 additions & 0 deletions packages/kmore-cli/test/01.index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ describe(fileShortPath(import.meta.url), () => {
describe('should work', () => {
it('foo', () => {
assert(typeof Src === 'object', 'typeof Src !== "object"')
// @ts-expect-error
if (typeof Src.foo === 'number') {
// @ts-expect-error
assert(Src.foo === 1)
}
})
Expand Down
3 changes: 2 additions & 1 deletion packages/kmore-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
},
"scripts": {
"build": "npm run tsc && tsc-alias && npm run rp",
"build:test": "tsc -p test/tsconfig.json",
"clean": "npm run clean:lock && npm run clean:dist && npm run clean:log",
"clean:cache": "rm -rf .eslintcache .tsbuildinfo",
"clean:dist": "npm run clean:cache && rm -rf dist/*",
Expand All @@ -64,7 +65,7 @@
"cov": "c8 --all npm run test -- --parallel=false",
"lint": "eslint --fix --cache src test",
"lint:nofix": "eslint --cache src test",
"pretest": "npm run build",
"pretest": "npm run build && npm run build:test",
"rp": "tsx bin-hashbang.js",
"test": "cross-env NODE_ENV=test TS_NODE_PROJECT=test/tsconfig.json mocha --jobs=4",
"tsc": "tsc -b"
Expand Down
3 changes: 2 additions & 1 deletion packages/kmore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
},
"scripts": {
"build": "npm run tsc && tsc-alias && npm run rp",
"build:test": "tsc -p test/tsconfig.json",
"clean": "npm run clean:lock && npm run clean:dist && npm run clean:log",
"clean:cache": "rm -rf .eslintcache .tsbuildinfo",
"clean:dist": "npm run clean:cache && rm -rf dist/*",
Expand All @@ -78,7 +79,7 @@
"cov": "c8 --all npm run test -- --parallel=false",
"lint": "eslint --fix --cache src test",
"lint:nofix": "eslint --cache src test",
"pretest": "npm run build",
"pretest": "npm run build && npm run build:test",
"rp": "tsx bin-hashbang.js",
"test": "cross-env NODE_ENV=test TS_NODE_PROJECT=test/tsconfig.json mocha --jobs=2",
"tsc": "tsc -b"
Expand Down
3 changes: 2 additions & 1 deletion packages/midway-component-kmore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
},
"scripts": {
"build": "npm run tsc && tsc-alias",
"build:test": "tsc -p test/tsconfig.json",
"clean": "npm run clean:lock && npm run clean:dist && npm run clean:log",
"clean:cache": "rm -rf .eslintcache .tsbuildinfo",
"clean:dist": "npm run clean:cache && rm -rf dist/*",
Expand All @@ -84,7 +85,7 @@
"lint": "eslint --fix --cache src test",
"lint:nofix": "eslint --cache src test",
"predev": "npm run build",
"pretest": "npm run build",
"pretest": "npm run build && npm run build:test",
"start": "cross-env NODE_ENV=production node ./bootstrap.js",
"test": "cross-env MIDWAY_SERVER_ENV=unittest TS_NODE_PROJECT=test/tsconfig.json mocha --parallel=false",
"tsc": "tsc -b"
Expand Down

0 comments on commit ad6ceb2

Please sign in to comment.