Skip to content

Commit a0c0933

Browse files
committed
types?
1 parent 2026197 commit a0c0933

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "3.0.0",
2+
"version": "3.0.1",
33
"name": "httpsnippet",
44
"description": "HTTP Request snippet generator for *most* languages",
55
"author": "Kong <[email protected]>",
@@ -53,6 +53,7 @@
5353
"lint:code": "eslint . --ext ts,d.ts,test.ts --fix",
5454
"lint:markdown": "markdownlint-cli2 \"**/*.md\" \"#**/node_modules\"",
5555
"build": "tsc --build tsconfig.build.json",
56+
"build:types": "tsc -d --declarationDir dist/lib --declarationMap --emitDeclarationOnly",
5657
"test": "jest"
5758
},
5859
"devDependencies": {

tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"strict": true,
88
"esModuleInterop": true,
99
"downlevelIteration": true,
10-
"lib": ["ESNext"]
10+
"lib": ["ESNext"],
11+
"declaration": true,
12+
"declarationMap": true,
1113
},
1214
"include": ["src"],
1315
"exclude": ["dist", "**/*.test.ts"]

0 commit comments

Comments
 (0)