From 5a530fa23481220f386bde1e78ff005c49425aa1 Mon Sep 17 00:00:00 2001 From: Stephan Schreiber Date: Sun, 24 Mar 2024 09:46:55 +0100 Subject: [PATCH] Keep comments in the generated .d.ts file --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 72ceed1..934c229 100644 --- a/package.json +++ b/package.json @@ -43,11 +43,12 @@ "types": "./dist/index.d.ts", "scripts": { "build": "tsc", + "build:dts": "tsc --emitDeclarationOnly --removeComments false", "watch": "tsc -w", "test": "ava", "lint": "eslint source/index.ts", "clean": "rimraf dist", - "prepublishOnly": "npm run lint && npm run clean && npm run build" + "prepublishOnly": "npm run lint && npm run clean && npm run build && npm run build:dts" }, "devDependencies": { "@fast-check/ava": "^1.2.1",