@@ -26,14 +26,18 @@ it("can bundle a simple project", async () => {
2626    exports.__esModule = true; 
2727    exports.someNumber = void 0; 
2828    exports.someNumber = 1; 
29+     exports[\\"default\\"] = \\"kek\\"; 
2930    " 
3031  ` ) ; 
3132  expect ( fse . readFileSync ( indexDtsFilePath ,  "utf8" ) ) . toMatchInlineSnapshot ( ` 
3233    "export declare const someNumber = 1; 
34+     declare const _default: \\"kek\\"; 
35+     export default _default; 
3336    " 
3437  ` ) ; 
3538  expect ( fse . readFileSync ( indexMjsFilePath ,  "utf8" ) ) . toMatchInlineSnapshot ( ` 
3639    "export var someNumber = 1; 
40+     export default \\"kek\\"; 
3741    " 
3842  ` ) ; 
3943  expect ( fse . readFileSync ( readmeFilePath ,  "utf8" ) ) . toMatchInlineSnapshot ( ` 
@@ -57,7 +61,7 @@ it("can bundle a simple project", async () => {
5761      \\"exports\\": { 
5862        \\".\\": { 
5963          \\"require\\": { 
60-             \\"types\\": \\"./typings/index.d.ts \\", 
64+             \\"types\\": \\"./typings/index.d.cts \\", 
6165            \\"default\\": \\"./cjs/index.js\\" 
6266          }, 
6367          \\"import\\": { 
@@ -71,7 +75,7 @@ it("can bundle a simple project", async () => {
7175        }, 
7276        \\"./*\\": { 
7377          \\"require\\": { 
74-             \\"types\\": \\"./typings/*.d.ts \\", 
78+             \\"types\\": \\"./typings/*.d.cts \\", 
7579            \\"default\\": \\"./cjs/*.js\\" 
7680          }, 
7781          \\"import\\": { 
@@ -166,7 +170,7 @@ it("can build a monorepo project", async () => {
166170      \\"exports\\": { 
167171        \\".\\": { 
168172          \\"require\\": { 
169-             \\"types\\": \\"./typings/index.d.ts \\", 
173+             \\"types\\": \\"./typings/index.d.cts \\", 
170174            \\"default\\": \\"./cjs/index.js\\" 
171175          }, 
172176          \\"import\\": { 
@@ -180,7 +184,7 @@ it("can build a monorepo project", async () => {
180184        }, 
181185        \\"./*\\": { 
182186          \\"require\\": { 
183-             \\"types\\": \\"./typings/*.d.ts \\", 
187+             \\"types\\": \\"./typings/*.d.cts \\", 
184188            \\"default\\": \\"./cjs/*.js\\" 
185189          }, 
186190          \\"import\\": { 
@@ -256,7 +260,7 @@ it("can build a monorepo project", async () => {
256260      \\"exports\\": { 
257261        \\".\\": { 
258262          \\"require\\": { 
259-             \\"types\\": \\"./typings/index.d.ts \\", 
263+             \\"types\\": \\"./typings/index.d.cts \\", 
260264            \\"default\\": \\"./cjs/index.js\\" 
261265          }, 
262266          \\"import\\": { 
@@ -270,7 +274,7 @@ it("can build a monorepo project", async () => {
270274        }, 
271275        \\"./foo\\": { 
272276          \\"require\\": { 
273-             \\"types\\": \\"./typings/foo.d.ts \\", 
277+             \\"types\\": \\"./typings/foo.d.cts \\", 
274278            \\"default\\": \\"./cjs/foo.js\\" 
275279          }, 
276280          \\"import\\": { 
0 commit comments