Comparing version 2.0.3 to 2.0.4
@@ -90,3 +90,3 @@ #!/usr/bin/env node | ||
var version = "2.0.3"; | ||
var version = "2.0.4"; | ||
@@ -93,0 +93,0 @@ 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'; |
@@ -102,3 +102,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
var _c; | ||
var tsCompilerOptions = _a.tsCompilerOptions; | ||
var tsconfigPath = _a.tsconfigPath, tsCompilerOptions = _a.tsCompilerOptions; | ||
var externals = [ | ||
@@ -166,3 +166,3 @@ pkg.peerDependencies, | ||
exclude: "node_modules", | ||
tsconfig: "tsconfig.json", | ||
tsconfig: tsconfigPath, | ||
jsc: tslib.__assign({ | ||
@@ -174,11 +174,3 @@ target: jscTarget, | ||
syntax: useTypescript ? "typescript" : "ecmascript" | ||
}, _b[useTypescript ? "tsx" : "jsx"] = true, _b.privateMethod = true, _b.classPrivateProperty = true, _b.exportDefaultFrom = true, _b), | ||
transform: { | ||
react: { | ||
runtime: [ | ||
"react-jsx", | ||
"react-jsx-dev" | ||
].includes(tsCompilerOptions === null || tsCompilerOptions === void 0 ? void 0 : tsCompilerOptions.jsx) ? "automatic" : "classic" | ||
} | ||
} | ||
}, _b[useTypescript ? "tsx" : "jsx"] = true, _b.privateMethod = true, _b.classPrivateProperty = true, _b.exportDefaultFrom = true, _b) | ||
}, minify && { | ||
@@ -353,5 +345,6 @@ minify: tslib.__assign(tslib.__assign({}, minifyOptions), { | ||
var tsCompilerOptions = {}; | ||
var tsconfigPath; | ||
if (useTypescript) { | ||
var ts = resolveTypescript(); | ||
var tsconfigPath = path.resolve(config.rootDir, "tsconfig.json"); | ||
tsconfigPath = path.resolve(config.rootDir, "tsconfig.json"); | ||
if (fs__default["default"].existsSync(tsconfigPath)) { | ||
@@ -362,5 +355,7 @@ var tsconfigJSON = ts.readConfigFile(tsconfigPath, ts.sys.readFile).config; | ||
} | ||
var inputOptions = createInputConfig(entry, pkg, options, { | ||
var typescriptOptions = { | ||
tsconfigPath: tsconfigPath, | ||
tsCompilerOptions: tsCompilerOptions | ||
}); | ||
}; | ||
var inputOptions = createInputConfig(entry, pkg, options, typescriptOptions); | ||
var outputExports = options.exportCondition ? getSubExportDist(pkg, options.exportCondition.export) : getExportDist(pkg); | ||
@@ -372,5 +367,3 @@ var outputConfigs = outputExports.map(function(exportDist) { | ||
useTypescript: useTypescript | ||
}), pkg, { | ||
tsCompilerOptions: tsCompilerOptions | ||
}); | ||
}), pkg, typescriptOptions); | ||
}); | ||
@@ -384,5 +377,3 @@ if (file) { | ||
useTypescript: useTypescript | ||
}), pkg, { | ||
tsCompilerOptions: tsCompilerOptions | ||
}), | ||
}), pkg, typescriptOptions), | ||
]; | ||
@@ -389,0 +380,0 @@ } |
{ | ||
"name": "bunchee", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "zero config bundler for js/ts/jsx libraries", | ||
@@ -35,2 +35,6 @@ "bin": { | ||
"author": "huozhi (github.com/huozhi)", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/huozhi/bunchee.git" | ||
}, | ||
"license": "MIT", | ||
@@ -46,3 +50,3 @@ "dependencies": { | ||
"rollup-plugin-preserve-shebang": "1.0.1", | ||
"rollup-plugin-swc3": "0.4.1", | ||
"rollup-plugin-swc3": "0.5.0", | ||
"tslib": "2.4.0" | ||
@@ -49,0 +53,0 @@ }, |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
3
34508
805
+ Addedrollup-plugin-swc3@0.5.0(transitive)
- Removedbrace-expansion@2.0.1(transitive)
- Removedglob@8.1.0(transitive)
- Removedlunr@2.3.9(transitive)
- Removedmarked@4.3.0(transitive)
- Removedminimatch@5.1.6(transitive)
- Removedrollup-plugin-swc3@0.4.1(transitive)
- Removedshiki@0.10.1(transitive)
- Removedtypedoc@0.22.18(transitive)
- Removedtypescript@4.7.4(transitive)
- Removedvscode-oniguruma@1.7.0(transitive)
- Removedvscode-textmate@5.2.0(transitive)
Updatedrollup-plugin-swc3@0.5.0