Skip to content

Commit 9d6fd8f

Browse files
authored
chore: update npm scripts (#142)
* chore: update `npm scripts` - update `prepublish` - add `pretest` - add `build` - add `clean` - delete `typescript` * chore: add `preeslint`
1 parent add7283 commit 9d6fd8f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Diff for: package.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@
1010
"dist/"
1111
],
1212
"scripts": {
13-
"pretest": "npm run typescript",
14-
"typescript": "tsc --build tsconfig.json",
13+
"prepublish ": "npm run clean && npm run build",
14+
"build": "tsc -b",
15+
"clean": "tsc -b --clean",
16+
"preeslint": "npm run clean && npm run build",
1517
"eslint": "eslint src test",
18+
"pretest": "npm run clean && npm run build",
1619
"test": "mocha -r ts-node/register 'test/scripts/**/*.ts'",
1720
"test-cov": "c8 --reporter=lcovonly --reporter=text-summary npm test",
18-
"typedoc": "typedoc --entryPointStrategy expand ./src",
19-
"prepublish": "npm run typescript"
21+
"typedoc": "typedoc --entryPointStrategy expand ./src"
2022
},
2123
"repository": "hexojs/warehouse",
2224
"keywords": [

0 commit comments

Comments
 (0)