bunchee 6.1.3 → 6.2.0
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/README.md +1 -1
- package/dist/bin/cli.js +1 -1
- package/dist/index.js +0 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -358,7 +358,7 @@ This convention keeps shared modules private while enabling efficient bundling a
|
|
|
358
358
|
- External (`--external <dep,>`): Specifying extra external dependencies, by default it is the list of `dependencies` and `peerDependencies` from `package.json`. Values are separate by comma.
|
|
359
359
|
- Target (`--target <target>`): Set ECMAScript target (default: `'es2015'`).
|
|
360
360
|
- Runtime (`--runtime <runtime>`): Set build runtime (default: `'browser'`).
|
|
361
|
-
- Environment (`--env <env,>`): Define environment variables. (default: `
|
|
361
|
+
- Environment (`--env <env,>`): Define environment variables. (default: `[]`, separate by comma)
|
|
362
362
|
- Working Directory (`--cwd <cwd>`): Set current working directory where containing `package.json`.
|
|
363
363
|
- Minify (`-m`): Compress output.
|
|
364
364
|
- Watch (`-w`): Watch for source file changes.
|
package/dist/bin/cli.js
CHANGED
|
@@ -642,7 +642,7 @@ function lint$1(pkg) {
|
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
|
|
645
|
-
var version = "6.
|
|
645
|
+
var version = "6.2.0";
|
|
646
646
|
|
|
647
647
|
async function writeDefaultTsconfig(tsConfigPath) {
|
|
648
648
|
await fs.promises.writeFile(tsConfigPath, JSON.stringify(DEFAULT_TS_CONFIG, null, 2), 'utf-8');
|
package/dist/index.js
CHANGED
|
@@ -1068,9 +1068,6 @@ async function writeDefaultTsconfig(tsConfigPath) {
|
|
|
1068
1068
|
/**
|
|
1069
1069
|
* @return {Record<string, string>} env { 'process.env.<key>': '<value>' }
|
|
1070
1070
|
*/ function getDefinedInlineVariables(envs, parsedExportCondition) {
|
|
1071
|
-
if (!envs.includes('NODE_ENV')) {
|
|
1072
|
-
envs.push('NODE_ENV');
|
|
1073
|
-
}
|
|
1074
1071
|
const envVars = envs.reduce((acc, key)=>{
|
|
1075
1072
|
const value = process.env[key];
|
|
1076
1073
|
if (typeof value !== 'undefined') {
|