Skip to content

Commit 5a530fa

Browse files
committed
Keep comments in the generated .d.ts file
1 parent 0fb700c commit 5a530fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@
4343
"types": "./dist/index.d.ts",
4444
"scripts": {
4545
"build": "tsc",
46+
"build:dts": "tsc --emitDeclarationOnly --removeComments false",
4647
"watch": "tsc -w",
4748
"test": "ava",
4849
"lint": "eslint source/index.ts",
4950
"clean": "rimraf dist",
50-
"prepublishOnly": "npm run lint && npm run clean && npm run build"
51+
"prepublishOnly": "npm run lint && npm run clean && npm run build && npm run build:dts"
5152
},
5253
"devDependencies": {
5354
"@fast-check/ava": "^1.2.1",

0 commit comments

Comments
 (0)