From 85fd125f9788c15d949c4f74e48a6ce003c0fb7d Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Mon, 6 Nov 2023 13:19:09 +0530 Subject: [PATCH] chore: publish source maps and use tsc for generating types --- package.json | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6a95d65..4479471 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,10 @@ "main": "build/index.js", "type": "module", "files": [ - "build" + "build", + "!build/bin", + "!build/examples", + "!build/tests" ], "exports": { ".": "./build/index.js", @@ -20,7 +23,8 @@ "test": "npm run vscode:test", "clean": "del-cli build", "typecheck": "tsc --noEmit", - "compile": "npm run lint && npm run clean && tsup-node", + "precompile": "npm run lint && npm run clean", + "compile": "tsup-node && tsc --emitDeclarationOnly --declaration", "build": "npm run compile", "prepublishOnly": "npm run build", "format": "prettier --write .", @@ -108,7 +112,8 @@ "outDir": "./build", "clean": true, "format": "esm", - "dts": true, + "dts": false, + "sourcemap": true, "target": "esnext" } }