Comparing version 6.6.3 to 7.2.0
#!/usr/bin/env node | ||
"use strict"; | ||
var _chunkLK5S4QIZjs = require('./chunk-LK5S4QIZ.js'); | ||
require('./chunk-2RD5DPBZ.js'); | ||
var _chunkE33JV7SQjs = require('./chunk-E33JV7SQ.js'); | ||
require('./chunk-NSPLMNA4.js'); | ||
var _chunkQAQ2Z76Ijs = require('./chunk-QAQ2Z76I.js'); | ||
require('./chunk-OSC67C6M.js'); | ||
var _chunkGEVDEBBWjs = require('./chunk-GEVDEBBW.js'); | ||
require('./chunk-B7UJSB4N.js'); | ||
// src/cli-default.ts | ||
_chunkLK5S4QIZjs.main.call(void 0, ).catch(_chunkQAQ2Z76Ijs.handleError); | ||
_chunkE33JV7SQjs.main.call(void 0, ).catch(_chunkGEVDEBBWjs.handleError); |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkLK5S4QIZjs = require('./chunk-LK5S4QIZ.js'); | ||
require('./chunk-2RD5DPBZ.js'); | ||
require('./chunk-OSC67C6M.js'); | ||
var _chunkE33JV7SQjs = require('./chunk-E33JV7SQ.js'); | ||
require('./chunk-NSPLMNA4.js'); | ||
require('./chunk-B7UJSB4N.js'); | ||
exports.main = _chunkLK5S4QIZjs.main; | ||
exports.main = _chunkE33JV7SQjs.main; |
#!/usr/bin/env node | ||
"use strict"; | ||
var _chunkLK5S4QIZjs = require('./chunk-LK5S4QIZ.js'); | ||
require('./chunk-2RD5DPBZ.js'); | ||
var _chunkE33JV7SQjs = require('./chunk-E33JV7SQ.js'); | ||
require('./chunk-NSPLMNA4.js'); | ||
var _chunkQAQ2Z76Ijs = require('./chunk-QAQ2Z76I.js'); | ||
require('./chunk-OSC67C6M.js'); | ||
var _chunkGEVDEBBWjs = require('./chunk-GEVDEBBW.js'); | ||
require('./chunk-B7UJSB4N.js'); | ||
// src/cli-node.ts | ||
_chunkLK5S4QIZjs.main.call(void 0, { | ||
_chunkE33JV7SQjs.main.call(void 0, { | ||
skipNodeModulesBundle: true | ||
}).catch(_chunkQAQ2Z76Ijs.handleError); | ||
}).catch(_chunkGEVDEBBWjs.handleError); |
@@ -5,4 +5,2 @@ import { BuildOptions, Metafile, Plugin as Plugin$1, Loader } from 'esbuild'; | ||
type MaybePromise<T> = T | Promise<T>; | ||
/** Mark some properties as required, leaving others unchanged */ | ||
@@ -331,2 +329,3 @@ declare type MarkRequired<T, RK extends keyof T> = Exclude<T, RK> & Required<Pick<T, RK>>; | ||
type KILL_SIGNAL = 'SIGKILL' | 'SIGTERM'; | ||
type Format = 'cjs' | 'esm' | 'iife'; | ||
@@ -341,2 +340,3 @@ type ContextForOutPathGeneration = { | ||
js?: string; | ||
dts?: string; | ||
}; | ||
@@ -393,3 +393,3 @@ type OutExtensionFactory = (ctx: ContextForOutPathGeneration) => OutExtensionObject; | ||
* | ||
* default to `node14` | ||
* default to `node16` | ||
*/ | ||
@@ -410,3 +410,3 @@ target?: Target | Target[]; | ||
outExtension?: OutExtensionFactory; | ||
format?: Format[] | string; | ||
format?: Format[] | Format; | ||
globalName?: string; | ||
@@ -495,3 +495,3 @@ env?: { | ||
*/ | ||
injectStyle?: boolean; | ||
injectStyle?: boolean | ((css: string, fileId: string) => string); | ||
/** | ||
@@ -520,2 +520,8 @@ * Inject cjs and esm shims if needed | ||
publicDir?: string | boolean; | ||
killSignal?: KILL_SIGNAL; | ||
/** | ||
* Interop default within `module.exports` in cjs | ||
* @default false | ||
*/ | ||
cjsInterop?: boolean; | ||
}; | ||
@@ -529,2 +535,4 @@ type NormalizedOptions = Omit<MarkRequired<Options, 'entry' | 'outDir'>, 'dts' | 'format'> & { | ||
type MaybePromise<T> = T | Promise<T>; | ||
declare const defineConfig: (options: Options | Options[] | ((overrideOptions: Options) => MaybePromise<Options | Options[]>)) => Options | Options[] | ((overrideOptions: Options) => MaybePromise<Options | Options[]>); | ||
@@ -531,0 +539,0 @@ declare function build(_options: Options): Promise<void>; |
{ | ||
"name": "tsup", | ||
"version": "6.6.3", | ||
"version": "7.2.0", | ||
"description": "Bundle your TypeScript library with no config, powered by esbuild", | ||
@@ -35,7 +35,7 @@ "main": "dist/index.js", | ||
"debug": "^4.3.1", | ||
"esbuild": "^0.17.6", | ||
"esbuild": "^0.18.2", | ||
"execa": "^5.0.0", | ||
"globby": "^11.0.3", | ||
"joycon": "^3.0.1", | ||
"postcss-load-config": "^3.0.1", | ||
"postcss-load-config": "^4.0.1", | ||
"resolve-from": "^5.0.0", | ||
@@ -63,11 +63,13 @@ "rollup": "^3.2.5", | ||
"resolve": "1.20.0", | ||
"rollup-plugin-dts": "5.2.0", | ||
"rollup-plugin-hashbang": "2.2.2", | ||
"rollup-plugin-dts": "5.3.0", | ||
"rollup-plugin-hashbang": "3.0.0", | ||
"sass": "1.62.1", | ||
"strip-json-comments": "4.0.0", | ||
"svelte": "3.46.4", | ||
"svelte-preprocess": "5.0.3", | ||
"terser": "^5.16.0", | ||
"ts-essentials": "9.1.2", | ||
"tsconfig-paths": "3.12.0", | ||
"tsup": "6.6.1", | ||
"typescript": "4.9.5", | ||
"tsup": "7.1.0", | ||
"typescript": "5.0.2", | ||
"vitest": "0.28.4", | ||
@@ -79,3 +81,3 @@ "wait-for-expect": "3.0.2" | ||
"postcss": "^8.4.12", | ||
"typescript": "^4.1.0" | ||
"typescript": ">=4.1.0" | ||
}, | ||
@@ -94,4 +96,5 @@ "peerDependenciesMeta": { | ||
"engines": { | ||
"node": ">=14.18" | ||
} | ||
"node": ">=16.14" | ||
}, | ||
"packageManager": "pnpm@8.6.0" | ||
} |
@@ -53,3 +53,3 @@ { | ||
"entry": { | ||
"markdownDescription": "Files that each serve as an input to the bundling algorithm.\n\n---\nReferences:\n- [Entry Points](https://esbuild.github.io/api/#entry-points) - esbuild\n - [Multiple Entrypoints](https://tsup.egoist.sh/#multiple-entrypoints) - tsup", | ||
"markdownDescription": "Files that each serve as an input to the bundling algorithm.\n\n---\nReferences:\n- [Entry Points](https://esbuild.github.io/api/#entry-points) - esbuild\n - [Multiple Entrypoints](https://tsup.egoist.dev/#multiple-entrypoints) - tsup", | ||
"oneOf": [ | ||
@@ -56,0 +56,0 @@ { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
519977
13502
28
+ Added@esbuild/android-arm@0.18.20(transitive)
+ Added@esbuild/android-arm64@0.18.20(transitive)
+ Added@esbuild/android-x64@0.18.20(transitive)
+ Added@esbuild/darwin-arm64@0.18.20(transitive)
+ Added@esbuild/darwin-x64@0.18.20(transitive)
+ Added@esbuild/freebsd-arm64@0.18.20(transitive)
+ Added@esbuild/freebsd-x64@0.18.20(transitive)
+ Added@esbuild/linux-arm@0.18.20(transitive)
+ Added@esbuild/linux-arm64@0.18.20(transitive)
+ Added@esbuild/linux-ia32@0.18.20(transitive)
+ Added@esbuild/linux-loong64@0.18.20(transitive)
+ Added@esbuild/linux-mips64el@0.18.20(transitive)
+ Added@esbuild/linux-ppc64@0.18.20(transitive)
+ Added@esbuild/linux-riscv64@0.18.20(transitive)
+ Added@esbuild/linux-s390x@0.18.20(transitive)
+ Added@esbuild/linux-x64@0.18.20(transitive)
+ Added@esbuild/netbsd-x64@0.18.20(transitive)
+ Added@esbuild/openbsd-x64@0.18.20(transitive)
+ Added@esbuild/sunos-x64@0.18.20(transitive)
+ Added@esbuild/win32-arm64@0.18.20(transitive)
+ Added@esbuild/win32-ia32@0.18.20(transitive)
+ Added@esbuild/win32-x64@0.18.20(transitive)
+ Addedesbuild@0.18.20(transitive)
+ Addedlilconfig@3.1.2(transitive)
+ Addedpostcss-load-config@4.0.2(transitive)
+ Addedtypescript@5.6.2(transitive)
+ Addedyaml@2.5.1(transitive)
- Removed@esbuild/android-arm@0.17.19(transitive)
- Removed@esbuild/android-arm64@0.17.19(transitive)
- Removed@esbuild/android-x64@0.17.19(transitive)
- Removed@esbuild/darwin-arm64@0.17.19(transitive)
- Removed@esbuild/darwin-x64@0.17.19(transitive)
- Removed@esbuild/freebsd-arm64@0.17.19(transitive)
- Removed@esbuild/freebsd-x64@0.17.19(transitive)
- Removed@esbuild/linux-arm@0.17.19(transitive)
- Removed@esbuild/linux-arm64@0.17.19(transitive)
- Removed@esbuild/linux-ia32@0.17.19(transitive)
- Removed@esbuild/linux-loong64@0.17.19(transitive)
- Removed@esbuild/linux-mips64el@0.17.19(transitive)
- Removed@esbuild/linux-ppc64@0.17.19(transitive)
- Removed@esbuild/linux-riscv64@0.17.19(transitive)
- Removed@esbuild/linux-s390x@0.17.19(transitive)
- Removed@esbuild/linux-x64@0.17.19(transitive)
- Removed@esbuild/netbsd-x64@0.17.19(transitive)
- Removed@esbuild/openbsd-x64@0.17.19(transitive)
- Removed@esbuild/sunos-x64@0.17.19(transitive)
- Removed@esbuild/win32-arm64@0.17.19(transitive)
- Removed@esbuild/win32-ia32@0.17.19(transitive)
- Removed@esbuild/win32-x64@0.17.19(transitive)
- Removedesbuild@0.17.19(transitive)
- Removedlilconfig@2.1.0(transitive)
- Removedpostcss-load-config@3.1.4(transitive)
- Removedtypescript@4.9.5(transitive)
- Removedyaml@1.10.2(transitive)
Updatedesbuild@^0.18.2
Updatedpostcss-load-config@^4.0.1