@storm-software/workspace-tools 1.43.18 → 1.43.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/index.js +33 -34
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +2 -1
- package/src/executors/tsup/executor.js +27 -30
- package/src/executors/tsup/schema.d.ts +1 -0
- package/src/executors/tsup/schema.json +5 -0
- package/src/executors/tsup-browser/executor.js +33 -34
- package/src/executors/tsup-neutral/executor.js +30 -32
- package/src/executors/tsup-node/executor.js +30 -32
|
@@ -73213,7 +73213,7 @@ var require_util5 = __commonJS({
|
|
|
73213
73213
|
var normalize2 = createSafeHandler((url) => {
|
|
73214
73214
|
});
|
|
73215
73215
|
exports.normalize = normalize2;
|
|
73216
|
-
function
|
|
73216
|
+
function join2(aRoot, aPath) {
|
|
73217
73217
|
const pathType = getURLType(aPath);
|
|
73218
73218
|
const rootType = getURLType(aRoot);
|
|
73219
73219
|
aRoot = ensureDirectory(aRoot);
|
|
@@ -73239,7 +73239,7 @@ var require_util5 = __commonJS({
|
|
|
73239
73239
|
const newPath = withBase(aPath, withBase(aRoot, base));
|
|
73240
73240
|
return computeRelativeURL(base, newPath);
|
|
73241
73241
|
}
|
|
73242
|
-
exports.join =
|
|
73242
|
+
exports.join = join2;
|
|
73243
73243
|
function relative(rootURL, targetURL) {
|
|
73244
73244
|
const result = relativeIfPossible(rootURL, targetURL);
|
|
73245
73245
|
return typeof result === "string" ? result : normalize2(targetURL);
|
|
@@ -73269,9 +73269,9 @@ var require_util5 = __commonJS({
|
|
|
73269
73269
|
}
|
|
73270
73270
|
let url = normalize2(sourceURL || "");
|
|
73271
73271
|
if (sourceRoot)
|
|
73272
|
-
url =
|
|
73272
|
+
url = join2(sourceRoot, url);
|
|
73273
73273
|
if (sourceMapURL)
|
|
73274
|
-
url =
|
|
73274
|
+
url = join2(trimFilename(sourceMapURL), url);
|
|
73275
73275
|
return url;
|
|
73276
73276
|
}
|
|
73277
73277
|
exports.computeSourceURL = computeSourceURL;
|
|
@@ -75037,7 +75037,7 @@ var require_source_map = __commonJS({
|
|
|
75037
75037
|
var require_native = __commonJS({
|
|
75038
75038
|
"node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/native.js"(exports, module2) {
|
|
75039
75039
|
var { existsSync: existsSync2 } = require("node:fs");
|
|
75040
|
-
var { join:
|
|
75040
|
+
var { join: join2 } = require("node:path");
|
|
75041
75041
|
var { platform, arch, report } = require("node:process");
|
|
75042
75042
|
var isMusl = () => !report.getReport().header.glibcVersionRuntime;
|
|
75043
75043
|
var bindingsByPlatformAndArch = {
|
|
@@ -75087,7 +75087,7 @@ If this is important to you, please consider supporting Rollup to make a native
|
|
|
75087
75087
|
return imported.base;
|
|
75088
75088
|
}
|
|
75089
75089
|
var localName = `./rollup.${packageBase}.node`;
|
|
75090
|
-
var { parse, parseAsync, xxhashBase64Url } = existsSync2(
|
|
75090
|
+
var { parse, parseAsync, xxhashBase64Url } = existsSync2(join2(__dirname, localName)) ? require(localName) : require(`@rollup/rollup-${packageBase}`);
|
|
75091
75091
|
module2.exports.parse = parse;
|
|
75092
75092
|
module2.exports.parseAsync = parseAsync;
|
|
75093
75093
|
module2.exports.xxhashBase64Url = xxhashBase64Url;
|
|
@@ -111229,7 +111229,7 @@ var require_TransformerError = __commonJS({
|
|
|
111229
111229
|
TransformerError2.from = function(method) {
|
|
111230
111230
|
return function(errors) {
|
|
111231
111231
|
var body = errors.map(function(e) {
|
|
111232
|
-
var subject = e.explore.object === null ? "" :
|
|
111232
|
+
var subject = e.explore.object === null ? "" : join2(e.explore.object)(e.explore.property);
|
|
111233
111233
|
var type = "".concat(subject.length ? "".concat(subject, ": ") : "").concat(e.name);
|
|
111234
111234
|
return "- ".concat(type, "\n").concat(e.messages.map(function(msg) {
|
|
111235
111235
|
return " - ".concat(msg);
|
|
@@ -111241,7 +111241,7 @@ var require_TransformerError = __commonJS({
|
|
|
111241
111241
|
});
|
|
111242
111242
|
};
|
|
111243
111243
|
};
|
|
111244
|
-
var
|
|
111244
|
+
var join2 = function(object) {
|
|
111245
111245
|
return function(key) {
|
|
111246
111246
|
if (key === null)
|
|
111247
111247
|
return object.name;
|
|
@@ -117321,13 +117321,13 @@ var require_application_object = __commonJS({
|
|
|
117321
117321
|
return __assign2(__assign2({ type: "object", properties, nullable: options.purpose === "swagger" ? nullable : void 0, required: required.length ? required : void 0, description: obj.description }, options.surplus ? { "x-typia-jsDocTags": obj.jsDocTags } : {}), options.purpose === "ajv" ? extraProps : options.surplus ? {
|
|
117322
117322
|
"x-typia-additionalProperties": extraProps.additionalProperties,
|
|
117323
117323
|
"x-typia-patternProperties": extraProps.patternProperties,
|
|
117324
|
-
additionalProperties:
|
|
117324
|
+
additionalProperties: join2(options)(components)(extraMeta)
|
|
117325
117325
|
} : {});
|
|
117326
117326
|
};
|
|
117327
117327
|
};
|
|
117328
117328
|
};
|
|
117329
117329
|
};
|
|
117330
|
-
var
|
|
117330
|
+
var join2 = function(options) {
|
|
117331
117331
|
return function(components) {
|
|
117332
117332
|
return function(extra) {
|
|
117333
117333
|
var _a;
|
|
@@ -136981,6 +136981,7 @@ function defaultConfig({
|
|
|
136981
136981
|
plugins,
|
|
136982
136982
|
generatePackageJson,
|
|
136983
136983
|
dtsTsConfig,
|
|
136984
|
+
minify = false,
|
|
136984
136985
|
getTransform
|
|
136985
136986
|
}) {
|
|
136986
136987
|
return {
|
|
@@ -137016,7 +137017,7 @@ function defaultConfig({
|
|
|
137016
137017
|
}
|
|
137017
137018
|
}
|
|
137018
137019
|
},
|
|
137019
|
-
minify
|
|
137020
|
+
minify,
|
|
137020
137021
|
apiReport,
|
|
137021
137022
|
docModel,
|
|
137022
137023
|
tsdocMetadata,
|
|
@@ -137144,9 +137145,9 @@ ${Object.keys(options).map(
|
|
|
137144
137145
|
if (!result.success) {
|
|
137145
137146
|
throw new Error("The Build process failed trying to copy assets");
|
|
137146
137147
|
}
|
|
137147
|
-
const pathToPackageJson = (0,
|
|
137148
|
+
const pathToPackageJson = (0, import_devkit2.joinPathFragments)(context.root, projectRoot, "package.json");
|
|
137148
137149
|
const packageJson = (0, import_fileutils.fileExists)(pathToPackageJson) ? (0, import_devkit2.readJsonFile)(pathToPackageJson) : { name: context.projectName, version: "0.0.1" };
|
|
137149
|
-
const workspacePackageJson = (0, import_devkit2.readJsonFile)((0,
|
|
137150
|
+
const workspacePackageJson = (0, import_devkit2.readJsonFile)((0, import_devkit2.joinPathFragments)(workspaceRoot, "package.json"));
|
|
137150
137151
|
options.external = options.external || [];
|
|
137151
137152
|
if (workspacePackageJson?.dependencies) {
|
|
137152
137153
|
options.external = Object.keys(workspacePackageJson?.dependencies).reduce(
|
|
@@ -137304,11 +137305,11 @@ ${externalDependencies.map((dep) => {
|
|
|
137304
137305
|
},
|
|
137305
137306
|
...(options.additionalEntryPoints ?? []).map((entryPoint) => ({
|
|
137306
137307
|
[removeExtension(entryPoint).replace(sourceRoot, "")]: {
|
|
137307
|
-
types: (0,
|
|
137308
|
+
types: (0, import_devkit2.joinPathFragments)(
|
|
137308
137309
|
`./${distPaths[0]}`,
|
|
137309
137310
|
`${removeExtension(entryPoint.replace(sourceRoot, ""))}.d.ts`
|
|
137310
137311
|
),
|
|
137311
|
-
default: (0,
|
|
137312
|
+
default: (0, import_devkit2.joinPathFragments)(
|
|
137312
137313
|
`./${distPaths[0]}`,
|
|
137313
137314
|
`${removeExtension(entryPoint.replace(sourceRoot, ""))}.js`
|
|
137314
137315
|
)
|
|
@@ -137354,7 +137355,7 @@ ${externalDependencies.map((dep) => {
|
|
|
137354
137355
|
if (distSrc.startsWith("/")) {
|
|
137355
137356
|
distSrc = distSrc.substring(1);
|
|
137356
137357
|
}
|
|
137357
|
-
packageJson.source ??= `${(0,
|
|
137358
|
+
packageJson.source ??= `${(0, import_devkit2.joinPathFragments)(distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
137358
137359
|
}
|
|
137359
137360
|
packageJson.sideEffects ??= false;
|
|
137360
137361
|
packageJson.files ??= ["dist/**/*"];
|
|
@@ -137372,8 +137373,8 @@ ${externalDependencies.map((dep) => {
|
|
|
137372
137373
|
packageJson.license ??= workspacePackageJson.license;
|
|
137373
137374
|
packageJson.keywords ??= workspacePackageJson.keywords;
|
|
137374
137375
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
137375
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot : (0,
|
|
137376
|
-
const packageJsonPath = (0,
|
|
137376
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_devkit2.joinPathFragments)("packages", context.projectName);
|
|
137377
|
+
const packageJsonPath = (0, import_devkit2.joinPathFragments)(context.root, options.outputPath, "package.json");
|
|
137377
137378
|
writeDebug(config, `\u26A1 Writing package.json file to: ${packageJsonPath}`);
|
|
137378
137379
|
(0, import_node_fs2.writeFileSync)(
|
|
137379
137380
|
packageJsonPath,
|
|
@@ -137505,7 +137506,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
|
137505
137506
|
emitDeclarationOnly: true,
|
|
137506
137507
|
declaration: true,
|
|
137507
137508
|
declarationMap: true,
|
|
137508
|
-
declarationDir: (0,
|
|
137509
|
+
declarationDir: (0, import_devkit2.joinPathFragments)(workspaceRoot, "tmp", ".tsup", "declaration")
|
|
137509
137510
|
}
|
|
137510
137511
|
},
|
|
137511
137512
|
ts.sys,
|
|
@@ -137518,18 +137519,13 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
|
137518
137519
|
return tsConfig;
|
|
137519
137520
|
}
|
|
137520
137521
|
var build = async (options, config) => {
|
|
137521
|
-
|
|
137522
|
-
|
|
137523
|
-
|
|
137524
|
-
|
|
137525
|
-
|
|
137526
|
-
console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
|
|
137527
|
-
}
|
|
137528
|
-
await (0, import_tsup.build)(options);
|
|
137522
|
+
if (Array.isArray(options)) {
|
|
137523
|
+
await Promise.all(options.map((buildOptions) => build(buildOptions, config)));
|
|
137524
|
+
} else {
|
|
137525
|
+
if (getLogLevel(config?.logLevel) >= LogLevel.TRACE && !options.silent) {
|
|
137526
|
+
console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
|
|
137529
137527
|
}
|
|
137530
|
-
|
|
137531
|
-
console.error("\u26A0\uFE0F A failure occured during the Tsup Build executor");
|
|
137532
|
-
console.error(e);
|
|
137528
|
+
await (0, import_tsup.build)(options);
|
|
137533
137529
|
}
|
|
137534
137530
|
};
|
|
137535
137531
|
var applyDefaultOptions = (options) => {
|
|
@@ -137547,6 +137543,7 @@ var applyDefaultOptions = (options) => {
|
|
|
137547
137543
|
options.assets ??= [];
|
|
137548
137544
|
options.plugins ??= [];
|
|
137549
137545
|
options.includeSrc ??= false;
|
|
137546
|
+
options.minify ??= false;
|
|
137550
137547
|
options.clean ??= true;
|
|
137551
137548
|
options.bundle ??= true;
|
|
137552
137549
|
options.debug ??= false;
|
|
@@ -137608,6 +137605,7 @@ var neutralConfig = ({
|
|
|
137608
137605
|
plugins,
|
|
137609
137606
|
generatePackageJson,
|
|
137610
137607
|
dtsTsConfig,
|
|
137608
|
+
minify = false,
|
|
137611
137609
|
getTransform
|
|
137612
137610
|
}) => {
|
|
137613
137611
|
const outputPath = (0, import_devkit3.joinPathFragments)(outDir, "dist");
|
|
@@ -137634,7 +137632,7 @@ var neutralConfig = ({
|
|
|
137634
137632
|
define: define2,
|
|
137635
137633
|
env,
|
|
137636
137634
|
dts: false,
|
|
137637
|
-
minify
|
|
137635
|
+
minify,
|
|
137638
137636
|
experimentalDts: {
|
|
137639
137637
|
entry,
|
|
137640
137638
|
compilerOptions: {
|
|
@@ -137655,7 +137653,7 @@ var neutralConfig = ({
|
|
|
137655
137653
|
outExtension,
|
|
137656
137654
|
getTransform
|
|
137657
137655
|
};
|
|
137658
|
-
if (!debug) {
|
|
137656
|
+
if (!debug || minify) {
|
|
137659
137657
|
options.minify = "terser";
|
|
137660
137658
|
options.terserOptions = {
|
|
137661
137659
|
compress: true,
|
|
@@ -73213,7 +73213,7 @@ var require_util5 = __commonJS({
|
|
|
73213
73213
|
var normalize2 = createSafeHandler((url) => {
|
|
73214
73214
|
});
|
|
73215
73215
|
exports.normalize = normalize2;
|
|
73216
|
-
function
|
|
73216
|
+
function join2(aRoot, aPath) {
|
|
73217
73217
|
const pathType = getURLType(aPath);
|
|
73218
73218
|
const rootType = getURLType(aRoot);
|
|
73219
73219
|
aRoot = ensureDirectory(aRoot);
|
|
@@ -73239,7 +73239,7 @@ var require_util5 = __commonJS({
|
|
|
73239
73239
|
const newPath = withBase(aPath, withBase(aRoot, base));
|
|
73240
73240
|
return computeRelativeURL(base, newPath);
|
|
73241
73241
|
}
|
|
73242
|
-
exports.join =
|
|
73242
|
+
exports.join = join2;
|
|
73243
73243
|
function relative(rootURL, targetURL) {
|
|
73244
73244
|
const result = relativeIfPossible(rootURL, targetURL);
|
|
73245
73245
|
return typeof result === "string" ? result : normalize2(targetURL);
|
|
@@ -73269,9 +73269,9 @@ var require_util5 = __commonJS({
|
|
|
73269
73269
|
}
|
|
73270
73270
|
let url = normalize2(sourceURL || "");
|
|
73271
73271
|
if (sourceRoot)
|
|
73272
|
-
url =
|
|
73272
|
+
url = join2(sourceRoot, url);
|
|
73273
73273
|
if (sourceMapURL)
|
|
73274
|
-
url =
|
|
73274
|
+
url = join2(trimFilename(sourceMapURL), url);
|
|
73275
73275
|
return url;
|
|
73276
73276
|
}
|
|
73277
73277
|
exports.computeSourceURL = computeSourceURL;
|
|
@@ -75037,7 +75037,7 @@ var require_source_map = __commonJS({
|
|
|
75037
75037
|
var require_native = __commonJS({
|
|
75038
75038
|
"node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/native.js"(exports, module2) {
|
|
75039
75039
|
var { existsSync: existsSync2 } = require("node:fs");
|
|
75040
|
-
var { join:
|
|
75040
|
+
var { join: join2 } = require("node:path");
|
|
75041
75041
|
var { platform, arch, report } = require("node:process");
|
|
75042
75042
|
var isMusl = () => !report.getReport().header.glibcVersionRuntime;
|
|
75043
75043
|
var bindingsByPlatformAndArch = {
|
|
@@ -75087,7 +75087,7 @@ If this is important to you, please consider supporting Rollup to make a native
|
|
|
75087
75087
|
return imported.base;
|
|
75088
75088
|
}
|
|
75089
75089
|
var localName = `./rollup.${packageBase}.node`;
|
|
75090
|
-
var { parse, parseAsync, xxhashBase64Url } = existsSync2(
|
|
75090
|
+
var { parse, parseAsync, xxhashBase64Url } = existsSync2(join2(__dirname, localName)) ? require(localName) : require(`@rollup/rollup-${packageBase}`);
|
|
75091
75091
|
module2.exports.parse = parse;
|
|
75092
75092
|
module2.exports.parseAsync = parseAsync;
|
|
75093
75093
|
module2.exports.xxhashBase64Url = xxhashBase64Url;
|
|
@@ -111229,7 +111229,7 @@ var require_TransformerError = __commonJS({
|
|
|
111229
111229
|
TransformerError2.from = function(method) {
|
|
111230
111230
|
return function(errors) {
|
|
111231
111231
|
var body = errors.map(function(e) {
|
|
111232
|
-
var subject = e.explore.object === null ? "" :
|
|
111232
|
+
var subject = e.explore.object === null ? "" : join2(e.explore.object)(e.explore.property);
|
|
111233
111233
|
var type = "".concat(subject.length ? "".concat(subject, ": ") : "").concat(e.name);
|
|
111234
111234
|
return "- ".concat(type, "\n").concat(e.messages.map(function(msg) {
|
|
111235
111235
|
return " - ".concat(msg);
|
|
@@ -111241,7 +111241,7 @@ var require_TransformerError = __commonJS({
|
|
|
111241
111241
|
});
|
|
111242
111242
|
};
|
|
111243
111243
|
};
|
|
111244
|
-
var
|
|
111244
|
+
var join2 = function(object) {
|
|
111245
111245
|
return function(key) {
|
|
111246
111246
|
if (key === null)
|
|
111247
111247
|
return object.name;
|
|
@@ -117321,13 +117321,13 @@ var require_application_object = __commonJS({
|
|
|
117321
117321
|
return __assign2(__assign2({ type: "object", properties, nullable: options.purpose === "swagger" ? nullable : void 0, required: required.length ? required : void 0, description: obj.description }, options.surplus ? { "x-typia-jsDocTags": obj.jsDocTags } : {}), options.purpose === "ajv" ? extraProps : options.surplus ? {
|
|
117322
117322
|
"x-typia-additionalProperties": extraProps.additionalProperties,
|
|
117323
117323
|
"x-typia-patternProperties": extraProps.patternProperties,
|
|
117324
|
-
additionalProperties:
|
|
117324
|
+
additionalProperties: join2(options)(components)(extraMeta)
|
|
117325
117325
|
} : {});
|
|
117326
117326
|
};
|
|
117327
117327
|
};
|
|
117328
117328
|
};
|
|
117329
117329
|
};
|
|
117330
|
-
var
|
|
117330
|
+
var join2 = function(options) {
|
|
117331
117331
|
return function(components) {
|
|
117332
117332
|
return function(extra) {
|
|
117333
117333
|
var _a;
|
|
@@ -136981,6 +136981,7 @@ function defaultConfig({
|
|
|
136981
136981
|
plugins,
|
|
136982
136982
|
generatePackageJson,
|
|
136983
136983
|
dtsTsConfig,
|
|
136984
|
+
minify = false,
|
|
136984
136985
|
getTransform
|
|
136985
136986
|
}) {
|
|
136986
136987
|
return {
|
|
@@ -137016,7 +137017,7 @@ function defaultConfig({
|
|
|
137016
137017
|
}
|
|
137017
137018
|
}
|
|
137018
137019
|
},
|
|
137019
|
-
minify
|
|
137020
|
+
minify,
|
|
137020
137021
|
apiReport,
|
|
137021
137022
|
docModel,
|
|
137022
137023
|
tsdocMetadata,
|
|
@@ -137144,9 +137145,9 @@ ${Object.keys(options).map(
|
|
|
137144
137145
|
if (!result.success) {
|
|
137145
137146
|
throw new Error("The Build process failed trying to copy assets");
|
|
137146
137147
|
}
|
|
137147
|
-
const pathToPackageJson = (0,
|
|
137148
|
+
const pathToPackageJson = (0, import_devkit2.joinPathFragments)(context.root, projectRoot, "package.json");
|
|
137148
137149
|
const packageJson = (0, import_fileutils.fileExists)(pathToPackageJson) ? (0, import_devkit2.readJsonFile)(pathToPackageJson) : { name: context.projectName, version: "0.0.1" };
|
|
137149
|
-
const workspacePackageJson = (0, import_devkit2.readJsonFile)((0,
|
|
137150
|
+
const workspacePackageJson = (0, import_devkit2.readJsonFile)((0, import_devkit2.joinPathFragments)(workspaceRoot, "package.json"));
|
|
137150
137151
|
options.external = options.external || [];
|
|
137151
137152
|
if (workspacePackageJson?.dependencies) {
|
|
137152
137153
|
options.external = Object.keys(workspacePackageJson?.dependencies).reduce(
|
|
@@ -137304,11 +137305,11 @@ ${externalDependencies.map((dep) => {
|
|
|
137304
137305
|
},
|
|
137305
137306
|
...(options.additionalEntryPoints ?? []).map((entryPoint) => ({
|
|
137306
137307
|
[removeExtension(entryPoint).replace(sourceRoot, "")]: {
|
|
137307
|
-
types: (0,
|
|
137308
|
+
types: (0, import_devkit2.joinPathFragments)(
|
|
137308
137309
|
`./${distPaths[0]}`,
|
|
137309
137310
|
`${removeExtension(entryPoint.replace(sourceRoot, ""))}.d.ts`
|
|
137310
137311
|
),
|
|
137311
|
-
default: (0,
|
|
137312
|
+
default: (0, import_devkit2.joinPathFragments)(
|
|
137312
137313
|
`./${distPaths[0]}`,
|
|
137313
137314
|
`${removeExtension(entryPoint.replace(sourceRoot, ""))}.js`
|
|
137314
137315
|
)
|
|
@@ -137354,7 +137355,7 @@ ${externalDependencies.map((dep) => {
|
|
|
137354
137355
|
if (distSrc.startsWith("/")) {
|
|
137355
137356
|
distSrc = distSrc.substring(1);
|
|
137356
137357
|
}
|
|
137357
|
-
packageJson.source ??= `${(0,
|
|
137358
|
+
packageJson.source ??= `${(0, import_devkit2.joinPathFragments)(distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
137358
137359
|
}
|
|
137359
137360
|
packageJson.sideEffects ??= false;
|
|
137360
137361
|
packageJson.files ??= ["dist/**/*"];
|
|
@@ -137372,8 +137373,8 @@ ${externalDependencies.map((dep) => {
|
|
|
137372
137373
|
packageJson.license ??= workspacePackageJson.license;
|
|
137373
137374
|
packageJson.keywords ??= workspacePackageJson.keywords;
|
|
137374
137375
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
137375
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot : (0,
|
|
137376
|
-
const packageJsonPath = (0,
|
|
137376
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_devkit2.joinPathFragments)("packages", context.projectName);
|
|
137377
|
+
const packageJsonPath = (0, import_devkit2.joinPathFragments)(context.root, options.outputPath, "package.json");
|
|
137377
137378
|
writeDebug(config, `\u26A1 Writing package.json file to: ${packageJsonPath}`);
|
|
137378
137379
|
(0, import_node_fs2.writeFileSync)(
|
|
137379
137380
|
packageJsonPath,
|
|
@@ -137505,7 +137506,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
|
137505
137506
|
emitDeclarationOnly: true,
|
|
137506
137507
|
declaration: true,
|
|
137507
137508
|
declarationMap: true,
|
|
137508
|
-
declarationDir: (0,
|
|
137509
|
+
declarationDir: (0, import_devkit2.joinPathFragments)(workspaceRoot, "tmp", ".tsup", "declaration")
|
|
137509
137510
|
}
|
|
137510
137511
|
},
|
|
137511
137512
|
ts.sys,
|
|
@@ -137518,18 +137519,13 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
|
137518
137519
|
return tsConfig;
|
|
137519
137520
|
}
|
|
137520
137521
|
var build = async (options, config) => {
|
|
137521
|
-
|
|
137522
|
-
|
|
137523
|
-
|
|
137524
|
-
|
|
137525
|
-
|
|
137526
|
-
console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
|
|
137527
|
-
}
|
|
137528
|
-
await (0, import_tsup.build)(options);
|
|
137522
|
+
if (Array.isArray(options)) {
|
|
137523
|
+
await Promise.all(options.map((buildOptions) => build(buildOptions, config)));
|
|
137524
|
+
} else {
|
|
137525
|
+
if (getLogLevel(config?.logLevel) >= LogLevel.TRACE && !options.silent) {
|
|
137526
|
+
console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
|
|
137529
137527
|
}
|
|
137530
|
-
|
|
137531
|
-
console.error("\u26A0\uFE0F A failure occured during the Tsup Build executor");
|
|
137532
|
-
console.error(e);
|
|
137528
|
+
await (0, import_tsup.build)(options);
|
|
137533
137529
|
}
|
|
137534
137530
|
};
|
|
137535
137531
|
var applyDefaultOptions = (options) => {
|
|
@@ -137547,6 +137543,7 @@ var applyDefaultOptions = (options) => {
|
|
|
137547
137543
|
options.assets ??= [];
|
|
137548
137544
|
options.plugins ??= [];
|
|
137549
137545
|
options.includeSrc ??= false;
|
|
137546
|
+
options.minify ??= false;
|
|
137550
137547
|
options.clean ??= true;
|
|
137551
137548
|
options.bundle ??= true;
|
|
137552
137549
|
options.debug ??= false;
|
|
@@ -137608,6 +137605,7 @@ function nodeConfig({
|
|
|
137608
137605
|
plugins,
|
|
137609
137606
|
generatePackageJson,
|
|
137610
137607
|
dtsTsConfig,
|
|
137608
|
+
minify = false,
|
|
137611
137609
|
getTransform
|
|
137612
137610
|
}) {
|
|
137613
137611
|
const options = {
|
|
@@ -137633,7 +137631,7 @@ function nodeConfig({
|
|
|
137633
137631
|
define: define2,
|
|
137634
137632
|
env,
|
|
137635
137633
|
dts: false,
|
|
137636
|
-
minify
|
|
137634
|
+
minify,
|
|
137637
137635
|
experimentalDts: {
|
|
137638
137636
|
entry,
|
|
137639
137637
|
compilerOptions: {
|
|
@@ -137654,7 +137652,7 @@ function nodeConfig({
|
|
|
137654
137652
|
outExtension,
|
|
137655
137653
|
getTransform
|
|
137656
137654
|
};
|
|
137657
|
-
if (!debug) {
|
|
137655
|
+
if (!debug || minify) {
|
|
137658
137656
|
options.minify = "terser";
|
|
137659
137657
|
options.terserOptions = {
|
|
137660
137658
|
compress: true,
|