Skip to content

Commit 1267bad

Browse files
Setup npm package
1 parent 9d0e9f8 commit 1267bad

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,19 @@
33
"version": "0.0.1",
44
"description": "An open source API wrapper for TechHost API.",
55
"main": "dist/index.js",
6+
"types": "types/index.d.ts",
67
"scripts": {
78
"build": "npm run lint && npm run prettier && npm run compile",
89
"compile": "tsc",
910
"lint": "eslint src/**/*.ts --fix",
11+
"postversion": "git push && git push --tags",
12+
"prepare": "npm run build",
13+
"prepublishOnly": "npm test && npm run lint",
1014
"prettier": "prettier --write src/**/*.ts",
15+
"preversion": "npm run lint",
1116
"start": "npm ci && npm run build && node .",
12-
"test": "eslint src && prettier --check src/**/*.ts && tsc --noEmit"
17+
"test": "eslint src && prettier --check src/**/*.ts && tsc --noEmit",
18+
"version": "npm run prettier && git add -A src"
1319
},
1420
"repository": {
1521
"type": "git",

0 commit comments

Comments
 (0)