Socket
Socket
Sign inDemoInstall

bunchee

Package Overview
Dependencies
Maintainers
1
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bunchee - npm Package Compare versions

Comparing version 1.7.1 to 1.7.2

10

dist/cli.js

@@ -76,3 +76,3 @@ #!/usr/bin/env node

var version = "1.7.1";
var version = "1.7.2";

@@ -89,7 +89,9 @@ 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 --target <target> build environment, use \"node\" for nodejs runtime\n --no-sourcemap disable sourcemap generation, sourcemap generation is enabled by default\n --cwd <cwd> specify current working directory\n -h, --help output usage information\n";

return tslib.__awaiter(this, void 0, void 0, function () {
var source, format, file, watch, minify, cwd, sourcemap, target, outputConfig, entry, err, bundle;
var source, format, watch, minify, sourcemap, target, cwd, file, outputConfig, entry, err, bundle;
return tslib.__generator(this, function (_a) {
switch (_a.label) {
case 0:
source = args.source, format = args.format, file = args.file, watch = args.watch, minify = args.minify, cwd = args.cwd, sourcemap = args.sourcemap, target = args.target;
source = args.source, format = args.format, watch = args.watch, minify = args.minify, sourcemap = args.sourcemap, target = args.target;
cwd = args.cwd || process.cwd();
file = args.file ? path__default['default'].resolve(cwd, args.file) : args.file;
outputConfig = {

@@ -110,3 +112,3 @@ file: file,

}
entry = path__default['default'].resolve(cwd || process.cwd(), source);
entry = path__default['default'].resolve(cwd, source);
if (!fs__default['default'].existsSync(entry) || !fs__default['default'].statSync(entry).isFile()) {

@@ -113,0 +115,0 @@ err = new Error("Entry file is not existed");

12

dist/index.js

@@ -12,3 +12,2 @@ Object.defineProperty(exports, '__esModule', { value: true });

var nodeResolve = require('@rollup/plugin-node-resolve');
var typescript = require('@rollup/plugin-typescript');
var rollupPluginTerser = require('rollup-plugin-terser');

@@ -26,3 +25,2 @@ require('arg');

var nodeResolve__default = /*#__PURE__*/_interopDefaultLegacy(nodeResolve);
var typescript__default = /*#__PURE__*/_interopDefaultLegacy(typescript);

@@ -89,2 +87,3 @@ var rootDir = process.cwd();

];
var hasLoggedTsWarning = false;
function resolveTypescript() {

@@ -98,3 +97,6 @@ var ts;

catch (_) {
logger.warn("Could not load TypeScript compiler. Try `yarn add --dev typescript`");
if (!hasLoggedTsWarning) {
hasLoggedTsWarning = true;
logger.warn("Could not load TypeScript compiler. Try `yarn add --dev typescript`");
}
}

@@ -125,6 +127,6 @@ return ts;

shebang__default['default'](),
useTypescript && typescript__default['default'](tslib.__assign({ tsconfig: (function () {
useTypescript && require("@rollup/plugin-typescript")(tslib.__assign({ tsconfig: (function () {
var tsconfig = path.resolve(cwd, "tsconfig.json");
return fs.existsSync(tsconfig) ? tsconfig : undefined;
})(), typescript: resolveTypescript(), jsx: "react", module: "ES6", target: "ES5", sourceMap: options.sourcemap, declaration: !!typings }, (!!typings && {
})(), typescript: resolveTypescript(), jsx: "react", module: "ES6", target: "ES5", noEmitOnError: true, sourceMap: options.sourcemap, declaration: !!typings }, (!!typings && {
declarationDir: path.dirname(path.resolve(cwd, typings)),

@@ -131,0 +133,0 @@ }))),

{
"name": "bunchee",
"version": "1.7.1",
"version": "1.7.2",
"description": "zero config bundler for js/ts/jsx libraries",

@@ -5,0 +5,0 @@ "bin": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc