Comparing version 5.3.2 to 5.4.0
@@ -473,3 +473,3 @@ #!/usr/bin/env node | ||
var version = "5.3.2"; | ||
var version = "5.4.0"; | ||
@@ -925,2 +925,3 @@ function relativify(path) { | ||
--tsconfig path to tsconfig file, default: tsconfig.json | ||
--dts-bundle bundle type declaration files, default: false | ||
`; | ||
@@ -957,2 +958,3 @@ function help() { | ||
'--tsconfig': String, | ||
'--dts-bundle': Boolean, | ||
'-h': '--help', | ||
@@ -978,2 +980,3 @@ '-v': '--version', | ||
dts: args['--no-dts'] ? false : undefined, | ||
dtsBundle: args['--dts-bundle'], | ||
help: args['--help'], | ||
@@ -993,7 +996,9 @@ version: args['--version'], | ||
var _args_external; | ||
const { source, format, watch, minify, sourcemap, target, runtime, dts, env, clean, tsconfig } = args; | ||
const { source, format, watch, minify, sourcemap, target, runtime, dts, dtsBundle, env, clean, tsconfig } = args; | ||
const cwd = args.cwd || process.cwd(); | ||
const file = args.file ? path__default.default.resolve(cwd, args.file) : undefined; | ||
const bundleConfig = { | ||
dts, | ||
dts: dts !== false && { | ||
respectExternal: dtsBundle ? true : undefined | ||
}, | ||
file, | ||
@@ -1000,0 +1005,0 @@ format, |
@@ -17,3 +17,5 @@ import { JscTarget } from '@swc/types'; | ||
env?: string[]; | ||
dts?: boolean; | ||
dts?: { | ||
respectExternal?: boolean; | ||
} | false; | ||
runtime?: string; | ||
@@ -20,0 +22,0 @@ pkg?: PackageMetadata; |
{ | ||
"name": "bunchee", | ||
"version": "5.3.2", | ||
"version": "5.4.0", | ||
"description": "zero config bundler for js/ts/jsx libraries", | ||
@@ -45,3 +45,3 @@ "bin": "./dist/bin/cli.js", | ||
"@rollup/pluginutils": "^5.1.0", | ||
"@swc/core": "^1.6.1", | ||
"@swc/core": "^1.7.14", | ||
"@swc/helpers": "^0.5.11", | ||
@@ -53,3 +53,3 @@ "arg": "^5.0.2", | ||
"pretty-bytes": "^5.6.0", | ||
"rollup": "^4.19.1", | ||
"rollup": "^4.19.2", | ||
"rollup-plugin-dts": "^6.1.1", | ||
@@ -56,0 +56,0 @@ "rollup-plugin-swc3": "^0.11.1", |
@@ -329,2 +329,3 @@ # bunchee | ||
- TSConfig (`--tsconfig <path>`): Specify the path to the TypeScript configuration file. (default: `tsconfig.json`) | ||
- Bundle Types (`--dts-bundle`): Bundle type declaration files. (default: `false`) | ||
@@ -331,0 +332,0 @@ ```sh |
Sorry, the diff of this file is too big to display
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
139612
2992
481
Updated@swc/core@^1.7.14
Updatedrollup@^4.19.2