Skip to content

Commit ccf9772

Browse files
committed
feat!: drop support for esm
1 parent 4693a6e commit ccf9772

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
"./rolldown": "./dist/rolldown.mjs",
3636
"./rollup": "./dist/rollup.mjs",
3737
"./rspack": "./dist/rspack.mjs",
38-
"./types": "./dist/types.mjs",
38+
"./types": {
39+
"types": "./yaml.d.ts"
40+
},
3941
"./vite": "./dist/vite.mjs",
4042
"./webpack": "./dist/webpack.mjs",
4143
"./package.json": "./package.json"

tsdown.config.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,13 @@ export default defineConfig({
1010
outputOptions: {
1111
exports: "named",
1212
},
13-
exports: true,
13+
exports: {
14+
packageJson: false,
15+
customExports(exports) {
16+
exports["./types"] = { types: "./yaml.d.ts" };
17+
exports["./package.json"] = "./package.json";
18+
19+
return exports;
20+
},
21+
},
1422
});

0 commit comments

Comments
 (0)