bunchee 6.1.2 → 6.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin/cli.js CHANGED
@@ -642,7 +642,7 @@ function lint$1(pkg) {
642
642
  }
643
643
  }
644
644
 
645
- var version = "6.1.2";
645
+ var version = "6.1.3";
646
646
 
647
647
  async function writeDefaultTsconfig(tsConfigPath) {
648
648
  await fs.promises.writeFile(tsConfigPath, JSON.stringify(DEFAULT_TS_CONFIG, null, 2), 'utf-8');
package/dist/index.js CHANGED
@@ -898,15 +898,15 @@ async function collectSourceEntriesByExportPath(sourceFolderPath, originalSubpat
898
898
  ]
899
899
  ];
900
900
  const privateExportInfo = [
901
+ ...isTs ? typesInfos : [],
901
902
  [
902
903
  posixRelativify(path.posix.join('./dist', exportPath + (isEsmPkg ? '.js' : '.mjs'))),
903
- condPart + 'import'
904
+ condPart + 'import.default'
904
905
  ],
905
906
  [
906
907
  posixRelativify(path.posix.join('./dist', exportPath + (isEsmPkg ? '.cjs' : '.js'))),
907
- condPart + 'require'
908
- ],
909
- ...isTs ? typesInfos : []
908
+ condPart + 'require.default'
909
+ ]
910
910
  ];
911
911
  const exportsInfo = parsedExportsInfo.get(normalizedExportPath);
912
912
  if (!exportsInfo) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunchee",
3
- "version": "6.1.2",
3
+ "version": "6.1.3",
4
4
  "description": "zero config bundler for js/ts/jsx libraries",
5
5
  "bin": "./dist/bin/cli.js",
6
6
  "main": "./dist/index.js",