Skip to content

Commit 62d0251

Browse files
committed
chore: publish source maps and use tsc for generating types
1 parent a726c8d commit 62d0251

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"main": "build/index.js",
99
"type": "module",
1010
"files": [
11-
"build"
11+
"build",
12+
"!build/bin",
13+
"!build/tests"
1214
],
1315
"exports": {
1416
".": "./build/index.js",
@@ -21,7 +23,8 @@
2123
"lint": "eslint . --ext=.ts",
2224
"clean": "del-cli build",
2325
"typecheck": "tsc --noEmit",
24-
"compile": "npm run lint && npm run clean && tsup-node",
26+
"precompile": "npm run lint && npm run clean",
27+
"compile": "tsup-node && tsc --emitDeclarationOnly --declaration",
2528
"build": "npm run compile",
2629
"release": "np",
2730
"version": "npm run build",
@@ -127,13 +130,13 @@
127130
"tsup": {
128131
"entry": [
129132
"./index.ts",
130-
"./src/code_transformer/main.ts",
131-
"./src/types.ts"
133+
"./src/code_transformer/main.ts"
132134
],
133135
"outDir": "./build",
134136
"clean": true,
135137
"format": "esm",
136-
"dts": true,
138+
"dts": false,
139+
"sourcemap": true,
137140
"target": "esnext"
138141
}
139142
}

0 commit comments

Comments
 (0)