Skip to content

Commit a278a64

Browse files
committed
add npm publish scripts
1 parent c461648 commit a278a64

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,19 @@
2626
],
2727
"scripts": {
2828
"build": "npm run clean && npm run build:lib",
29+
"test": "jest --coverage",
30+
"lint": "eslint ./src",
31+
"lint:fix": "eslint ./src --fix",
32+
"format": "prettier --write ./src",
33+
"npm:publish:dry-run": "npm publish --dry-run",
34+
"npm:publish": "npm publish --access public",
35+
"typecheck": "tsc --noEmit -p tsconfig.json --composite false",
2936
"build:lib": "npm run build:cjs && npm run build:esm",
3037
"build:esm": "tsc --module esnext --outDir bin/esm && echo '{\"type\": \"module\"}' > bin/esm/package.json",
3138
"build:cjs": "tsc --module commonjs --outDir bin/cjs && echo '{\"type\": \"commonjs\"}' > bin/cjs/package.json",
3239
"build:doc": "typedoc",
33-
"clean": "rm -rf bin",
34-
"format": "prettier --write ./src",
35-
"typecheck": "tsc --noEmit -p tsconfig.json --composite false",
36-
"lint": "eslint ./src",
37-
"lint:fix": "eslint ./src --fix",
38-
"test": "jest --coverage"
40+
"clean": "rm -rf bin"
41+
3942
},
4043
"nyc": {
4144
"extension": [

0 commit comments

Comments
 (0)