bunchee 6.0.0 → 6.0.1
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 +6 -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:
|
|
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.
|
|
617
|
+
var version = "6.0.1";
|
|
614
618
|
|
|
615
619
|
async function writeDefaultTsconfig(tsConfigPath) {
|
|
616
620
|
await fs.promises.writeFile(tsConfigPath, JSON.stringify(DEFAULT_TS_CONFIG, null, 2), 'utf-8');
|