bunchee 6.3.1 → 6.3.2

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/README.md CHANGED
@@ -355,7 +355,7 @@ Then use use the [exports field in package.json](https://nodejs.org/api/packages
355
355
  <details>
356
356
  <summary>TypeScript</summary>
357
357
 
358
- If you're build a TypeScript library, separate the types from the main entry file and specify the types path in package.json. Types exports need to stay on the top of each export with `types` condition, and you can use `default` condition for the JS bundle file.
358
+ If you're building a TypeScript library, separate the types from the main entry file and specify the types path in package.json. Types exports need to stay on the top of each export with `types` condition, and you can use `default` condition for the JS bundle file.
359
359
 
360
360
  ```json5
361
361
  {
package/dist/bin/cli.js CHANGED
@@ -9,7 +9,7 @@ var require$$0 = require('tty');
9
9
  var picomatch = require('picomatch');
10
10
  var index_js = require('../index.js');
11
11
  require('module');
12
- var glob = require('glob');
12
+ var fastGlob = require('fast-glob');
13
13
  var prettyBytes = require('pretty-bytes');
14
14
 
15
15
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -646,7 +646,7 @@ function lint$1(pkg) {
646
646
  }
647
647
  }
648
648
 
649
- var version = "6.3.1";
649
+ var version = "6.3.2";
650
650
 
651
651
  async function writeDefaultTsconfig(tsConfigPath) {
652
652
  await fs.promises.writeFile(tsConfigPath, JSON.stringify(DEFAULT_TS_CONFIG, null, 2), 'utf-8');
@@ -730,10 +730,11 @@ async function collectSourceEntriesByExportPath(sourceFolderPath, originalSubpat
730
730
  ...availableExtensions
731
731
  ].join(',')}}`
732
732
  ];
733
- const entryFiles = await glob.glob(entryFilesPatterns, {
733
+ const entryFiles = await fastGlob.glob(entryFilesPatterns, {
734
734
  cwd: dirPath,
735
- nodir: true,
736
- ignore: PRIVATE_GLOB_PATTERN
735
+ ignore: [
736
+ PRIVATE_GLOB_PATTERN
737
+ ]
737
738
  });
738
739
  validateEntryFiles(entryFiles);
739
740
  for (const file of entryFiles){
@@ -778,17 +779,15 @@ async function collectSourceEntries(sourceFolderPath) {
778
779
  const srcPattern = `**/*.{${[
779
780
  ...availableExtensions
780
781
  ].join(',')}}`;
781
- const binMatches = await glob.glob(binPattern, {
782
+ const binMatches = await fastGlob.glob(binPattern, {
782
783
  cwd: sourceFolderPath,
783
- nodir: true,
784
784
  ignore: [
785
785
  PRIVATE_GLOB_PATTERN,
786
786
  TESTS_GLOB_PATTERN
787
787
  ]
788
788
  });
789
- const srcMatches = await glob.glob(srcPattern, {
789
+ const srcMatches = await fastGlob.glob(srcPattern, {
790
790
  cwd: sourceFolderPath,
791
- nodir: true,
792
791
  ignore: [
793
792
  PRIVATE_GLOB_PATTERN,
794
793
  TESTS_GLOB_PATTERN
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ var fsp = require('fs/promises');
4
4
  var fs = require('fs');
5
5
  var path = require('path');
6
6
  require('pretty-bytes');
7
- var glob = require('glob');
7
+ var fastGlob = require('fast-glob');
8
8
  var require$$0 = require('tty');
9
9
  var module$1 = require('module');
10
10
  var rollup = require('rollup');
@@ -817,10 +817,11 @@ async function collectSourceEntriesByExportPath(sourceFolderPath, originalSubpat
817
817
  ...availableExtensions
818
818
  ].join(',')}}`
819
819
  ];
820
- const entryFiles = await glob.glob(entryFilesPatterns, {
820
+ const entryFiles = await fastGlob.glob(entryFilesPatterns, {
821
821
  cwd: dirPath,
822
- nodir: true,
823
- ignore: PRIVATE_GLOB_PATTERN
822
+ ignore: [
823
+ PRIVATE_GLOB_PATTERN
824
+ ]
824
825
  });
825
826
  validateEntryFiles(entryFiles);
826
827
  for (const file of entryFiles){
@@ -884,10 +885,11 @@ async function collectSourceEntriesByExportPath(sourceFolderPath, originalSubpat
884
885
  ...availableExtensions
885
886
  ].join(',');
886
887
  const privatePattern = `**/_*{,/*}{,{.${suffixPattern}}}.{${extPattern}}`;
887
- const privateFiles = await glob.glob(privatePattern, {
888
+ const privateFiles = await fastGlob.glob(privatePattern, {
888
889
  cwd: sourceFolderPath,
889
- nodir: true,
890
- ignore: TESTS_GLOB_PATTERN
890
+ ignore: [
891
+ TESTS_GLOB_PATTERN
892
+ ]
891
893
  });
892
894
  for (const file of privateFiles){
893
895
  const sourceFileAbsolutePath = path__default.default.join(sourceFolderPath, file);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunchee",
3
- "version": "6.3.1",
3
+ "version": "6.3.2",
4
4
  "description": "zero config bundler for js/ts/jsx libraries",
5
5
  "bin": "./dist/bin/cli.js",
6
6
  "main": "./dist/index.js",
@@ -46,7 +46,7 @@
46
46
  "@swc/core": "^1.10.7",
47
47
  "@swc/helpers": "^0.5.11",
48
48
  "clean-css": "^5.3.3",
49
- "glob": "^11.0.0",
49
+ "fast-glob": "^3.3.3",
50
50
  "magic-string": "^0.30.17",
51
51
  "ora": "^8.0.1",
52
52
  "picomatch": "^4.0.2",