Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tsup

Package Overview
Dependencies
Maintainers
1
Versions
200
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 5.5.0 to 5.6.0

dist/chunk-ZLCU34XB.js

4

dist/cli-default.js
#!/usr/bin/env node
"use strict";
var _chunkLWOBJZJTjs = require('./chunk-LWOBJZJT.js');
var _chunkZLCU34XBjs = require('./chunk-ZLCU34XB.js');

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

_chunkS7QNHPEQjs.init_cjs_shims.call(void 0, );
_chunkLWOBJZJTjs.main.call(void 0, ).catch(_chunkOTPJHKCDjs.handleError);
_chunkZLCU34XBjs.main.call(void 0, ).catch(_chunkOTPJHKCDjs.handleError);

@@ -1,4 +0,4 @@

import { Options } from './index';
import { O as Options } from './options-202237a5';
import 'esbuild';
import 'rollup';
import 'esbuild';

@@ -5,0 +5,0 @@ declare function main(options?: Options): Promise<void>;

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkLWOBJZJTjs = require('./chunk-LWOBJZJT.js');
var _chunkZLCU34XBjs = require('./chunk-ZLCU34XB.js');
require('./chunk-S7QNHPEQ.js');
exports.main = _chunkLWOBJZJTjs.main;
exports.main = _chunkZLCU34XBjs.main;
#!/usr/bin/env node
"use strict";
var _chunkLWOBJZJTjs = require('./chunk-LWOBJZJT.js');
var _chunkZLCU34XBjs = require('./chunk-ZLCU34XB.js');

@@ -14,4 +14,4 @@

_chunkS7QNHPEQjs.init_cjs_shims.call(void 0, );
_chunkLWOBJZJTjs.main.call(void 0, {
_chunkZLCU34XBjs.main.call(void 0, {
skipNodeModulesBundle: true
}).catch(_chunkOTPJHKCDjs.handleError);

@@ -1,3 +0,5 @@

import { InputOption } from 'rollup';
import { BuildOptions, Plugin, BuildResult } from 'esbuild';
import { BuildResult } from 'esbuild';
import { O as Options, F as Format } from './options-202237a5';
export { F as Format, O as Options } from './options-202237a5';
import 'rollup';

@@ -7,87 +9,2 @@ /** Mark some properties as required, leaving others unchanged */

declare type Format = 'cjs' | 'esm' | 'iife';
declare type Options = {
entryPoints?: BuildOptions['entryPoints'];
/**
* Output different formats to differen folder instead of using different extensions
*/
legacyOutput?: boolean;
/**
* Compile target
*
* default to `node12`
*/
target?: string;
minify?: boolean;
minifyWhitespace?: boolean;
minifyIdentifiers?: boolean;
minifySyntax?: boolean;
keepNames?: boolean;
watch?: boolean | string | (string | boolean)[];
ignoreWatch?: string[] | string;
onSuccess?: string;
jsxFactory?: string;
jsxFragment?: string;
outDir?: string;
format?: Format[];
globalName?: string;
env?: {
[k: string]: string;
};
define?: {
[k: string]: string;
};
dts?: boolean | string | {
entry?: InputOption;
/** Resolve external types used in dts files from node_modules */
resolve?: boolean | (string | RegExp)[];
};
sourcemap?: BuildOptions['sourcemap'];
/** Don't bundle these packages */
external?: (string | RegExp)[];
/** Transform the result with `@babel/core` */
babel?: boolean;
/**
* Replace `process.env.NODE_ENV` with `production` or `development`
* `production` when the bundled is minified, `development` otherwise
*/
replaceNodeEnv?: boolean;
/**
* Code splitting
* Default to `true`
* You may want to disable code splitting sometimes: #255
*/
splitting?: boolean;
/**
* Clean output directory before each build
*/
clean?: boolean | string[];
esbuildPlugins?: Plugin[];
/**
* Supress non-error logs (excluding "onSuccess" process output)
*/
silent?: boolean;
/**
* Skip node_modules bundling
*/
skipNodeModulesBundle?: boolean;
/**
* @see https://esbuild.github.io/api/#pure
*/
pure?: string | string[];
/**
* Disable bunlding, default to true
*/
bundle?: boolean;
/**
* This option allows you to automatically replace a global variable with an import from another file.
* @see https://esbuild.github.io/api/#inject
*/
inject?: string[];
/**
* Emit esbuild metafile
* @see https://esbuild.github.io/api/#metafile
*/
metafile?: boolean;
};
declare type NormalizedOptions = MarkRequired<Options, 'entryPoints' | 'format' | 'outDir'>;

@@ -101,2 +18,2 @@ declare const defineConfig: (options: Options) => Options;

export { Format, NormalizedOptions, Options, build, defineConfig, runEsbuild };
export { NormalizedOptions, build, defineConfig, runEsbuild };
{
"name": "tsup",
"version": "5.5.0",
"version": "5.6.0",
"main": "dist/index.js",

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

@@ -40,2 +40,4 @@ # tsup

This will output `dist/index.js` and `dist/cli.js`.
## Documentation

@@ -45,4 +47,8 @@

## Sponsors
[![sponsors](https://sponsors-images.egoist.sh/sponsors.svg)](https://github.com/sponsors/egoist)
## License
MIT &copy; [EGOIST](https://github.com/sponsors/egoist)

Sorry, the diff of this file is too big to display

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