Skip to content

Commit 4f7d69b

Browse files
committed
solve issue related to npm deprecated scripts
1 parent fcb99e7 commit 4f7d69b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.publishrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
},
1010
"confirm": true,
1111
"publishTag": "latest --access public",
12-
"prePublishScript": "npm test",
12+
"prePublishScript": false,
1313
"postPublishScript": false
1414
}

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
"karma": "karma start --single-run",
1010
"autoformat": "prettier --config .prettierrc --write {src,test}/**/*.ts",
1111
"tslint-check": "tslint-config-prettier-check ./tslint.json",
12-
"clean-up": "rm -rf coverage && rm -rf lib",
13-
"prepublish": "tsc -d && publish-please guard",
14-
"publish-please": "npm run autoformat && npm run clean-up && publish-please"
12+
"clean-up": "rm -rf .nyc_output && rm -rf coverage && rm -rf lib",
13+
"prepare": "npm run clean-up && tsc -d",
14+
"prepublishOnly": "publish-please guard",
15+
"publish-please": "npm run autoformat && npm run clean-up && npm run test && publish-please"
1516
},
1617
"nyc": {
1718
"include": [

0 commit comments

Comments
 (0)