Skip to content

Commit 19c3e99

Browse files
committed
fix: run attw and use correct index file entries
- run "Are the Types Wrong" CLI and fix incorrect file entries, it used to be `excel-builder..mjs` but is now `index.mjs`
1 parent d509606 commit 19c3e99

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

packages/excel-builder-vanilla-types/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
"import": {
3030
"types": "./dist/index.d.ts",
3131
"default": "./dist/index.mjs"
32+
},
33+
"require": {
34+
"types": "./dist/index.d.cts",
35+
"default": "./dist/index.cjs"
3236
}
3337
},
3438
"./package.json": "./package.json"
@@ -41,4 +45,4 @@
4145
"dependencies": {
4246
"fflate": "^0.8.2"
4347
}
44-
}
48+
}

packages/excel-builder-vanilla/copy-types.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ copyfiles([source, destination], {}, err => {
99
console.error(err);
1010
} else {
1111
// all good, next step, create JS entry file
12-
writeFileSync(`${destination}/dist/excel-builder.cjs`, `'use strict';`);
13-
writeFileSync(`${destination}/dist/excel-builder.mjs`, `'use strict';`);
12+
writeFileSync(`${destination}/dist/index.cjs`, `'use strict';`);
13+
writeFileSync(`${destination}/dist/index.mjs`, `'use strict';`);
1414
}
1515
});

0 commit comments

Comments
 (0)