Skip to content

Commit 4a12a74

Browse files
authored
chore: use unbuild
1 parent 6f39c09 commit 4a12a74

File tree

5 files changed

+2407
-2275
lines changed

5 files changed

+2407
-2275
lines changed

bin/tosetup.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env node
22
"use strict";
3-
import "../dist/setup.js";
3+
import "../dist/setup.mjs";

build.config.ts

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { defineBuildConfig } from "unbuild";
2+
3+
export default defineBuildConfig({
4+
entries: ["src/index", "src/setup"],
5+
rollup: {
6+
inlineDependencies: true,
7+
},
8+
clean: true,
9+
declaration: true,
10+
});

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"node": ">=14"
4343
},
4444
"scripts": {
45-
"build": "tsup",
45+
"build": "unbuild",
4646
"lint": "rome ci ./src",
4747
"prepublishOnly": "nr build",
4848
"dev": "esno src/setup.ts",
@@ -62,7 +62,7 @@
6262
"typescript": "^4.9.4",
6363
"vite": "^4.0.2",
6464
"vitest": "^0.26.1",
65-
"tsup": "^6.5.0"
65+
"unbuild": "^1.0.2"
6666
},
6767
"dependencies": {
6868
"@swc/core": "^1.3.24",

0 commit comments

Comments
 (0)