Socket
Socket
Sign inDemoInstall

tsup

Package Overview
Dependencies
Maintainers
2
Versions
197
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 7.2.0 to 8.0.0

dist/chunk-4NKJYYK3.js

10

dist/cli-default.js
#!/usr/bin/env node
"use strict";
var _chunkE33JV7SQjs = require('./chunk-E33JV7SQ.js');
require('./chunk-NSPLMNA4.js');
var _chunk4NKJYYK3js = require('./chunk-4NKJYYK3.js');
require('./chunk-EPAEWGCP.js');
var _chunkGEVDEBBWjs = require('./chunk-GEVDEBBW.js');
require('./chunk-B7UJSB4N.js');
var _chunkUIX4URMVjs = require('./chunk-UIX4URMV.js');
require('./chunk-GQ77QZBO.js');
// src/cli-default.ts
_chunkE33JV7SQjs.main.call(void 0, ).catch(_chunkGEVDEBBWjs.handleError);
_chunk4NKJYYK3js.main.call(void 0, ).catch(_chunkUIX4URMVjs.handleError);
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkE33JV7SQjs = require('./chunk-E33JV7SQ.js');
require('./chunk-NSPLMNA4.js');
require('./chunk-B7UJSB4N.js');
var _chunk4NKJYYK3js = require('./chunk-4NKJYYK3.js');
require('./chunk-EPAEWGCP.js');
require('./chunk-GQ77QZBO.js');
exports.main = _chunkE33JV7SQjs.main;
exports.main = _chunk4NKJYYK3js.main;
#!/usr/bin/env node
"use strict";
var _chunkE33JV7SQjs = require('./chunk-E33JV7SQ.js');
require('./chunk-NSPLMNA4.js');
var _chunk4NKJYYK3js = require('./chunk-4NKJYYK3.js');
require('./chunk-EPAEWGCP.js');
var _chunkGEVDEBBWjs = require('./chunk-GEVDEBBW.js');
require('./chunk-B7UJSB4N.js');
var _chunkUIX4URMVjs = require('./chunk-UIX4URMV.js');
require('./chunk-GQ77QZBO.js');
// src/cli-node.ts
_chunkE33JV7SQjs.main.call(void 0, {
_chunk4NKJYYK3js.main.call(void 0, {
skipNodeModulesBundle: true
}).catch(_chunkGEVDEBBWjs.handleError);
}).catch(_chunkUIX4URMVjs.handleError);

@@ -5,57 +5,2 @@ import { BuildOptions, Metafile, Plugin as Plugin$1, Loader } from 'esbuild';

/** Mark some properties as required, leaving others unchanged */
declare type MarkRequired<T, RK extends keyof T> = Exclude<T, RK> & Required<Pick<T, RK>>;
type Logger = ReturnType<typeof createLogger>;
declare const createLogger: (name?: string) => {
setName(_name: string): void;
success(label: string, ...args: any[]): void;
info(label: string, ...args: any[]): void;
error(label: string, ...args: any[]): void;
warn(label: string, ...args: any[]): void;
log(label: string, type: 'info' | 'success' | 'error' | 'warn', ...data: unknown[]): void;
};
type ChunkInfo = {
type: 'chunk';
code: string;
map?: string | RawSourceMap | null;
path: string;
/**
* Sets the file mode
*/
mode?: number;
entryPoint?: string;
exports?: string[];
imports?: Metafile['outputs'][string]['imports'];
};
type RenderChunk = (this: PluginContext, code: string, chunkInfo: ChunkInfo) => MaybePromise<{
code: string;
map?: object | string | SourceMap$1 | null;
} | undefined | null | void>;
type BuildStart = (this: PluginContext) => MaybePromise<void>;
type BuildEnd = (this: PluginContext, ctx: {
writtenFiles: WrittenFile[];
}) => MaybePromise<void>;
type ModifyEsbuildOptions = (this: PluginContext, options: BuildOptions) => void;
type Plugin = {
name: string;
esbuildOptions?: ModifyEsbuildOptions;
buildStart?: BuildStart;
renderChunk?: RenderChunk;
buildEnd?: BuildEnd;
};
type PluginContext = {
format: Format;
splitting?: boolean;
options: NormalizedOptions;
logger: Logger;
};
type WrittenFile = {
readonly name: string;
readonly size: number;
};
type TreeshakingStrategy = boolean | TreeshakingOptions | TreeshakingPreset;
declare type GeneratedColumn = number;

@@ -130,2 +75,3 @@ declare type SourcesIndex = number;

type ECMA = 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020;

@@ -330,2 +276,57 @@

/** Mark some properties as required, leaving others unchanged */
declare type MarkRequired<T, RK extends keyof T> = Exclude<T, RK> & Required<Pick<T, RK>>;
type Logger = ReturnType<typeof createLogger>;
declare const createLogger: (name?: string) => {
setName(_name: string): void;
success(label: string, ...args: any[]): void;
info(label: string, ...args: any[]): void;
error(label: string, ...args: any[]): void;
warn(label: string, ...args: any[]): void;
log(label: string, type: 'info' | 'success' | 'error' | 'warn', ...data: unknown[]): void;
};
type ChunkInfo = {
type: 'chunk';
code: string;
map?: string | RawSourceMap | null;
path: string;
/**
* Sets the file mode
*/
mode?: number;
entryPoint?: string;
exports?: string[];
imports?: Metafile['outputs'][string]['imports'];
};
type RenderChunk = (this: PluginContext, code: string, chunkInfo: ChunkInfo) => MaybePromise<{
code: string;
map?: object | string | SourceMap$1 | null;
} | undefined | null | void>;
type BuildStart = (this: PluginContext) => MaybePromise<void>;
type BuildEnd = (this: PluginContext, ctx: {
writtenFiles: WrittenFile[];
}) => MaybePromise<void>;
type ModifyEsbuildOptions = (this: PluginContext, options: BuildOptions) => void;
type Plugin = {
name: string;
esbuildOptions?: ModifyEsbuildOptions;
buildStart?: BuildStart;
renderChunk?: RenderChunk;
buildEnd?: BuildEnd;
};
type PluginContext = {
format: Format;
splitting?: boolean;
options: NormalizedOptions;
logger: Logger;
};
type WrittenFile = {
readonly name: string;
readonly size: number;
};
type TreeshakingStrategy = boolean | TreeshakingOptions | TreeshakingPreset;
type KILL_SIGNAL = 'SIGKILL' | 'SIGTERM';

@@ -360,2 +361,10 @@ type Format = 'cjs' | 'esm' | 'iife';

};
type ExperimentalDtsConfig = {
entry?: InputOption;
/**
* Overrides `compilerOptions`
* This option takes higher priority than `compilerOptions` in tsconfig.json
*/
compilerOptions?: any;
};
type BannerOrFooter = {

@@ -419,2 +428,3 @@ js?: string;

dts?: boolean | string | DtsConfig;
experimentalDts?: boolean | string | ExperimentalDtsConfig;
sourcemap?: boolean | 'inline';

@@ -432,4 +442,5 @@ /** Always bundle modules matching given patterns */

* Code splitting
* Default to `true`
* You may want to disable code splitting sometimes: [`#255`](https://github.com/egoist/tsup/issues/255)
* Default to `true` for ESM, `false` for CJS.
*
* You can set it to `true` explicitly, and may want to disable code splitting sometimes: [`#255`](https://github.com/egoist/tsup/issues/255)
*/

@@ -527,4 +538,11 @@ splitting?: boolean;

};
type NormalizedOptions = Omit<MarkRequired<Options, 'entry' | 'outDir'>, 'dts' | 'format'> & {
interface NormalizedExperimentalDtsConfig {
entry: {
[entryAlias: string]: string;
};
compilerOptions?: any;
}
type NormalizedOptions = Omit<MarkRequired<Options, 'entry' | 'outDir'>, 'dts' | 'experimentalDts' | 'format'> & {
dts?: DtsConfig;
experimentalDts?: NormalizedExperimentalDtsConfig;
tsconfigResolvePaths: Record<string, string[]>;

@@ -531,0 +549,0 @@ tsconfigDecoratorMetadata?: boolean;

{
"name": "tsup",
"version": "7.2.0",
"version": "8.0.0",
"description": "Bundle your TypeScript library with no config, powered by esbuild",

@@ -35,3 +35,3 @@ "main": "dist/index.js",

"debug": "^4.3.1",
"esbuild": "^0.18.2",
"esbuild": "^0.19.2",
"execa": "^5.0.0",

@@ -42,3 +42,3 @@ "globby": "^11.0.3",

"resolve-from": "^5.0.0",
"rollup": "^3.2.5",
"rollup": "^4.0.2",
"source-map": "0.8.0-beta.0",

@@ -49,3 +49,4 @@ "sucrase": "^3.20.3",

"devDependencies": {
"@rollup/plugin-json": "5.0.1",
"@microsoft/api-extractor": "^7.38.3",
"@rollup/plugin-json": "6.0.1",
"@swc/core": "1.2.218",

@@ -65,4 +66,3 @@ "@types/debug": "4.1.7",

"resolve": "1.20.0",
"rollup-plugin-dts": "5.3.0",
"rollup-plugin-hashbang": "3.0.0",
"rollup-plugin-dts": "6.1.0",
"sass": "1.62.1",

@@ -82,4 +82,5 @@ "strip-json-comments": "4.0.0",

"@swc/core": "^1",
"@microsoft/api-extractor": "^7.36.0",
"postcss": "^8.4.12",
"typescript": ">=4.1.0"
"typescript": ">=4.5.0"
},

@@ -95,8 +96,11 @@ "peerDependenciesMeta": {

"optional": true
},
"@microsoft/api-extractor": {
"optional": true
}
},
"engines": {
"node": ">=16.14"
"node": ">=18"
},
"packageManager": "pnpm@8.6.0"
"packageManager": "pnpm@8.10.5"
}

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

yarn add tsup --dev
# Or pnpm
pnpm add tsup -D
```

@@ -21,0 +23,0 @@

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

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