Skip to content

Commit 3eaea80

Browse files
committed
chore: use tsup for bundling
1 parent 2215c38 commit 3eaea80

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

package.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"lint": "eslint . --ext=.ts",
2424
"clean": "del-cli build",
2525
"typecheck": "tsc --noEmit",
26-
"compile": "npm run lint && npm run clean && tsc",
26+
"compile": "npm run lint && npm run clean && tsup-node",
2727
"build": "npm run compile",
2828
"release": "np",
2929
"version": "npm run build",
@@ -57,6 +57,7 @@
5757
"p-event": "^6.0.0",
5858
"prettier": "^3.0.0",
5959
"ts-node": "^10.9.1",
60+
"tsup": "^7.2.0",
6061
"typescript": "^5.1.6"
6162
},
6263
"dependencies": {
@@ -122,5 +123,17 @@
122123
"src/test_runner.ts",
123124
"src/assets_dev_server.ts"
124125
]
126+
},
127+
"tsup": {
128+
"entry": [
129+
"./index.ts",
130+
"./src/code_transformer/main.ts",
131+
"./src/types.ts"
132+
],
133+
"outDir": "./build",
134+
"clean": true,
135+
"format": "esm",
136+
"dts": true,
137+
"target": "esnext"
125138
}
126139
}

0 commit comments

Comments
 (0)