Comparing version 8.2.0 to 8.2.1
#!/usr/bin/env node | ||
"use strict"; | ||
var _chunk3CSGEK2Cjs = require('./chunk-3CSGEK2C.js'); | ||
require('./chunk-I3D367OM.js'); | ||
var _chunkC7URFPGFjs = require('./chunk-C7URFPGF.js'); | ||
require('./chunk-EKSBW36L.js'); | ||
var _chunkXGMM5K5Rjs = require('./chunk-XGMM5K5R.js'); | ||
require('./chunk-MTFH44DA.js'); | ||
var _chunkLDLF4CLAjs = require('./chunk-LDLF4CLA.js'); | ||
require('./chunk-5O5GRYRX.js'); | ||
// src/cli-default.ts | ||
_chunk3CSGEK2Cjs.main.call(void 0, ).catch(_chunkXGMM5K5Rjs.handleError); | ||
_chunkC7URFPGFjs.main.call(void 0, ).catch(_chunkLDLF4CLAjs.handleError); |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunk3CSGEK2Cjs = require('./chunk-3CSGEK2C.js'); | ||
require('./chunk-I3D367OM.js'); | ||
require('./chunk-MTFH44DA.js'); | ||
var _chunkC7URFPGFjs = require('./chunk-C7URFPGF.js'); | ||
require('./chunk-EKSBW36L.js'); | ||
require('./chunk-5O5GRYRX.js'); | ||
exports.main = _chunk3CSGEK2Cjs.main; | ||
exports.main = _chunkC7URFPGFjs.main; |
#!/usr/bin/env node | ||
"use strict"; | ||
var _chunk3CSGEK2Cjs = require('./chunk-3CSGEK2C.js'); | ||
require('./chunk-I3D367OM.js'); | ||
var _chunkC7URFPGFjs = require('./chunk-C7URFPGF.js'); | ||
require('./chunk-EKSBW36L.js'); | ||
var _chunkXGMM5K5Rjs = require('./chunk-XGMM5K5R.js'); | ||
require('./chunk-MTFH44DA.js'); | ||
var _chunkLDLF4CLAjs = require('./chunk-LDLF4CLA.js'); | ||
require('./chunk-5O5GRYRX.js'); | ||
// src/cli-node.ts | ||
_chunk3CSGEK2Cjs.main.call(void 0, { | ||
_chunkC7URFPGFjs.main.call(void 0, { | ||
skipNodeModulesBundle: true | ||
}).catch(_chunkXGMM5K5Rjs.handleError); | ||
}).catch(_chunkLDLF4CLAjs.handleError); |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; | ||
var _chunkI3D367OMjs = require('./chunk-I3D367OM.js'); | ||
var _chunkEKSBW36Ljs = require('./chunk-EKSBW36L.js'); | ||
@@ -13,7 +13,7 @@ | ||
var _chunk7WNKTK35js = require('./chunk-7WNKTK35.js'); | ||
var _chunkBTGL33JBjs = require('./chunk-BTGL33JB.js'); | ||
var _chunkXGMM5K5Rjs = require('./chunk-XGMM5K5R.js'); | ||
var _chunkLDLF4CLAjs = require('./chunk-LDLF4CLA.js'); | ||
@@ -34,3 +34,3 @@ | ||
var _chunkMTFH44DAjs = require('./chunk-MTFH44DA.js'); | ||
var _chunk5O5GRYRXjs = require('./chunk-5O5GRYRX.js'); | ||
@@ -41,5 +41,6 @@ // src/index.ts | ||
var _worker_threads = require('worker_threads'); | ||
var _globby = require('globby'); var _globby2 = _interopRequireDefault(_globby); | ||
var _bundlerequire = require('bundle-require'); | ||
var _execa = require('execa'); var _execa2 = _interopRequireDefault(_execa); | ||
var _fdir = require('fdir'); | ||
var _picomatch = require('picomatch'); var _picomatch2 = _interopRequireDefault(_picomatch); | ||
var _treekill = require('tree-kill'); var _treekill2 = _interopRequireDefault(_treekill); | ||
@@ -135,3 +136,3 @@ | ||
const getPostcssConfig = async () => { | ||
const loadConfig = _chunkMTFH44DAjs.__require.call(void 0, "postcss-load-config"); | ||
const loadConfig = _chunk5O5GRYRXjs.__require.call(void 0, "postcss-load-config"); | ||
if (configCache) { | ||
@@ -198,3 +199,3 @@ return configCache; | ||
if (plugins && plugins.length > 0) { | ||
const postcss = _chunkMTFH44DAjs.getPostcss.call(void 0, ); | ||
const postcss = _chunk5O5GRYRXjs.getPostcss.call(void 0, ); | ||
if (!postcss) { | ||
@@ -261,4 +262,4 @@ return { | ||
build2.onLoad({ filter: /\.svelte$/ }, async (args) => { | ||
svelte = svelte || _chunkMTFH44DAjs.localRequire.call(void 0, "svelte/compiler"); | ||
sveltePreprocessor = sveltePreprocessor || _chunkMTFH44DAjs.localRequire.call(void 0, "svelte-preprocess"); | ||
svelte = svelte || _chunk5O5GRYRXjs.localRequire.call(void 0, "svelte/compiler"); | ||
sveltePreprocessor = sveltePreprocessor || _chunk5O5GRYRXjs.localRequire.call(void 0, "svelte-preprocess"); | ||
if (!svelte) { | ||
@@ -345,3 +346,3 @@ return { | ||
setup(build2) { | ||
const swc = _chunkMTFH44DAjs.localRequire.call(void 0, "@swc/core"); | ||
const swc = _chunk5O5GRYRXjs.localRequire.call(void 0, "@swc/core"); | ||
if (!swc) { | ||
@@ -400,3 +401,3 @@ logger3.warn( | ||
build2.onResolve({ filter: /\.node$/, namespace: "file" }, (args) => { | ||
const resolvedId = _chunkMTFH44DAjs.__require.resolve(args.path, { | ||
const resolvedId = _chunk5O5GRYRXjs.__require.resolve(args.path, { | ||
paths: [args.resolveDir] | ||
@@ -440,4 +441,4 @@ }); | ||
var getOutputExtensionMap = (options, format, pkgType) => { | ||
const outExtension = options.outExtension || _chunkMTFH44DAjs.defaultOutExtension; | ||
const defaultExtension = _chunkMTFH44DAjs.defaultOutExtension.call(void 0, { format, pkgType }); | ||
const outExtension = options.outExtension || _chunk5O5GRYRXjs.defaultOutExtension; | ||
const defaultExtension = _chunk5O5GRYRXjs.defaultOutExtension.call(void 0, { format, pkgType }); | ||
const extension = outExtension({ options, format, pkgType }); | ||
@@ -456,3 +457,3 @@ return { | ||
const pkgPath = _path2.default.isAbsolute(item) ? _path2.default.dirname(item) : _path2.default.dirname(_path2.default.resolve(process.cwd(), item)); | ||
const deps = await _chunk7WNKTK35js.getProductionDeps.call(void 0, pkgPath); | ||
const deps = await _chunkBTGL33JBjs.getProductionDeps.call(void 0, pkgPath); | ||
result.push(...deps); | ||
@@ -469,4 +470,4 @@ } | ||
}) { | ||
const pkg = await _chunk7WNKTK35js.loadPkg.call(void 0, process.cwd()); | ||
const deps = await _chunk7WNKTK35js.getProductionDeps.call(void 0, process.cwd()); | ||
const pkg = await _chunkBTGL33JBjs.loadPkg.call(void 0, process.cwd()); | ||
const deps = await _chunkBTGL33JBjs.getProductionDeps.call(void 0, process.cwd()); | ||
const external = [ | ||
@@ -567,3 +568,3 @@ // Exclude dependencies, e.g. `lodash`, `lodash/get` | ||
mainFields: platform === "node" ? ["module", "main"] : ["browser", "module", "main"], | ||
plugins: esbuildPlugins.filter(_chunkMTFH44DAjs.truthy), | ||
plugins: esbuildPlugins.filter(_chunk5O5GRYRXjs.truthy), | ||
define: { | ||
@@ -606,3 +607,3 @@ TSUP_FORMAT: JSON.stringify(format), | ||
} | ||
if (result && result.warnings && !_chunk7WNKTK35js.getSilent.call(void 0, )) { | ||
if (result && result.warnings && !_chunkBTGL33JBjs.getSilent.call(void 0, )) { | ||
const messages = result.warnings.filter((warning) => { | ||
@@ -867,5 +868,5 @@ if (warning.text.includes( | ||
} | ||
const swc = _chunkMTFH44DAjs.localRequire.call(void 0, "@swc/core"); | ||
const swc = _chunk5O5GRYRXjs.localRequire.call(void 0, "@swc/core"); | ||
if (!swc) { | ||
throw new (0, _chunkXGMM5K5Rjs.PrettyError)( | ||
throw new (0, _chunkLDLF4CLAjs.PrettyError)( | ||
`@swc/core is required for ${target} target. Please install it with \`npm install @swc/core -D\`` | ||
@@ -907,3 +908,3 @@ ); | ||
buildEnd({ writtenFiles }) { | ||
_chunk7WNKTK35js.reportSize.call(void 0, | ||
_chunkBTGL33JBjs.reportSize.call(void 0, | ||
this.logger, | ||
@@ -981,6 +982,6 @@ this.format, | ||
if (!publicDir) return false; | ||
const publicPath = _chunkMTFH44DAjs.slash.call(void 0, | ||
const publicPath = _chunk5O5GRYRXjs.slash.call(void 0, | ||
_path2.default.resolve(publicDir === true ? "public" : publicDir) | ||
); | ||
return _chunkMTFH44DAjs.slash.call(void 0, _path2.default.resolve(filePath)).startsWith(`${publicPath}/`); | ||
return _chunk5O5GRYRXjs.slash.call(void 0, _path2.default.resolve(filePath)).startsWith(`${publicPath}/`); | ||
}; | ||
@@ -1001,5 +1002,5 @@ | ||
return; | ||
const terser = _chunkMTFH44DAjs.localRequire.call(void 0, "terser"); | ||
const terser = _chunk5O5GRYRXjs.localRequire.call(void 0, "terser"); | ||
if (!terser) { | ||
throw new (0, _chunkXGMM5K5Rjs.PrettyError)( | ||
throw new (0, _chunkLDLF4CLAjs.PrettyError)( | ||
"terser is required for terser minification. Please install it with `npm install terser -D`" | ||
@@ -1039,3 +1040,3 @@ ); | ||
var _typescript = require('typescript'); var _typescript2 = _interopRequireDefault(_typescript); | ||
var logger = _chunk7WNKTK35js.createLogger.call(void 0, ); | ||
var logger = _chunkBTGL33JBjs.createLogger.call(void 0, ); | ||
var AliasPool = (_class = class {constructor() { _class.prototype.__init.call(this); } | ||
@@ -1064,3 +1065,3 @@ __init() {this.seen = /* @__PURE__ */ new Set()} | ||
const cwd = program.getCurrentDirectory(); | ||
sourceFileName = _chunkMTFH44DAjs.toAbsolutePath.call(void 0, sourceFileName, cwd); | ||
sourceFileName = _chunk5O5GRYRXjs.toAbsolutePath.call(void 0, sourceFileName, cwd); | ||
const sourceFile = program.getSourceFile(sourceFileName); | ||
@@ -1103,4 +1104,4 @@ if (!sourceFile) { | ||
fileMapping.set( | ||
_chunkMTFH44DAjs.toAbsolutePath.call(void 0, sourceFileName, cwd), | ||
_chunkMTFH44DAjs.toAbsolutePath.call(void 0, fileName, cwd) | ||
_chunk5O5GRYRXjs.toAbsolutePath.call(void 0, sourceFileName, cwd), | ||
_chunk5O5GRYRXjs.toAbsolutePath.call(void 0, fileName, cwd) | ||
); | ||
@@ -1159,3 +1160,3 @@ } | ||
} | ||
const declarationDir = _chunkMTFH44DAjs.ensureTempDeclarationDir.call(void 0, ); | ||
const declarationDir = _chunk5O5GRYRXjs.ensureTempDeclarationDir.call(void 0, ); | ||
const parsedTsconfig = _typescript2.default.parseJsonConfigFileContent( | ||
@@ -1199,3 +1200,3 @@ { | ||
} catch (error) { | ||
_chunkXGMM5K5Rjs.handleError.call(void 0, error); | ||
_chunkLDLF4CLAjs.handleError.call(void 0, error); | ||
logger.error("tsc", "Build error"); | ||
@@ -1213,3 +1214,3 @@ } | ||
(declaration) => formatAggregationExport(declaration, declarationDirPath) | ||
).filter(_chunkMTFH44DAjs.truthy); | ||
).filter(_chunk5O5GRYRXjs.truthy); | ||
if (lines.length === 0) { | ||
@@ -1222,5 +1223,5 @@ lines.push("export {};"); | ||
function formatAggregationExport(declaration, declarationDirPath) { | ||
const dest = _chunkMTFH44DAjs.trimDtsExtension.call(void 0, | ||
const dest = _chunk5O5GRYRXjs.trimDtsExtension.call(void 0, | ||
`./${_path2.default.posix.normalize( | ||
_chunkMTFH44DAjs.slash.call(void 0, _path2.default.relative(declarationDirPath, declaration.destFileName)) | ||
_chunk5O5GRYRXjs.slash.call(void 0, _path2.default.relative(declarationDirPath, declaration.destFileName)) | ||
)}` | ||
@@ -1239,3 +1240,3 @@ ); | ||
`'${dest}';` | ||
].filter(_chunkMTFH44DAjs.truthy).join(" "); | ||
].filter(_chunk5O5GRYRXjs.truthy).join(" "); | ||
} else { | ||
@@ -1246,6 +1247,6 @@ throw new Error("Unknown declaration"); | ||
function formatDistributionExports(exports, fromFilePath, toFilePath) { | ||
let importPath = _chunkMTFH44DAjs.trimDtsExtension.call(void 0, | ||
let importPath = _chunk5O5GRYRXjs.trimDtsExtension.call(void 0, | ||
_path2.default.posix.relative( | ||
_path2.default.posix.dirname(_path2.default.posix.normalize(_chunkMTFH44DAjs.slash.call(void 0, fromFilePath))), | ||
_path2.default.posix.normalize(_chunkMTFH44DAjs.slash.call(void 0, toFilePath)) | ||
_path2.default.posix.dirname(_path2.default.posix.normalize(_chunk5O5GRYRXjs.slash.call(void 0, fromFilePath))), | ||
_path2.default.posix.normalize(_chunk5O5GRYRXjs.slash.call(void 0, toFilePath)) | ||
) | ||
@@ -1276,3 +1277,3 @@ ); | ||
} | ||
}).map((declaration) => formatDistributionExport(declaration, importPath)).filter(_chunkMTFH44DAjs.truthy); | ||
}).map((declaration) => formatDistributionExport(declaration, importPath)).filter(_chunk5O5GRYRXjs.truthy); | ||
if (lines.length === 0) { | ||
@@ -1294,3 +1295,3 @@ lines.push("export {};"); | ||
`'${dest}';` | ||
].filter(_chunkMTFH44DAjs.truthy).join(" "); | ||
].filter(_chunk5O5GRYRXjs.truthy).join(" "); | ||
} else if (declaration.kind === "module") { | ||
@@ -1303,3 +1304,3 @@ return `export * from '${declaration.moduleName}';`; | ||
// src/api-extractor.ts | ||
var logger2 = _chunk7WNKTK35js.createLogger.call(void 0, ); | ||
var logger2 = _chunkBTGL33JBjs.createLogger.call(void 0, ); | ||
function rollupDtsFile(inputFilePath, outputFilePath, tsconfigFilePath) { | ||
@@ -1331,3 +1332,3 @@ const cwd = process.cwd(); | ||
}; | ||
const imported = _chunkMTFH44DAjs.getApiExtractor.call(void 0, ); | ||
const imported = _chunk5O5GRYRXjs.getApiExtractor.call(void 0, ); | ||
if (!imported) { | ||
@@ -1353,6 +1354,6 @@ throw new Error( | ||
async function rollupDtsFiles(options, exports, format) { | ||
const declarationDir = _chunkMTFH44DAjs.ensureTempDeclarationDir.call(void 0, ); | ||
const declarationDir = _chunk5O5GRYRXjs.ensureTempDeclarationDir.call(void 0, ); | ||
const outDir = options.outDir || "dist"; | ||
const pkg = await _chunk7WNKTK35js.loadPkg.call(void 0, process.cwd()); | ||
const dtsExtension = _chunkMTFH44DAjs.defaultOutExtension.call(void 0, { format, pkgType: pkg.type }).dts; | ||
const pkg = await _chunkBTGL33JBjs.loadPkg.call(void 0, process.cwd()); | ||
const dtsExtension = _chunk5O5GRYRXjs.defaultOutExtension.call(void 0, { format, pkgType: pkg.type }).dts; | ||
let dtsInputFilePath = _path2.default.join( | ||
@@ -1364,3 +1365,3 @@ declarationDir, | ||
const dtsOutputFilePath = _path2.default.join(outDir, `_tsup-dts-rollup${dtsExtension}`); | ||
_chunkMTFH44DAjs.writeFileSync.call(void 0, | ||
_chunk5O5GRYRXjs.writeFileSync.call(void 0, | ||
dtsInputFilePath, | ||
@@ -1377,3 +1378,3 @@ formatAggregationExports(exports, declarationDir) | ||
)) { | ||
sourceFileName = _chunkMTFH44DAjs.toAbsolutePath.call(void 0, sourceFileName); | ||
sourceFileName = _chunk5O5GRYRXjs.toAbsolutePath.call(void 0, sourceFileName); | ||
const outFileName = _path2.default.join(outDir, out + dtsExtension); | ||
@@ -1383,3 +1384,3 @@ const currentExports = exports.filter( | ||
); | ||
_chunkMTFH44DAjs.writeFileSync.call(void 0, | ||
_chunk5O5GRYRXjs.writeFileSync.call(void 0, | ||
outFileName, | ||
@@ -1392,3 +1393,3 @@ formatDistributionExports(currentExports, outFileName, dtsOutputFilePath) | ||
if (options.clean) { | ||
_chunkMTFH44DAjs.removeFiles.call(void 0, ["**/*.d.{ts,mts,cts}"], options.outDir); | ||
_chunk5O5GRYRXjs.removeFiles.call(void 0, ["**/*.d.{ts,mts,cts}"], options.outDir); | ||
} | ||
@@ -1412,3 +1413,3 @@ } | ||
} catch (error) { | ||
_chunkXGMM5K5Rjs.handleError.call(void 0, error); | ||
_chunkLDLF4CLAjs.handleError.call(void 0, error); | ||
logger2.error("dts", "Build error"); | ||
@@ -1459,17 +1460,18 @@ } | ||
experimentalDts: _options.experimentalDts ? typeof _options.experimentalDts === "boolean" ? _options.experimentalDts ? { entry: {} } : void 0 : typeof _options.experimentalDts === "string" ? { | ||
entry: _chunkMTFH44DAjs.toObjectEntry.call(void 0, _options.experimentalDts) | ||
entry: _chunk5O5GRYRXjs.toObjectEntry.call(void 0, _options.experimentalDts) | ||
} : { | ||
..._options.experimentalDts, | ||
entry: _chunkMTFH44DAjs.toObjectEntry.call(void 0, _options.experimentalDts.entry || {}) | ||
entry: _chunk5O5GRYRXjs.toObjectEntry.call(void 0, _options.experimentalDts.entry || {}) | ||
} : void 0 | ||
}; | ||
_chunk7WNKTK35js.setSilent.call(void 0, options.silent); | ||
_chunkBTGL33JBjs.setSilent.call(void 0, options.silent); | ||
const entry = options.entry || options.entryPoints; | ||
if (!entry || Object.keys(entry).length === 0) { | ||
throw new (0, _chunkXGMM5K5Rjs.PrettyError)(`No input files, try "tsup <your-file>" instead`); | ||
throw new (0, _chunkLDLF4CLAjs.PrettyError)(`No input files, try "tsup <your-file>" instead`); | ||
} | ||
if (Array.isArray(entry)) { | ||
options.entry = await _globby2.default.call(void 0, entry); | ||
const matcher = _picomatch2.default.call(void 0, entry, { windows: process.platform === "win32" }); | ||
options.entry = await new (0, _fdir.fdir)().withRelativePaths().filter((file) => matcher(file)).crawl(process.cwd()).withPromise(); | ||
if (!options.entry || options.entry.length === 0) { | ||
throw new (0, _chunkXGMM5K5Rjs.PrettyError)(`Cannot find ${entry}`); | ||
throw new (0, _chunkLDLF4CLAjs.PrettyError)(`Cannot find ${entry}`); | ||
} else { | ||
@@ -1482,3 +1484,3 @@ logger3.info("CLI", `Building entry: ${options.entry.join(", ")}`); | ||
if (!_fs2.default.existsSync(filename)) { | ||
throw new (0, _chunkXGMM5K5Rjs.PrettyError)(`Cannot find ${alias}: ${filename}`); | ||
throw new (0, _chunkLDLF4CLAjs.PrettyError)(`Cannot find ${alias}: ${filename}`); | ||
} | ||
@@ -1509,3 +1511,3 @@ }); | ||
}; | ||
options.experimentalDts.entry = _chunkMTFH44DAjs.toObjectEntry.call(void 0, | ||
options.experimentalDts.entry = _chunk5O5GRYRXjs.toObjectEntry.call(void 0, | ||
Object.keys(options.experimentalDts.entry).length > 0 ? options.experimentalDts.entry : options.entry | ||
@@ -1518,3 +1520,3 @@ ); | ||
} else if (options.tsconfig) { | ||
throw new (0, _chunkXGMM5K5Rjs.PrettyError)(`Cannot find tsconfig: ${options.tsconfig}`); | ||
throw new (0, _chunkLDLF4CLAjs.PrettyError)(`Cannot find tsconfig: ${options.tsconfig}`); | ||
} | ||
@@ -1527,3 +1529,3 @@ if (!options.target) { | ||
async function build(_options) { | ||
const config = _options.config === false ? {} : await _chunk7WNKTK35js.loadTsupConfig.call(void 0, | ||
const config = _options.config === false ? {} : await _chunkBTGL33JBjs.loadTsupConfig.call(void 0, | ||
process.cwd(), | ||
@@ -1536,5 +1538,5 @@ _options.config === true ? void 0 : _options.config | ||
async (item) => { | ||
const logger3 = _chunk7WNKTK35js.createLogger.call(void 0, _optionalChain([item, 'optionalAccess', _31 => _31.name])); | ||
const logger3 = _chunkBTGL33JBjs.createLogger.call(void 0, _optionalChain([item, 'optionalAccess', _31 => _31.name])); | ||
const options = await normalizeOptions(logger3, item, _options); | ||
logger3.info("CLI", `tsup v${_chunkI3D367OMjs.version}`); | ||
logger3.info("CLI", `tsup v${_chunkEKSBW36Ljs.version}`); | ||
if (config.path) { | ||
@@ -1576,4 +1578,6 @@ logger3.info("CLI", `Using tsup config: ${config.path}`); | ||
if (data === "error") { | ||
worker.terminate(); | ||
reject(new Error("error occured in dts build")); | ||
} else if (data === "success") { | ||
worker.terminate(); | ||
resolve(); | ||
@@ -1597,3 +1601,3 @@ } else { | ||
const buildDependencies = /* @__PURE__ */ new Set(); | ||
let depsHash = await _chunk7WNKTK35js.getAllDepsHash.call(void 0, process.cwd()); | ||
let depsHash = await _chunkBTGL33JBjs.getAllDepsHash.call(void 0, process.cwd()); | ||
const doOnSuccessCleanup = async () => { | ||
@@ -1611,3 +1615,3 @@ if (onSuccessProcess) { | ||
}; | ||
const debouncedBuildAll = _chunkMTFH44DAjs.debouncePromise.call(void 0, | ||
const debouncedBuildAll = _chunk5O5GRYRXjs.debouncePromise.call(void 0, | ||
() => { | ||
@@ -1617,3 +1621,3 @@ return buildAll(); | ||
100, | ||
_chunkXGMM5K5Rjs.handleError | ||
_chunkLDLF4CLAjs.handleError | ||
); | ||
@@ -1629,3 +1633,3 @@ const buildAll = async () => { | ||
} | ||
await _chunkMTFH44DAjs.removeFiles.call(void 0, ["**/*", ...extraPatterns], options.outDir); | ||
await _chunk5O5GRYRXjs.removeFiles.call(void 0, ["**/*", ...extraPatterns], options.outDir); | ||
logger3.info("CLI", "Cleaning output folder"); | ||
@@ -1712,3 +1716,3 @@ } | ||
watcher.on("all", async (type, file) => { | ||
file = _chunkMTFH44DAjs.slash.call(void 0, file); | ||
file = _chunk5O5GRYRXjs.slash.call(void 0, file); | ||
if (options.publicDir && isInPublicDir(options.publicDir, file)) { | ||
@@ -1722,3 +1726,3 @@ logger3.info("CLI", `Change in public dir: ${file}`); | ||
if (file === "package.json" && !buildDependencies.has(file)) { | ||
const currentHash = await _chunk7WNKTK35js.getAllDepsHash.call(void 0, process.cwd()); | ||
const currentHash = await _chunkBTGL33JBjs.getAllDepsHash.call(void 0, process.cwd()); | ||
shouldSkipChange = currentHash === depsHash; | ||
@@ -1725,0 +1729,0 @@ depsHash = currentHash; |
{ | ||
"name": "tsup", | ||
"version": "8.2.0", | ||
"version": "8.2.1", | ||
"packageManager": "pnpm@9.5.0", | ||
@@ -60,4 +60,6 @@ "description": "Bundle your TypeScript library with no config, powered by esbuild", | ||
"execa": "^5.1.1", | ||
"globby": "^11.1.0", | ||
"fdir": "^6.1.1", | ||
"joycon": "^3.1.1", | ||
"picocolors": "^1.0.1", | ||
"picomatch": "^4.0.2", | ||
"postcss-load-config": "^6.0.1", | ||
@@ -77,4 +79,4 @@ "resolve-from": "^5.0.0", | ||
"@types/node": "20.14.11", | ||
"@types/picomatch": "^3.0.0", | ||
"@types/resolve": "1.20.6", | ||
"colorette": "2.0.20", | ||
"flat": "6.0.1", | ||
@@ -81,0 +83,0 @@ "fs-extra": "11.2.0", |
@@ -47,3 +47,3 @@ # tsup | ||
For all configuration options, please see [the API docs](https://paka.dev/npm/tsup#module-index-export-Options). | ||
For all configuration options, please see [the API docs](https://jsdocs.io/package/tsup). | ||
@@ -50,0 +50,0 @@ ## 💬 Discussions |
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
28
386167
21
10203
+ Addedfdir@^6.1.1
+ Addedpicocolors@^1.0.1
+ Addedpicomatch@^4.0.2
+ Addedfdir@6.4.2(transitive)
+ Addedpicomatch@4.0.2(transitive)
- Removedglobby@^11.1.0
- Removed@nodelib/fs.scandir@2.1.5(transitive)
- Removed@nodelib/fs.stat@2.0.5(transitive)
- Removed@nodelib/fs.walk@1.2.8(transitive)
- Removedarray-union@2.1.0(transitive)
- Removeddir-glob@3.0.1(transitive)
- Removedfast-glob@3.3.2(transitive)
- Removedfastq@1.17.1(transitive)
- Removedglobby@11.1.0(transitive)
- Removedignore@5.3.2(transitive)
- Removedmerge2@1.4.1(transitive)
- Removedmicromatch@4.0.8(transitive)
- Removedpath-type@4.0.0(transitive)
- Removedqueue-microtask@1.2.3(transitive)
- Removedreusify@1.0.4(transitive)
- Removedrun-parallel@1.2.0(transitive)
- Removedslash@3.0.0(transitive)