bunchee 6.6.0 → 6.6.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/dist/bin/cli.js CHANGED
@@ -9,8 +9,9 @@ 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 fastGlob = require('fast-glob');
12
+ var tinyglobby = require('tinyglobby');
13
13
  var prettyBytes = require('pretty-bytes');
14
+ var nanospinner = require('nanospinner');
14
15
 
15
16
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
16
17
 
@@ -646,7 +647,7 @@ function lint$1(pkg) {
646
647
  }
647
648
  }
648
649
 
649
- var version = "6.6.0";
650
+ var version = "6.6.2";
650
651
 
651
652
  async function writeDefaultTsconfig(tsConfigPath) {
652
653
  await fs.promises.writeFile(tsConfigPath, JSON.stringify(DEFAULT_TS_CONFIG, null, 2), 'utf-8');
@@ -730,11 +731,12 @@ async function collectSourceEntriesByExportPath(sourceFolderPath, originalSubpat
730
731
  ...availableExtensions
731
732
  ].join(',')}}`
732
733
  ];
733
- const entryFiles = await fastGlob.glob(entryFilesPatterns, {
734
+ const entryFiles = await tinyglobby.glob(entryFilesPatterns, {
734
735
  cwd: dirPath,
735
736
  ignore: [
736
737
  PRIVATE_GLOB_PATTERN
737
- ]
738
+ ],
739
+ expandDirectories: false
738
740
  });
739
741
  validateEntryFiles(entryFiles);
740
742
  for (const file of entryFiles){
@@ -779,19 +781,21 @@ async function collectSourceEntries(sourceFolderPath) {
779
781
  const srcPattern = `**/*.{${[
780
782
  ...availableExtensions
781
783
  ].join(',')}}`;
782
- const binMatches = await fastGlob.glob(binPattern, {
784
+ const binMatches = await tinyglobby.glob(binPattern, {
783
785
  cwd: sourceFolderPath,
784
786
  ignore: [
785
787
  PRIVATE_GLOB_PATTERN,
786
788
  TESTS_GLOB_PATTERN
787
- ]
789
+ ],
790
+ expandDirectories: false
788
791
  });
789
- const srcMatches = await fastGlob.glob(srcPattern, {
792
+ const srcMatches = await tinyglobby.glob(srcPattern, {
790
793
  cwd: sourceFolderPath,
791
794
  ignore: [
792
795
  PRIVATE_GLOB_PATTERN,
793
796
  TESTS_GLOB_PATTERN
794
- ]
797
+ ],
798
+ expandDirectories: false
795
799
  });
796
800
  for (const file of binMatches){
797
801
  // convert relative path to export path
@@ -1237,15 +1241,13 @@ async function run(args) {
1237
1241
  const cliEntry = source ? path__default.default.resolve(cwd, source) : '';
1238
1242
  // lint package by default
1239
1243
  await lint(cwd);
1240
- const { default: ora } = await import('ora');
1241
- const oraInstance = process.stdout.isTTY ? ora({
1242
- text: 'Building...\n\n',
1244
+ const spinnerInstance = process.stdout.isTTY ? nanospinner.createSpinner('Building...\n\n', {
1243
1245
  color: 'green'
1244
1246
  }) : {
1245
1247
  start: ()=>{},
1246
1248
  stop: ()=>{},
1247
1249
  clear: ()=>{},
1248
- stopAndPersist: ()=>{},
1250
+ success: ()=>{},
1249
1251
  isSpinning: false
1250
1252
  };
1251
1253
  const spinner = {
@@ -1253,18 +1255,18 @@ async function run(args) {
1253
1255
  stop: stopSpinner
1254
1256
  };
1255
1257
  function startSpinner() {
1256
- oraInstance.start();
1258
+ spinnerInstance.start();
1257
1259
  }
1258
1260
  function stopSpinner(text) {
1259
- if (oraInstance.isSpinning) {
1260
- oraInstance.clear();
1261
+ if (spinnerInstance.isSpinning) {
1262
+ spinnerInstance.clear();
1261
1263
  if (text) {
1262
- oraInstance.stopAndPersist({
1263
- symbol: '✔',
1264
+ spinnerInstance.success({
1265
+ mark: '✔',
1264
1266
  text
1265
1267
  });
1266
1268
  } else {
1267
- oraInstance.stop();
1269
+ spinnerInstance.stop();
1268
1270
  }
1269
1271
  }
1270
1272
  }
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 fastGlob = require('fast-glob');
7
+ var tinyglobby = require('tinyglobby');
8
8
  var require$$0 = require('tty');
9
9
  var module$1 = require('module');
10
10
  var rollup = require('rollup');
@@ -819,11 +819,12 @@ async function collectSourceEntriesByExportPath(sourceFolderPath, originalSubpat
819
819
  ...availableExtensions
820
820
  ].join(',')}}`
821
821
  ];
822
- const entryFiles = await fastGlob.glob(entryFilesPatterns, {
822
+ const entryFiles = await tinyglobby.glob(entryFilesPatterns, {
823
823
  cwd: dirPath,
824
824
  ignore: [
825
825
  PRIVATE_GLOB_PATTERN
826
- ]
826
+ ],
827
+ expandDirectories: false
827
828
  });
828
829
  validateEntryFiles(entryFiles);
829
830
  for (const file of entryFiles){
@@ -887,11 +888,12 @@ async function collectSourceEntriesByExportPath(sourceFolderPath, originalSubpat
887
888
  ...availableExtensions
888
889
  ].join(',');
889
890
  const privatePattern = `**/_*{,/*}{,{.${suffixPattern}}}.{${extPattern}}`;
890
- const privateFiles = await fastGlob.glob(privatePattern, {
891
+ const privateFiles = await tinyglobby.glob(privatePattern, {
891
892
  cwd: sourceFolderPath,
892
893
  ignore: [
893
894
  TESTS_GLOB_PATTERN
894
- ]
895
+ ],
896
+ expandDirectories: false
895
897
  });
896
898
  for (const file of privateFiles){
897
899
  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.6.0",
3
+ "version": "6.6.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,15 +46,15 @@
46
46
  "@swc/core": "^1.13.3",
47
47
  "@swc/helpers": "^0.5.17",
48
48
  "clean-css": "^5.3.3",
49
- "fast-glob": "^3.3.3",
50
49
  "magic-string": "^0.30.17",
51
- "ora": "^8.0.1",
50
+ "nanospinner": "^1.2.2",
52
51
  "picomatch": "^4.0.2",
53
52
  "pretty-bytes": "^5.6.0",
54
- "rollup": "^4.46.2",
55
- "rollup-plugin-dts": "^6.2.1",
53
+ "rollup": "^4.52.4",
54
+ "rollup-plugin-dts": "^6.2.3",
56
55
  "rollup-plugin-swc3": "^0.11.1",
57
56
  "rollup-preserve-directives": "^1.1.3",
57
+ "tinyglobby": "^0.2.14",
58
58
  "tslib": "^2.8.1",
59
59
  "yargs": "^17.7.2"
60
60
  },
@@ -83,7 +83,7 @@
83
83
  "cross-env": "^7.0.3",
84
84
  "husky": "^9.0.11",
85
85
  "lint-staged": "^15.2.2",
86
- "next": "^15.3.3",
86
+ "next": "16.0.0-canary.1",
87
87
  "picocolors": "^1.0.0",
88
88
  "postcss": "^8.5.4",
89
89
  "prettier": "3.4.2",