From 10fa70f4f9f3245a75b784c70f5000213a2bc3bf Mon Sep 17 00:00:00 2001 From: Michael Lux Date: Sat, 2 Dec 2023 13:51:43 +0100 Subject: [PATCH] add types extraction script --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2938604..c908301 100644 --- a/package.json +++ b/package.json @@ -2,11 +2,13 @@ "name": "mongoose-bread-url-builder", "version": "1.0.2", "description": "", + "types": "index.d.ts", "type": "module", "main": "src/BreadUrlBuilder.js", "scripts": { "test": "node node_modules/mocha/bin/mocha test/*.js -R spec --ui bdd --timeout 9999999", - "docs": "jsdoc src/BreadUrlBuilder.js -d docs" + "make:types": "npx -p typescript tsc src/BreadUrlBuilder.js --declaration --allowJs --emitDeclarationOnly --outFile index.d.ts", + "make:docs": "jsdoc src/BreadUrlBuilder.js -d docs" }, "keywords": [], "author": "",