We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43eaf8c commit 162abd8Copy full SHA for 162abd8
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
@@ -7,13 +7,10 @@
"sideEffects": false,
"type": "module",
"exports": {
- ".": {
- "types": "./dist/index.d.ts",
- "import": "./dist/index.mjs",
13
- "require": "./dist/index.cjs"
14
- }
+ "types": "./dist/index.d.mts",
+ "default": "./dist/index.mjs"
15
},
16
17
"bin": {
18
"automd": "dist/cli.mjs"
19
0 commit comments