@storm-software/workspace-tools 1.43.18 → 1.43.19
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 +7 -0
- package/index.js +27 -23
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +2 -1
- package/src/executors/tsup/executor.js +21 -19
- package/src/executors/tsup/schema.d.ts +1 -0
- package/src/executors/tsup/schema.json +5 -0
- package/src/executors/tsup-browser/executor.js +27 -23
- package/src/executors/tsup-neutral/executor.js +24 -21
- package/src/executors/tsup-node/executor.js +24 -21
package/package.json
CHANGED
package/src/base/index.js
CHANGED
|
@@ -47968,6 +47968,7 @@ function defaultConfig({
|
|
|
47968
47968
|
plugins,
|
|
47969
47969
|
generatePackageJson,
|
|
47970
47970
|
dtsTsConfig,
|
|
47971
|
+
minify = false,
|
|
47971
47972
|
getTransform
|
|
47972
47973
|
}) {
|
|
47973
47974
|
return {
|
|
@@ -48003,7 +48004,7 @@ function defaultConfig({
|
|
|
48003
48004
|
}
|
|
48004
48005
|
}
|
|
48005
48006
|
},
|
|
48006
|
-
minify
|
|
48007
|
+
minify,
|
|
48007
48008
|
apiReport,
|
|
48008
48009
|
docModel,
|
|
48009
48010
|
tsdocMetadata,
|
|
@@ -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;
|
|
@@ -136950,6 +136950,7 @@ function defaultConfig({
|
|
|
136950
136950
|
plugins,
|
|
136951
136951
|
generatePackageJson,
|
|
136952
136952
|
dtsTsConfig,
|
|
136953
|
+
minify = false,
|
|
136953
136954
|
getTransform
|
|
136954
136955
|
}) {
|
|
136955
136956
|
return {
|
|
@@ -136985,7 +136986,7 @@ function defaultConfig({
|
|
|
136985
136986
|
}
|
|
136986
136987
|
}
|
|
136987
136988
|
},
|
|
136988
|
-
minify
|
|
136989
|
+
minify,
|
|
136989
136990
|
apiReport,
|
|
136990
136991
|
docModel,
|
|
136991
136992
|
tsdocMetadata,
|
|
@@ -137113,9 +137114,9 @@ ${Object.keys(options).map(
|
|
|
137113
137114
|
if (!result.success) {
|
|
137114
137115
|
throw new Error("The Build process failed trying to copy assets");
|
|
137115
137116
|
}
|
|
137116
|
-
const pathToPackageJson = (0,
|
|
137117
|
+
const pathToPackageJson = (0, import_devkit2.joinPathFragments)(context.root, projectRoot, "package.json");
|
|
137117
137118
|
const packageJson = (0, import_fileutils.fileExists)(pathToPackageJson) ? (0, import_devkit2.readJsonFile)(pathToPackageJson) : { name: context.projectName, version: "0.0.1" };
|
|
137118
|
-
const workspacePackageJson = (0, import_devkit2.readJsonFile)((0,
|
|
137119
|
+
const workspacePackageJson = (0, import_devkit2.readJsonFile)((0, import_devkit2.joinPathFragments)(workspaceRoot, "package.json"));
|
|
137119
137120
|
options.external = options.external || [];
|
|
137120
137121
|
if (workspacePackageJson?.dependencies) {
|
|
137121
137122
|
options.external = Object.keys(workspacePackageJson?.dependencies).reduce(
|
|
@@ -137273,11 +137274,11 @@ ${externalDependencies.map((dep) => {
|
|
|
137273
137274
|
},
|
|
137274
137275
|
...(options.additionalEntryPoints ?? []).map((entryPoint) => ({
|
|
137275
137276
|
[removeExtension(entryPoint).replace(sourceRoot, "")]: {
|
|
137276
|
-
types: (0,
|
|
137277
|
+
types: (0, import_devkit2.joinPathFragments)(
|
|
137277
137278
|
`./${distPaths[0]}`,
|
|
137278
137279
|
`${removeExtension(entryPoint.replace(sourceRoot, ""))}.d.ts`
|
|
137279
137280
|
),
|
|
137280
|
-
default: (0,
|
|
137281
|
+
default: (0, import_devkit2.joinPathFragments)(
|
|
137281
137282
|
`./${distPaths[0]}`,
|
|
137282
137283
|
`${removeExtension(entryPoint.replace(sourceRoot, ""))}.js`
|
|
137283
137284
|
)
|
|
@@ -137323,7 +137324,7 @@ ${externalDependencies.map((dep) => {
|
|
|
137323
137324
|
if (distSrc.startsWith("/")) {
|
|
137324
137325
|
distSrc = distSrc.substring(1);
|
|
137325
137326
|
}
|
|
137326
|
-
packageJson.source ??= `${(0,
|
|
137327
|
+
packageJson.source ??= `${(0, import_devkit2.joinPathFragments)(distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
137327
137328
|
}
|
|
137328
137329
|
packageJson.sideEffects ??= false;
|
|
137329
137330
|
packageJson.files ??= ["dist/**/*"];
|
|
@@ -137341,8 +137342,8 @@ ${externalDependencies.map((dep) => {
|
|
|
137341
137342
|
packageJson.license ??= workspacePackageJson.license;
|
|
137342
137343
|
packageJson.keywords ??= workspacePackageJson.keywords;
|
|
137343
137344
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
137344
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot : (0,
|
|
137345
|
-
const packageJsonPath = (0,
|
|
137345
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_devkit2.joinPathFragments)("packages", context.projectName);
|
|
137346
|
+
const packageJsonPath = (0, import_devkit2.joinPathFragments)(context.root, options.outputPath, "package.json");
|
|
137346
137347
|
writeDebug(config, `\u26A1 Writing package.json file to: ${packageJsonPath}`);
|
|
137347
137348
|
(0, import_node_fs2.writeFileSync)(
|
|
137348
137349
|
packageJsonPath,
|
|
@@ -137474,7 +137475,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
|
137474
137475
|
emitDeclarationOnly: true,
|
|
137475
137476
|
declaration: true,
|
|
137476
137477
|
declarationMap: true,
|
|
137477
|
-
declarationDir: (0,
|
|
137478
|
+
declarationDir: (0, import_devkit2.joinPathFragments)(workspaceRoot, "tmp", ".tsup", "declaration")
|
|
137478
137479
|
}
|
|
137479
137480
|
},
|
|
137480
137481
|
ts.sys,
|
|
@@ -137516,6 +137517,7 @@ var applyDefaultOptions = (options) => {
|
|
|
137516
137517
|
options.assets ??= [];
|
|
137517
137518
|
options.plugins ??= [];
|
|
137518
137519
|
options.includeSrc ??= false;
|
|
137520
|
+
options.minify ??= false;
|
|
137519
137521
|
options.clean ??= true;
|
|
137520
137522
|
options.bundle ??= true;
|
|
137521
137523
|
options.debug ??= false;
|
|
@@ -125,6 +125,11 @@
|
|
|
125
125
|
"description": "A short heading added to the top of each typescript file added in the output folder's `src` directory.",
|
|
126
126
|
"default": "This code was developed by Storm Software (<https://stormsoftware.org>) and is licensed under the Apache License 2.0."
|
|
127
127
|
},
|
|
128
|
+
"minify": {
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"description": "Should the build process minify the output files?",
|
|
131
|
+
"default": false
|
|
132
|
+
},
|
|
128
133
|
"verbose": {
|
|
129
134
|
"type": "boolean",
|
|
130
135
|
"description": "Should write extra log outputs with details from the executor.",
|
|
@@ -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,
|
|
@@ -137547,6 +137548,7 @@ var applyDefaultOptions = (options) => {
|
|
|
137547
137548
|
options.assets ??= [];
|
|
137548
137549
|
options.plugins ??= [];
|
|
137549
137550
|
options.includeSrc ??= false;
|
|
137551
|
+
options.minify ??= false;
|
|
137550
137552
|
options.clean ??= true;
|
|
137551
137553
|
options.bundle ??= true;
|
|
137552
137554
|
options.debug ??= false;
|
|
@@ -137605,6 +137607,7 @@ var modernBrowserConfig = ({
|
|
|
137605
137607
|
plugins,
|
|
137606
137608
|
generatePackageJson,
|
|
137607
137609
|
dtsTsConfig,
|
|
137610
|
+
minify = false,
|
|
137608
137611
|
getTransform
|
|
137609
137612
|
}) => {
|
|
137610
137613
|
const outputPath = (0, import_devkit3.joinPathFragments)(outDir, "dist", "modern");
|
|
@@ -137631,7 +137634,7 @@ var modernBrowserConfig = ({
|
|
|
137631
137634
|
define: define2,
|
|
137632
137635
|
env,
|
|
137633
137636
|
dts: false,
|
|
137634
|
-
minify
|
|
137637
|
+
minify,
|
|
137635
137638
|
experimentalDts: {
|
|
137636
137639
|
entry,
|
|
137637
137640
|
compilerOptions: {
|
|
@@ -137652,7 +137655,7 @@ var modernBrowserConfig = ({
|
|
|
137652
137655
|
outExtension,
|
|
137653
137656
|
getTransform
|
|
137654
137657
|
};
|
|
137655
|
-
if (!debug) {
|
|
137658
|
+
if (!debug || minify) {
|
|
137656
137659
|
options.minify = "terser";
|
|
137657
137660
|
options.terserOptions = {
|
|
137658
137661
|
compress: true,
|
|
@@ -137686,6 +137689,7 @@ var legacyBrowserConfig = ({
|
|
|
137686
137689
|
plugins,
|
|
137687
137690
|
generatePackageJson,
|
|
137688
137691
|
dtsTsConfig,
|
|
137692
|
+
minify = false,
|
|
137689
137693
|
getTransform
|
|
137690
137694
|
}) => {
|
|
137691
137695
|
const outputPath = (0, import_devkit3.joinPathFragments)(outDir, "dist", "legacy");
|
|
@@ -137712,7 +137716,7 @@ var legacyBrowserConfig = ({
|
|
|
137712
137716
|
define: define2,
|
|
137713
137717
|
env,
|
|
137714
137718
|
dts: false,
|
|
137715
|
-
minify
|
|
137719
|
+
minify,
|
|
137716
137720
|
experimentalDts: {
|
|
137717
137721
|
entry,
|
|
137718
137722
|
compilerOptions: {
|
|
@@ -137733,7 +137737,7 @@ var legacyBrowserConfig = ({
|
|
|
137733
137737
|
outExtension,
|
|
137734
137738
|
getTransform
|
|
137735
137739
|
};
|
|
137736
|
-
if (!debug) {
|
|
137740
|
+
if (!debug || minify) {
|
|
137737
137741
|
options.minify = "terser";
|
|
137738
137742
|
options.terserOptions = {
|
|
137739
137743
|
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,
|
|
@@ -137547,6 +137548,7 @@ var applyDefaultOptions = (options) => {
|
|
|
137547
137548
|
options.assets ??= [];
|
|
137548
137549
|
options.plugins ??= [];
|
|
137549
137550
|
options.includeSrc ??= false;
|
|
137551
|
+
options.minify ??= false;
|
|
137550
137552
|
options.clean ??= true;
|
|
137551
137553
|
options.bundle ??= true;
|
|
137552
137554
|
options.debug ??= false;
|
|
@@ -137608,6 +137610,7 @@ var neutralConfig = ({
|
|
|
137608
137610
|
plugins,
|
|
137609
137611
|
generatePackageJson,
|
|
137610
137612
|
dtsTsConfig,
|
|
137613
|
+
minify = false,
|
|
137611
137614
|
getTransform
|
|
137612
137615
|
}) => {
|
|
137613
137616
|
const outputPath = (0, import_devkit3.joinPathFragments)(outDir, "dist");
|
|
@@ -137634,7 +137637,7 @@ var neutralConfig = ({
|
|
|
137634
137637
|
define: define2,
|
|
137635
137638
|
env,
|
|
137636
137639
|
dts: false,
|
|
137637
|
-
minify
|
|
137640
|
+
minify,
|
|
137638
137641
|
experimentalDts: {
|
|
137639
137642
|
entry,
|
|
137640
137643
|
compilerOptions: {
|
|
@@ -137655,7 +137658,7 @@ var neutralConfig = ({
|
|
|
137655
137658
|
outExtension,
|
|
137656
137659
|
getTransform
|
|
137657
137660
|
};
|
|
137658
|
-
if (!debug) {
|
|
137661
|
+
if (!debug || minify) {
|
|
137659
137662
|
options.minify = "terser";
|
|
137660
137663
|
options.terserOptions = {
|
|
137661
137664
|
compress: true,
|