@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.43.18",
3
+ "version": "1.43.20",
4
4
  "private": false,
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "keywords": [
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: false,
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 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;
@@ -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: false,
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, import_node_path2.join)(context.root, projectRoot, "package.json");
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, import_node_path2.join)(workspaceRoot, "package.json"));
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, import_node_path2.join)(
137277
+ types: (0, import_devkit2.joinPathFragments)(
137277
137278
  `./${distPaths[0]}`,
137278
137279
  `${removeExtension(entryPoint.replace(sourceRoot, ""))}.d.ts`
137279
137280
  ),
137280
- default: (0, import_node_path2.join)(
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, import_node_path2.join)(distSrc, "index.ts").replaceAll("\\", "/")}`;
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, import_node_path2.join)("packages", context.projectName);
137345
- const packageJsonPath = (0, import_node_path2.join)(context.root, options.outputPath, "package.json");
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, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration")
137478
+ declarationDir: (0, import_devkit2.joinPathFragments)(workspaceRoot, "tmp", ".tsup", "declaration")
137478
137479
  }
137479
137480
  },
137480
137481
  ts.sys,
@@ -137487,18 +137488,13 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
137487
137488
  return tsConfig;
137488
137489
  }
137489
137490
  var build = async (options, config) => {
137490
- try {
137491
- if (Array.isArray(options)) {
137492
- await Promise.all(options.map((buildOptions) => build(buildOptions, config)));
137493
- } else {
137494
- if (getLogLevel(config?.logLevel) >= LogLevel.TRACE && !options.silent) {
137495
- console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
137496
- }
137497
- await (0, import_tsup.build)(options);
137491
+ if (Array.isArray(options)) {
137492
+ await Promise.all(options.map((buildOptions) => build(buildOptions, config)));
137493
+ } else {
137494
+ if (getLogLevel(config?.logLevel) >= LogLevel.TRACE && !options.silent) {
137495
+ console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
137498
137496
  }
137499
- } catch (e) {
137500
- console.error("\u26A0\uFE0F A failure occured during the Tsup Build executor");
137501
- console.error(e);
137497
+ await (0, import_tsup.build)(options);
137502
137498
  }
137503
137499
  };
137504
137500
  var applyDefaultOptions = (options) => {
@@ -137516,6 +137512,7 @@ var applyDefaultOptions = (options) => {
137516
137512
  options.assets ??= [];
137517
137513
  options.plugins ??= [];
137518
137514
  options.includeSrc ??= false;
137515
+ options.minify ??= false;
137519
137516
  options.clean ??= true;
137520
137517
  options.bundle ??= true;
137521
137518
  options.debug ??= false;
@@ -44,5 +44,6 @@ export type TsupExecutorSchema = Omit<
44
44
  | ((params: GetConfigParams) => Options);
45
45
  format?: string[];
46
46
  metafile?: boolean;
47
+ minify?: boolean;
47
48
  skipTypia?: boolean;
48
49
  };
@@ -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 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,
@@ -137518,18 +137519,13 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
137518
137519
  return tsConfig;
137519
137520
  }
137520
137521
  var build = async (options, config) => {
137521
- try {
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");
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
- } catch (e) {
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;
@@ -137605,6 +137602,7 @@ var modernBrowserConfig = ({
137605
137602
  plugins,
137606
137603
  generatePackageJson,
137607
137604
  dtsTsConfig,
137605
+ minify = false,
137608
137606
  getTransform
137609
137607
  }) => {
137610
137608
  const outputPath = (0, import_devkit3.joinPathFragments)(outDir, "dist", "modern");
@@ -137631,7 +137629,7 @@ var modernBrowserConfig = ({
137631
137629
  define: define2,
137632
137630
  env,
137633
137631
  dts: false,
137634
- minify: false,
137632
+ minify,
137635
137633
  experimentalDts: {
137636
137634
  entry,
137637
137635
  compilerOptions: {
@@ -137652,7 +137650,7 @@ var modernBrowserConfig = ({
137652
137650
  outExtension,
137653
137651
  getTransform
137654
137652
  };
137655
- if (!debug) {
137653
+ if (!debug || minify) {
137656
137654
  options.minify = "terser";
137657
137655
  options.terserOptions = {
137658
137656
  compress: true,
@@ -137686,6 +137684,7 @@ var legacyBrowserConfig = ({
137686
137684
  plugins,
137687
137685
  generatePackageJson,
137688
137686
  dtsTsConfig,
137687
+ minify = false,
137689
137688
  getTransform
137690
137689
  }) => {
137691
137690
  const outputPath = (0, import_devkit3.joinPathFragments)(outDir, "dist", "legacy");
@@ -137712,7 +137711,7 @@ var legacyBrowserConfig = ({
137712
137711
  define: define2,
137713
137712
  env,
137714
137713
  dts: false,
137715
- minify: false,
137714
+ minify,
137716
137715
  experimentalDts: {
137717
137716
  entry,
137718
137717
  compilerOptions: {
@@ -137733,7 +137732,7 @@ var legacyBrowserConfig = ({
137733
137732
  outExtension,
137734
137733
  getTransform
137735
137734
  };
137736
- if (!debug) {
137735
+ if (!debug || minify) {
137737
137736
  options.minify = "terser";
137738
137737
  options.terserOptions = {
137739
137738
  compress: true,