Skip to content

Commit 09bb90d

Browse files
Merge pull request #16 from RobotlegsJS/publish-scripts
Solve deprecation notes related to NPM publish scripts
2 parents fd82ebd + 1398491 commit 09bb90d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
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: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
"karma": "karma start --single-run",
1010
"autoformat": "prettier --config .prettierrc --write {src,test}/**/{*,*.test}.ts",
1111
"tslint-check": "tslint-config-prettier-check ./tslint.json",
12-
"prepublish": "tsc -d && publish-please guard",
13-
"clean-up": "rm -rf coverage && rm -rf lib",
14-
"publish-please": "npm run autoformat && npm run clean-up && npm run build && publish-please",
15-
"build": "webpack --env.production"
12+
"clean-up": "rm -rf .nyc_output && rm -rf coverage && rm -rf lib",
13+
"build": "webpack --env.production",
14+
"prepare": "npm run clean-up && tsc -d",
15+
"prepublishOnly": "publish-please guard",
16+
"publish-please": "npm run autoformat && npm run clean-up && npm run build && npm run test && publish-please"
1617
},
1718
"nyc": {
1819
"include": [

0 commit comments

Comments
 (0)