@@ -26,14 +26,18 @@ it("can bundle a simple project", async () => {
26
26
exports.__esModule = true;
27
27
exports.someNumber = void 0;
28
28
exports.someNumber = 1;
29
+ exports[\\"default\\"] = \\"kek\\";
29
30
"
30
31
` ) ;
31
32
expect ( fse . readFileSync ( indexDtsFilePath , "utf8" ) ) . toMatchInlineSnapshot ( `
32
33
"export declare const someNumber = 1;
34
+ declare const _default: \\"kek\\";
35
+ export default _default;
33
36
"
34
37
` ) ;
35
38
expect ( fse . readFileSync ( indexMjsFilePath , "utf8" ) ) . toMatchInlineSnapshot ( `
36
39
"export var someNumber = 1;
40
+ export default \\"kek\\";
37
41
"
38
42
` ) ;
39
43
expect ( fse . readFileSync ( readmeFilePath , "utf8" ) ) . toMatchInlineSnapshot ( `
@@ -57,7 +61,7 @@ it("can bundle a simple project", async () => {
57
61
\\"exports\\": {
58
62
\\".\\": {
59
63
\\"require\\": {
60
- \\"types\\": \\"./typings/index.d.ts \\",
64
+ \\"types\\": \\"./typings/index.d.cts \\",
61
65
\\"default\\": \\"./cjs/index.js\\"
62
66
},
63
67
\\"import\\": {
@@ -71,7 +75,7 @@ it("can bundle a simple project", async () => {
71
75
},
72
76
\\"./*\\": {
73
77
\\"require\\": {
74
- \\"types\\": \\"./typings/*.d.ts \\",
78
+ \\"types\\": \\"./typings/*.d.cts \\",
75
79
\\"default\\": \\"./cjs/*.js\\"
76
80
},
77
81
\\"import\\": {
@@ -166,7 +170,7 @@ it("can build a monorepo project", async () => {
166
170
\\"exports\\": {
167
171
\\".\\": {
168
172
\\"require\\": {
169
- \\"types\\": \\"./typings/index.d.ts \\",
173
+ \\"types\\": \\"./typings/index.d.cts \\",
170
174
\\"default\\": \\"./cjs/index.js\\"
171
175
},
172
176
\\"import\\": {
@@ -180,7 +184,7 @@ it("can build a monorepo project", async () => {
180
184
},
181
185
\\"./*\\": {
182
186
\\"require\\": {
183
- \\"types\\": \\"./typings/*.d.ts \\",
187
+ \\"types\\": \\"./typings/*.d.cts \\",
184
188
\\"default\\": \\"./cjs/*.js\\"
185
189
},
186
190
\\"import\\": {
@@ -256,7 +260,7 @@ it("can build a monorepo project", async () => {
256
260
\\"exports\\": {
257
261
\\".\\": {
258
262
\\"require\\": {
259
- \\"types\\": \\"./typings/index.d.ts \\",
263
+ \\"types\\": \\"./typings/index.d.cts \\",
260
264
\\"default\\": \\"./cjs/index.js\\"
261
265
},
262
266
\\"import\\": {
@@ -270,7 +274,7 @@ it("can build a monorepo project", async () => {
270
274
},
271
275
\\"./foo\\": {
272
276
\\"require\\": {
273
- \\"types\\": \\"./typings/foo.d.ts \\",
277
+ \\"types\\": \\"./typings/foo.d.cts \\",
274
278
\\"default\\": \\"./cjs/foo.js\\"
275
279
},
276
280
\\"import\\": {
0 commit comments