bunchee 2.0.2 → 2.0.3

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/cli.js CHANGED
@@ -87,7 +87,7 @@ var logger = {
87
87
  }
88
88
  };
89
89
 
90
- var version = "2.0.2";
90
+ var version = "2.0.3";
91
91
 
92
92
  var helpMessage = '\nUsage: bunchee [options]\n\nOptions:\n -v, --version output the version number\n -w, --watch watch src files changes\n -m, --minify compress output. false by default\n -o, --output <file> specify output filename\n -f, --format <format> specify bundle type: "esm", "cjs", "umd". "esm" by default\n -e, --external <mod> specify an external dependency\n --target <target> js features target: swc target es versions. "es5" by default\n --runtime <runtime> build runtime: "nodejs", "browser". "browser" by default\n --sourcemap enable sourcemap generation, false by default\n --cwd <cwd> specify current working directory\n -h, --help output usage information\n';
93
93
  function help() {
package/dist/lib.js CHANGED
@@ -373,7 +373,7 @@ function createRollupConfig(entry, pkg, cliArgs) {
373
373
  outputConfigs = [
374
374
  createOutputOptions(tslib.__assign(tslib.__assign({}, cliArgs), {
375
375
  file: file,
376
- format: format || cliArgs.format,
376
+ format: cliArgs.format || format,
377
377
  useTypescript: useTypescript
378
378
  }), pkg, {
379
379
  tsCompilerOptions: tsCompilerOptions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunchee",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "zero config bundler for js/ts/jsx libraries",
5
5
  "bin": {
6
6
  "bunchee": "./dist/cli.js"