bunchee 6.0.0 → 6.0.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.
Files changed (2) hide show
  1. package/dist/bin/cli.js +6 -2
  2. package/package.json +1 -1
package/dist/bin/cli.js CHANGED
@@ -394,7 +394,7 @@ function validateTypesFieldCondition(pair) {
394
394
  }
395
395
  function validateFilesField(packageJson) {
396
396
  const state = {
397
- definedField: false,
397
+ definedField: true,
398
398
  missingFiles: []
399
399
  };
400
400
  const filesField = packageJson.files || [];
@@ -424,6 +424,10 @@ function validateFilesField(packageJson) {
424
424
  }
425
425
  }
426
426
  state.missingFiles = exportedPaths.filter((exportPath)=>{
427
+ // Special case for package.json
428
+ if (exportPath === 'package.json') {
429
+ return false;
430
+ }
427
431
  return !matchFile(filesField, exportPath);
428
432
  });
429
433
  return state;
@@ -610,7 +614,7 @@ function lint$1(pkg) {
610
614
  }
611
615
  }
612
616
 
613
- var version = "6.0.0";
617
+ var version = "6.0.2";
614
618
 
615
619
  async function writeDefaultTsconfig(tsConfigPath) {
616
620
  await fs.promises.writeFile(tsConfigPath, JSON.stringify(DEFAULT_TS_CONFIG, null, 2), 'utf-8');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunchee",
3
- "version": "6.0.0",
3
+ "version": "6.0.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",