bunchee 5.1.0 → 5.1.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 +4 -4
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -474,7 +474,7 @@ function lint$1(pkg) {
|
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
-
var version = "5.1.
|
|
477
|
+
var version = "5.1.1";
|
|
478
478
|
|
|
479
479
|
function relativify(path) {
|
|
480
480
|
return path.startsWith('.') ? path : `./${path}`;
|
|
@@ -555,7 +555,7 @@ async function collectSourceEntriesByExportPath(sourceFolderPath, originalSubpat
|
|
|
555
555
|
});
|
|
556
556
|
for (const binDirent of binDirentList){
|
|
557
557
|
if (binDirent.isFile()) {
|
|
558
|
-
const binFileAbsolutePath = path__default.default.join(
|
|
558
|
+
const binFileAbsolutePath = path__default.default.join(absoluteDirPath, binDirent.name);
|
|
559
559
|
if (fs__default.default.existsSync(binFileAbsolutePath)) {
|
|
560
560
|
bins.set(normalizeExportPath(originalSubpath), binFileAbsolutePath);
|
|
561
561
|
}
|
|
@@ -610,7 +610,7 @@ async function collectSourceEntriesByExportPath(sourceFolderPath, originalSubpat
|
|
|
610
610
|
if (isTestFile(dirent.name)) {
|
|
611
611
|
continue;
|
|
612
612
|
}
|
|
613
|
-
const sourceFileAbsolutePath = path__default.default.join(
|
|
613
|
+
const sourceFileAbsolutePath = path__default.default.join(dirPath, dirent.name);
|
|
614
614
|
if (isBinaryPath) {
|
|
615
615
|
bins.set(originalSubpath, sourceFileAbsolutePath);
|
|
616
616
|
} else {
|
|
@@ -656,7 +656,7 @@ async function collectSourceEntries(sourceFolderPath) {
|
|
|
656
656
|
const binDirent = entryFileDirentList.find((dirent)=>getFileBasename(dirent.name) === 'bin');
|
|
657
657
|
if (binDirent) {
|
|
658
658
|
if (binDirent.isDirectory()) {
|
|
659
|
-
const binDirentList = await fsp__default.default.readdir(path__default.default.join(
|
|
659
|
+
const binDirentList = await fsp__default.default.readdir(path__default.default.join(sourceFolderPath, binDirent.name), {
|
|
660
660
|
withFileTypes: true
|
|
661
661
|
});
|
|
662
662
|
for (const binDirent of binDirentList){
|
package/dist/index.js
CHANGED
|
@@ -1021,7 +1021,7 @@ async function collectSourceEntriesByExportPath(sourceFolderPath, originalSubpat
|
|
|
1021
1021
|
});
|
|
1022
1022
|
for (const binDirent of binDirentList){
|
|
1023
1023
|
if (binDirent.isFile()) {
|
|
1024
|
-
const binFileAbsolutePath = path__default.default.join(
|
|
1024
|
+
const binFileAbsolutePath = path__default.default.join(absoluteDirPath, binDirent.name);
|
|
1025
1025
|
if (fs__default.default.existsSync(binFileAbsolutePath)) {
|
|
1026
1026
|
bins.set(normalizeExportPath(originalSubpath), binFileAbsolutePath);
|
|
1027
1027
|
}
|
|
@@ -1076,7 +1076,7 @@ async function collectSourceEntriesByExportPath(sourceFolderPath, originalSubpat
|
|
|
1076
1076
|
if (isTestFile(dirent.name)) {
|
|
1077
1077
|
continue;
|
|
1078
1078
|
}
|
|
1079
|
-
const sourceFileAbsolutePath = path__default.default.join(
|
|
1079
|
+
const sourceFileAbsolutePath = path__default.default.join(dirPath, dirent.name);
|
|
1080
1080
|
if (isBinaryPath) {
|
|
1081
1081
|
bins.set(originalSubpath, sourceFileAbsolutePath);
|
|
1082
1082
|
} else {
|