Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 59a326e

Browse files
committed
Setup package
1 parent b3626fc commit 59a326e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.npmignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
examples
2-
test
1+
"files": ["dist/**/*"]

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
"scripts": {
88
"build": "tsc",
99
"dev": "tsc-watch",
10-
"test": "mocha -r ts-node/register --exit test/**/*.spec.ts"
10+
"test": "mocha -r ts-node/register --exit test/**/*.spec.ts",
11+
12+
"prepare" : "npm run build",
13+
"prepublishOnly" : "npm test",
14+
"version" : "npm run format && git add -A src",
15+
"postversion" : "git push && git push --tags"
1116
},
1217
"types": "./dist/index.d.ts",
1318
"author": "BennoDev",

0 commit comments

Comments
 (0)