File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export default defineConfig({
77 tsconfig : `packages/${ projectName } /tsconfig.lib.json` ,
88 outDir : `packages/${ projectName } /dist/src` , // Output to src/ subdirectory to match tsc
99 unbundle : true , // Preserve directory structure like tsc
10- format : [ 'esm' , 'cjs' ] , // dual build
10+ format : [ 'esm' ] , // ESM only (uses top-level await)
1111 fixedExtension : true , // emit .mjs for esm and .cjs for cjs
1212 dts : true ,
1313 hash : false ,
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ export default defineConfig({
1414 external : [ 'zod' , 'vscode-material-icons' ] ,
1515 exports : false , // manually manage exports via onSuccess
1616 copy : [
17+ {
18+ from : `packages/${ projectName } /package.json` ,
19+ to : `packages/${ projectName } /dist/package.json` ,
20+ } ,
1721 {
1822 from : `packages/${ projectName } /README.md` ,
1923 to : `packages/${ projectName } /dist/README.md` ,
You can’t perform that action at this time.
0 commit comments