Socket
Socket
Sign inDemoInstall

tsup

Package Overview
Dependencies
Maintainers
1
Versions
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsup - npm Package Compare versions

Comparing version 3.4.3 to 3.5.0

dist/chunk.3711jNnf.js

2

dist/cli.js

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

default: "es2017"
}).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("--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", {

@@ -30,2 +30,4 @@ import { BuildResult } from 'esbuild';

external?: string[];
/** Transform the result with `@babel/core` */
babel?: boolean;
};

@@ -32,0 +34,0 @@ declare const makeLabel: (input: string, type: 'info' | 'success' | 'error') => string;

@@ -5,3 +5,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkUsjVhjxjs = require('./chunk.UsjVhj-x.js');
var _chunk3711jNnfjs = require('./chunk.3711jNnf.js');
require('./chunk.DEUMEOWj.js');

@@ -14,2 +14,2 @@

exports.build = _chunkUsjVhjxjs.build; exports.makeLabel = _chunkUsjVhjxjs.makeLabel; exports.runEsbuild = _chunkUsjVhjxjs.runEsbuild;
exports.build = _chunk3711jNnfjs.build; exports.makeLabel = _chunk3711jNnfjs.makeLabel; exports.runEsbuild = _chunk3711jNnfjs.runEsbuild;

@@ -10,8 +10,8 @@ "use strict";

var _chunkUsjVhjxjs = require('./chunk.UsjVhj-x.js');
var _chunk3711jNnfjs = require('./chunk.3711jNnf.js');
require('./chunk.DEUMEOWj.js');
// node_modules/rollup-plugin-hashbang/node_modules/magic-string/dist/magic-string.es.js
var require_magic_string_es = _chunkUsjVhjxjs.__commonJS.call(void 0, (exports) => {
_chunkUsjVhjxjs.__export.call(void 0, exports, {
var require_magic_string_es = _chunk3711jNnfjs.__commonJS.call(void 0, (exports) => {
_chunk3711jNnfjs.__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 = _chunkUsjVhjxjs.__commonJS.call(void 0, (exports, module) => {
var require_dist = _chunk3711jNnfjs.__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 = _chunkUsjVhjxjs.__toModule.call(void 0, _chunkUsjVhjxjs.require_picomatch.call(void 0, ));
const picomatch = _chunk3711jNnfjs.__toModule.call(void 0, _chunk3711jNnfjs.require_picomatch.call(void 0, ));
var _path = require('path');

@@ -1395,3 +1395,3 @@ function isArray(arg) {

// src/rollup.ts
const rollup_plugin_hashbang = _chunkUsjVhjxjs.__toModule.call(void 0, require_dist());
const rollup_plugin_hashbang = _chunk3711jNnfjs.__toModule.call(void 0, require_dist());
var _worker_threads = require('worker_threads');

@@ -1430,8 +1430,8 @@ const getRollupConfig = async (options) => {

};
console.log(`${_chunkUsjVhjxjs.makeLabel.call(void 0, "dts", "info")} Build start`);
console.log(`${_chunk3711jNnfjs.makeLabel.call(void 0, "dts", "info")} Build start`);
const bundle = await rollup2(options.inputConfig);
await bundle.write(options.outputConfig);
console.log(`${_chunkUsjVhjxjs.makeLabel.call(void 0, "dts", "success")} Build success in ${getDuration()}`);
console.log(`${_chunk3711jNnfjs.makeLabel.call(void 0, "dts", "success")} Build success in ${getDuration()}`);
} catch (error) {
console.log(`${_chunkUsjVhjxjs.makeLabel.call(void 0, "dts", "error")} Build error`);
console.log(`${_chunk3711jNnfjs.makeLabel.call(void 0, "dts", "error")} Build error`);
_chunkW5E6DS1Sjs.handlError.call(void 0, error);

@@ -1452,7 +1452,7 @@ }

start = Date.now();
console.log(`${_chunkUsjVhjxjs.makeLabel.call(void 0, "dts", "info")} Build start`);
console.log(`${_chunk3711jNnfjs.makeLabel.call(void 0, "dts", "info")} Build start`);
} else if (event.code === "END") {
console.log(`${_chunkUsjVhjxjs.makeLabel.call(void 0, "dts", "success")} Build success in ${getDuration()}`);
console.log(`${_chunk3711jNnfjs.makeLabel.call(void 0, "dts", "success")} Build success in ${getDuration()}`);
} else if (event.code === "ERROR") {
console.log(`${_chunkUsjVhjxjs.makeLabel.call(void 0, "dts", "error")} Build error`);
console.log(`${_chunk3711jNnfjs.makeLabel.call(void 0, "dts", "error")} Build error`);
_chunkW5E6DS1Sjs.handlError.call(void 0, event.error);

@@ -1459,0 +1459,0 @@ }

{
"name": "tsup",
"version": "3.4.3",
"version": "3.5.0",
"main": "dist/index.js",

@@ -26,2 +26,3 @@ "bin": "dist/cli.js",

"joycon": "^2.2.5",
"resolve-from": "^5.0.0",
"rollup": "^2.23.1",

@@ -32,2 +33,3 @@ "rollup-plugin-dts": "^1.4.10",

"devDependencies": {
"@babel/core": "^7.11.1",
"@rollup/plugin-json": "^4.1.0",

@@ -34,0 +36,0 @@ "@types/buble": "^0.19.2",

# tsup
[![npm version](https://badgen.net/npm/v/tsup)](https://npm.im/tsup) [![npm downloads](https://badgen.net/npm/dm/tsup)](https://npm.im/tsup)
Bundle your TypeScript library with no config, powered by [esbuild](https://github.com/evanw/esbuild).

@@ -39,2 +41,4 @@

This will output `dist/index.js` and `dist/cli.js`.
Code splitting is enabled by default and supported in `cjs` and `esm` format.

@@ -54,2 +58,4 @@

If you set multiple entry files, each entry will get a corresponding `.d.ts` file.
### Bundle formats

@@ -56,0 +62,0 @@

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