Skip to content

Commit 315c024

Browse files
committed
package starter v1
1 parent 7cf06d8 commit 315c024

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "typescript-starter-package",
33
"version": "1.0.0",
44
"description": "A starter package for TypeScript and Node Projects",
5-
"main": "index.js",
5+
"main": "lib/index.js",
6+
"types": "lib/index.d.ts",
67
"files": [
78
"lib/**/*"
89
],
@@ -11,6 +12,10 @@
1112
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
1213
"lint": "tslint -p tsconfig.json",
1314
"prepare": "npm run build",
15+
"prepublishOnly": "npm test && npm run lint",
16+
"preversion": "npm run lint",
17+
"version": "npm run format && git add -A src",
18+
"postversion": "git push && git push --tags",
1419
"test": "jest --config jestconfig.json"
1520
},
1621
"repository": {

0 commit comments

Comments
 (0)