Skip to content

Commit c0c00ad

Browse files
committedFeb 26, 2025·
build: remove extra dist files
1 parent da70603 commit c0c00ad

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed
 

Diff for: ‎build.config.ts

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { defineBuildConfig } from "unbuild";
2+
import { rm } from "node:fs/promises";
3+
4+
export default defineBuildConfig({
5+
hooks: {
6+
async "build:done"() {
7+
await rm("dist/index.d.ts");
8+
await rm("dist/cli.d.ts");
9+
await rm("dist/cli.d.mts");
10+
},
11+
},
12+
});

Diff for: ‎package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
"license": "MIT",
77
"type": "module",
88
"exports": {
9-
".": {
10-
"import": "./dist/index.mjs"
11-
}
9+
"types": "./dist/index.d.mts",
10+
"import": "./dist/index.mjs"
1211
},
13-
"types": "./dist/index.d.ts",
12+
"types": "./dist/index.d.mts",
1413
"bin": {
1514
"unbuild": "./dist/cli.mjs"
1615
},

0 commit comments

Comments
 (0)
Please sign in to comment.