bunchee
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -57,3 +57,3 @@ #!/usr/bin/env node | ||
var version = "4.0.0"; | ||
var version = "4.0.1"; | ||
@@ -60,0 +60,0 @@ const helpMessage = ` |
@@ -764,3 +764,2 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
Object.keys(exportPaths).forEach(async (entryExport)=>{ | ||
// TODO: improve the source detection | ||
const exportCond = exportPaths[entryExport]; | ||
@@ -773,11 +772,7 @@ const buildConfigs = [ | ||
if (!dts) { | ||
if (exportCond['edge-light']) { | ||
buildConfigs.push(createBuildConfig('edge-light', exportCond)); | ||
for (const exportType of availableExportConventions){ | ||
if (exportCond[exportType]) { | ||
buildConfigs.push(createBuildConfig(exportType, exportCond)); | ||
} | ||
} | ||
if (exportCond['react-server']) { | ||
buildConfigs.push(createBuildConfig('react-server', exportCond)); | ||
} | ||
if (exportCond['react-native']) { | ||
buildConfigs.push(createBuildConfig('react-native', exportCond)); | ||
} | ||
} | ||
@@ -799,4 +794,9 @@ async function createBuildConfig(exportType, exportCondRef) { | ||
} | ||
const source = entryPath || await getSourcePathFromExportPath(cwd, entryExport, exportType); | ||
if (!source) return undefined; | ||
let source = entryPath; | ||
if (!source) { | ||
source = await getSourcePathFromExportPath(cwd, entryExport, exportType); | ||
} | ||
if (!source) { | ||
return undefined; | ||
} | ||
const exportCondition = { | ||
@@ -1073,3 +1073,3 @@ source, | ||
if (result.length === 0) { | ||
logger.warn('The "src" directory does not contain any entry files. ' + 'For proper usage, please refer to the following link: ' + 'https://github.com/huozhi/bunchee?tab=readme-ov-file#usage'); | ||
logger.warn('The "src" directory does not contain any entry files. ' + 'For proper usage, please refer to the following link: ' + 'https://github.com/huozhi/bunchee#usage'); | ||
} | ||
@@ -1076,0 +1076,0 @@ logSizeStats(); |
{ | ||
"name": "bunchee", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "zero config bundler for js/ts/jsx libraries", | ||
@@ -26,3 +26,4 @@ "bin": "./dist/bin/cli.js", | ||
"zero-config", | ||
"library" | ||
"library", | ||
"server components" | ||
], | ||
@@ -38,3 +39,3 @@ "files": [ | ||
"engines": { | ||
"node": ">= 16" | ||
"node": ">= 18.0.0" | ||
}, | ||
@@ -41,0 +42,0 @@ "author": "huozhi (github.com/huozhi)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60249