We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da70603 commit c0c00adCopy full SHA for c0c00ad
build.config.ts
@@ -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
+});
package.json
@@ -6,11 +6,10 @@
"license": "MIT",
"type": "module",
"exports": {
- ".": {
- "import": "./dist/index.mjs"
- }
+ "types": "./dist/index.d.mts",
+ "import": "./dist/index.mjs"
},
13
- "types": "./dist/index.d.ts",
14
"bin": {
15
"unbuild": "./dist/cli.mjs"
16
0 commit comments