Comparing version 3.5.0 to 3.6.0
@@ -27,3 +27,3 @@ #!/usr/bin/env node | ||
default: "es2017" | ||
}).option("--babel", "Transform the result with Babel").option("--legacy-output", "Output different formats to different folder instead of using different extensions").option("--dts", "Generate declaration file").option("--watch", "Watch mode").option("--define.* <value>", "Define compile-time constants").option("--external <name>", "Mark specific packages as external").option("--global-name <name>", "Global variable name for iife format").option("--jsxFactory <jsxFactory>", "Name of JSX factory function", { | ||
}).option("--babel", "Transform the result with Babel").option("--legacy-output", "Output different formats to different folder instead of using different extensions").option("--dts", "Generate declaration file").option("--watch", "Watch mode").option("--env.* <value>", "Define compile-time env variables").option("--define.* <value>", "Define compile-time constants").option("--external <name>", "Mark specific packages as external").option("--global-name <name>", "Global variable name for iife format").option("--jsxFactory <jsxFactory>", "Name of JSX factory function", { | ||
default: "React.createElement" | ||
@@ -30,0 +30,0 @@ }).option("--jsxFragment <jsxFragment>", "Name of JSX fragment function", { |
@@ -24,2 +24,5 @@ import { BuildResult } from 'esbuild'; | ||
globalName?: string; | ||
env?: { | ||
[k: string]: string; | ||
}; | ||
define?: { | ||
@@ -26,0 +29,0 @@ [k: string]: string; |
@@ -5,3 +5,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunk3711jNnfjs = require('./chunk.3711jNnf.js'); | ||
var _chunkOFrmEpd6js = require('./chunk.OFrmEpd6.js'); | ||
require('./chunk.DEUMEOWj.js'); | ||
@@ -14,2 +14,2 @@ | ||
exports.build = _chunk3711jNnfjs.build; exports.makeLabel = _chunk3711jNnfjs.makeLabel; exports.runEsbuild = _chunk3711jNnfjs.runEsbuild; | ||
exports.build = _chunkOFrmEpd6js.build; exports.makeLabel = _chunkOFrmEpd6js.makeLabel; exports.runEsbuild = _chunkOFrmEpd6js.runEsbuild; |
@@ -10,8 +10,8 @@ "use strict"; | ||
var _chunk3711jNnfjs = require('./chunk.3711jNnf.js'); | ||
var _chunkOFrmEpd6js = require('./chunk.OFrmEpd6.js'); | ||
require('./chunk.DEUMEOWj.js'); | ||
// node_modules/rollup-plugin-hashbang/node_modules/magic-string/dist/magic-string.es.js | ||
var require_magic_string_es = _chunk3711jNnfjs.__commonJS.call(void 0, (exports) => { | ||
_chunk3711jNnfjs.__export.call(void 0, exports, { | ||
var require_magic_string_es = _chunkOFrmEpd6js.__commonJS.call(void 0, (exports) => { | ||
_chunkOFrmEpd6js.__export.call(void 0, exports, { | ||
Bundle: () => Bundle2, | ||
@@ -1103,3 +1103,3 @@ default: () => magic_string_es_default2 | ||
// node_modules/rollup-plugin-hashbang/dist/index.js | ||
var require_dist = _chunk3711jNnfjs.__commonJS.call(void 0, (exports, module) => { | ||
var require_dist = _chunkOFrmEpd6js.__commonJS.call(void 0, (exports, module) => { | ||
"use strict"; | ||
@@ -1224,3 +1224,3 @@ function _interopDefault(ex) { | ||
// node_modules/@rollup/pluginutils/dist/es/index.js | ||
const picomatch = _chunk3711jNnfjs.__toModule.call(void 0, _chunk3711jNnfjs.require_picomatch.call(void 0, )); | ||
const picomatch = _chunkOFrmEpd6js.__toModule.call(void 0, _chunkOFrmEpd6js.require_picomatch.call(void 0, )); | ||
var _path = require('path'); | ||
@@ -1395,3 +1395,3 @@ function isArray(arg) { | ||
// src/rollup.ts | ||
const rollup_plugin_hashbang = _chunk3711jNnfjs.__toModule.call(void 0, require_dist()); | ||
const rollup_plugin_hashbang = _chunkOFrmEpd6js.__toModule.call(void 0, require_dist()); | ||
var _worker_threads = require('worker_threads'); | ||
@@ -1430,8 +1430,8 @@ const getRollupConfig = async (options) => { | ||
}; | ||
console.log(`${_chunk3711jNnfjs.makeLabel.call(void 0, "dts", "info")} Build start`); | ||
console.log(`${_chunkOFrmEpd6js.makeLabel.call(void 0, "dts", "info")} Build start`); | ||
const bundle = await rollup2(options.inputConfig); | ||
await bundle.write(options.outputConfig); | ||
console.log(`${_chunk3711jNnfjs.makeLabel.call(void 0, "dts", "success")} Build success in ${getDuration()}`); | ||
console.log(`${_chunkOFrmEpd6js.makeLabel.call(void 0, "dts", "success")} Build success in ${getDuration()}`); | ||
} catch (error) { | ||
console.log(`${_chunk3711jNnfjs.makeLabel.call(void 0, "dts", "error")} Build error`); | ||
console.log(`${_chunkOFrmEpd6js.makeLabel.call(void 0, "dts", "error")} Build error`); | ||
_chunkW5E6DS1Sjs.handlError.call(void 0, error); | ||
@@ -1452,7 +1452,7 @@ } | ||
start = Date.now(); | ||
console.log(`${_chunk3711jNnfjs.makeLabel.call(void 0, "dts", "info")} Build start`); | ||
console.log(`${_chunkOFrmEpd6js.makeLabel.call(void 0, "dts", "info")} Build start`); | ||
} else if (event.code === "END") { | ||
console.log(`${_chunk3711jNnfjs.makeLabel.call(void 0, "dts", "success")} Build success in ${getDuration()}`); | ||
console.log(`${_chunkOFrmEpd6js.makeLabel.call(void 0, "dts", "success")} Build success in ${getDuration()}`); | ||
} else if (event.code === "ERROR") { | ||
console.log(`${_chunk3711jNnfjs.makeLabel.call(void 0, "dts", "error")} Build error`); | ||
console.log(`${_chunkOFrmEpd6js.makeLabel.call(void 0, "dts", "error")} Build error`); | ||
_chunkW5E6DS1Sjs.handlError.call(void 0, event.error); | ||
@@ -1459,0 +1459,0 @@ } |
{ | ||
"name": "tsup", | ||
"version": "3.5.0", | ||
"version": "3.6.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "bin": "dist/cli.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
687339
20065