Comparing version 1.5.3 to 1.5.4
@@ -30,2 +30,3 @@ #!/usr/bin/env node | ||
format: format, | ||
cwd: cwd, | ||
watch: !!watch, | ||
@@ -32,0 +33,0 @@ minify: !!minify, |
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var tslib = require('tslib'); | ||
var path = require('path'); | ||
var path__default = _interopDefault(path); | ||
var rollup = require('rollup'); | ||
var fs = require('fs'); | ||
var fs__default = _interopDefault(fs); | ||
var path = require('path'); | ||
var path__default = _interopDefault(path); | ||
var commonjs = _interopDefault(require('rollup-plugin-commonjs')); | ||
@@ -47,3 +47,3 @@ var shebang = _interopDefault(require('rollup-plugin-preserve-shebang')); | ||
if (filed === void 0) { filed = 'main'; } | ||
return pkg[filed] || 'dist/index.js'; | ||
return path.resolve(config.rootDir, pkg[filed] || 'dist/index.js'); | ||
} | ||
@@ -80,3 +80,3 @@ function createInputConfig(entry, pkg, options) { | ||
presets: [ | ||
["babel-preset-o", { nodeVersion: process.env.NODE_VERSION || "4.0.0" }] | ||
["babel-preset-o", { targets: {} }] | ||
], | ||
@@ -197,3 +197,3 @@ }), | ||
var watch = _a.watch, cwd = _a.cwd, options = tslib.__rest(_a, ["watch", "cwd"]); | ||
config.rootDir = cwd || config.rootDir; | ||
config.rootDir = path.resolve(process.cwd(), cwd || ""); | ||
assignDefault(options, "format", "esm"); | ||
@@ -200,0 +200,0 @@ assignDefault(options, "sourcemap", true); |
{ | ||
"name": "bunchee", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"description": "zero config bundler for js/ts/jsx libraries", | ||
@@ -36,5 +36,5 @@ "bin": { | ||
"@rollup/plugin-json": "4.0.2", | ||
"@rollup/plugin-node-resolve": "8.1.0", | ||
"@rollup/plugin-node-resolve": "11.2.1", | ||
"@rollup/plugin-typescript": "8.2.0", | ||
"babel-preset-o": "0.2.1", | ||
"babel-preset-o": "0.4.1", | ||
"commander": "2.20.3", | ||
@@ -41,0 +41,0 @@ "rollup": "1.32.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
24817
5
13
341
+ Added@rollup/plugin-node-resolve@11.2.1(transitive)
+ Added@types/resolve@1.17.1(transitive)
+ Addedbabel-preset-o@0.4.1(transitive)
- Removed@babel/plugin-transform-runtime@7.12.10(transitive)
- Removed@rollup/plugin-node-resolve@8.1.0(transitive)
- Removed@types/resolve@0.0.8(transitive)
- Removedbabel-preset-o@0.2.1(transitive)
- Removeddeep-freeze@0.0.1(transitive)
Updatedbabel-preset-o@0.4.1