@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.
@@ -73213,7 +73213,7 @@ var require_util5 = __commonJS({
73213
73213
  var normalize2 = createSafeHandler((url) => {
73214
73214
  });
73215
73215
  exports.normalize = normalize2;
73216
- function join3(aRoot, aPath) {
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 = join3;
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 = join3(sourceRoot, url);
73272
+ url = join2(sourceRoot, url);
73273
73273
  if (sourceMapURL)
73274
- url = join3(trimFilename(sourceMapURL), 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: join3 } = require("node:path");
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(join3(__dirname, localName)) ? require(localName) : require(`@rollup/rollup-${packageBase}`);
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 ? "" : join3(e.explore.object)(e.explore.property);
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 join3 = function(object) {
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: join3(options)(components)(extraMeta)
117324
+ additionalProperties: join2(options)(components)(extraMeta)
117325
117325
  } : {});
117326
117326
  };
117327
117327
  };
117328
117328
  };
117329
117329
  };
117330
- var join3 = function(options) {
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: false,
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, import_node_path2.join)(context.root, projectRoot, "package.json");
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, import_node_path2.join)(workspaceRoot, "package.json"));
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, import_node_path2.join)(
137308
+ types: (0, import_devkit2.joinPathFragments)(
137308
137309
  `./${distPaths[0]}`,
137309
137310
  `${removeExtension(entryPoint.replace(sourceRoot, ""))}.d.ts`
137310
137311
  ),
137311
- default: (0, import_node_path2.join)(
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, import_node_path2.join)(distSrc, "index.ts").replaceAll("\\", "/")}`;
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, import_node_path2.join)("packages", context.projectName);
137376
- const packageJsonPath = (0, import_node_path2.join)(context.root, options.outputPath, "package.json");
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, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration")
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 @@ function nodeConfig({
137608
137610
  plugins,
137609
137611
  generatePackageJson,
137610
137612
  dtsTsConfig,
137613
+ minify = false,
137611
137614
  getTransform
137612
137615
  }) {
137613
137616
  const options = {
@@ -137633,7 +137636,7 @@ function nodeConfig({
137633
137636
  define: define2,
137634
137637
  env,
137635
137638
  dts: false,
137636
- minify: false,
137639
+ minify,
137637
137640
  experimentalDts: {
137638
137641
  entry,
137639
137642
  compilerOptions: {
@@ -137654,7 +137657,7 @@ function nodeConfig({
137654
137657
  outExtension,
137655
137658
  getTransform
137656
137659
  };
137657
- if (!debug) {
137660
+ if (!debug || minify) {
137658
137661
  options.minify = "terser";
137659
137662
  options.terserOptions = {
137660
137663
  compress: true,