Skip to content

Commit 26ca14c

Browse files
author
troy
committed
update: setup package.
1 parent cf559c9 commit 26ca14c

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.npmignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
src
2+
tsconfig.json
3+
tslint.json
4+
.prettierrc

package.json

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
{
22
"name": "http-context-nodejs",
33
"version": "1.0.0",
4-
"description": "",
4+
"description": "Get and set request-scoped context anywhere, and use it in any framework.",
55
"main": "lib/index.js",
6-
"types": "lib",
6+
"types": "lib/index.d.ts",
7+
"files": ["lib/**/*"],
78
"scripts": {
89
"test": "mocha -r ts-node/register test/*.ts",
910
"build": "tsc",
1011
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
11-
"lint": "tslint -p tsconfig.json"
12+
"lint": "tslint -p tsconfig.json",
13+
"prepare": "npm run build",
14+
"prepublishOnly": "npm test && npm run lint",
15+
"preversion": "npm run lint",
16+
"version": "npm run format && git add -A src",
17+
"postversion": "git push && git push --tags"
1218
},
1319
"repository": {
1420
"type": "git",

0 commit comments

Comments
 (0)