@storm-software/workspace-tools 1.7.21 → 1.7.23

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.7.21",
3
+ "version": "1.7.23",
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": [
@@ -408390,9 +408390,9 @@ var require_brace_expansion2 = __commonJS({
408390
408390
  }
408391
408391
  });
408392
408392
 
408393
- // node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js
408393
+ // node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js
408394
408394
  var require_chunk_NSPLMNA4 = __commonJS({
408395
- "node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js"(exports) {
408395
+ "node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js"(exports) {
408396
408396
  "use strict";
408397
408397
  Object.defineProperty(exports, "__esModule", { value: true });
408398
408398
  var version = "7.2.0";
@@ -410039,9 +410039,9 @@ var require_resolve_from = __commonJS({
410039
410039
  }
410040
410040
  });
410041
410041
 
410042
- // node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js
410042
+ // node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js
410043
410043
  var require_chunk_B7UJSB4N = __commonJS({
410044
- "node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js"(exports) {
410044
+ "node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js"(exports) {
410045
410045
  "use strict";
410046
410046
  Object.defineProperty(exports, "__esModule", { value: true });
410047
410047
  function _interopRequireDefault(obj) {
@@ -410255,9 +410255,9 @@ var require_chunk_B7UJSB4N = __commonJS({
410255
410255
  }
410256
410256
  });
410257
410257
 
410258
- // node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js
410258
+ // node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js
410259
410259
  var require_chunk_GEVDEBBW = __commonJS({
410260
- "node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js"(exports) {
410260
+ "node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js"(exports) {
410261
410261
  "use strict";
410262
410262
  Object.defineProperty(exports, "__esModule", { value: true });
410263
410263
  function _interopRequireWildcard(obj) {
@@ -411191,9 +411191,9 @@ var require_dist2 = __commonJS({
411191
411191
  }
411192
411192
  });
411193
411193
 
411194
- // node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js
411194
+ // node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js
411195
411195
  var require_chunk_52KWB5QB = __commonJS({
411196
- "node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js"(exports) {
411196
+ "node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js"(exports) {
411197
411197
  "use strict";
411198
411198
  Object.defineProperty(exports, "__esModule", { value: true });
411199
411199
  function _interopRequireDefault(obj) {
@@ -470479,9 +470479,9 @@ var require_chokidar = __commonJS({
470479
470479
  }
470480
470480
  });
470481
470481
 
470482
- // node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js
470482
+ // node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js
470483
470483
  var require_dist5 = __commonJS({
470484
- "node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js"(exports) {
470484
+ "node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js"(exports) {
470485
470485
  "use strict";
470486
470486
  Object.defineProperty(exports, "__esModule", { value: true });
470487
470487
  function _interopRequireDefault(obj) {
@@ -472068,29 +472068,25 @@ var require_dist5 = __commonJS({
472068
472068
  pluginContainer
472069
472069
  }) {
472070
472070
  let pkgPath = options.outDir ? options.outDir : process.cwd();
472071
- logger.info(format2, `\u26A1 Preparing to run ESBuild: ${pkgPath}`);
472071
+ !options.silent && logger.info(format2, `\u26A1 Preparing to run ESBuild: ${pkgPath}`);
472072
472072
  if (pkgPath) {
472073
- const splits = pkgPath.split(_path2.default.sep);
472073
+ const splits = pkgPath.split("/");
472074
472074
  if (splits.length > 0) {
472075
- let pkgPathIndex = -1;
472076
- for (let i = splits.length - 1; i > 0 && pkgPathIndex < 0; i--) {
472075
+ for (let i = 0; i < splits.length - 1; i++) {
472077
472076
  const packageJsonPath = _path2.default.join(
472078
472077
  splits.slice(
472079
472078
  0,
472080
472079
  splits.length - i
472081
- ).join(_path2.default.sep),
472080
+ ).join("/"),
472082
472081
  "package.json"
472083
472082
  );
472084
- logger.info(format2, `\u26A1 Searching for package.json file in ${packageJsonPath} (index: ${i})`);
472083
+ !options.silent && logger.info(format2, `\u26A1 Searching for package.json file in ${packageJsonPath} (index: ${i})`);
472085
472084
  if (_fs2.default.existsSync(packageJsonPath)) {
472086
- logger.info(format2, `\u26A1 Found the package.json file in ${packageJsonPath} (index: ${i})`);
472087
- pkgPathIndex = i;
472085
+ !options.silent && logger.info(format2, `\u26A1 Found the package.json file in ${packageJsonPath} (index: ${i})`);
472086
+ pkgPath = packageJsonPath.replace("package.json", "");
472087
+ break;
472088
472088
  }
472089
472089
  }
472090
- logger.info(format2, `\u26A1 Package path index: ${pkgPathIndex}`);
472091
- if (pkgPathIndex) {
472092
- pkgPath = splits.slice(0, pkgPathIndex).join(_path2.default.sep);
472093
- }
472094
472090
  }
472095
472091
  }
472096
472092
  logger.info(format2, `\u26A1 Running ESBuild: ${pkgPath}`);
@@ -472216,7 +472212,7 @@ var require_dist5 = __commonJS({
472216
472212
  outExtension: options.legacyOutput ? void 0 : outExtension2,
472217
472213
  write: false,
472218
472214
  splitting,
472219
- logLevel: "info",
472215
+ logLevel: options.silent ? "error" : "info",
472220
472216
  minify: options.minify === "terser" ? false : options.minify,
472221
472217
  minifyWhitespace: options.minifyWhitespace,
472222
472218
  minifyIdentifiers: options.minifyIdentifiers,
@@ -479182,6 +479178,7 @@ function modernConfig({
479182
479178
  external,
479183
479179
  banner = {},
479184
479180
  platform = "node",
479181
+ verbose = false,
479185
479182
  options
479186
479183
  }) {
479187
479184
  return {
@@ -479199,7 +479196,7 @@ function modernConfig({
479199
479196
  ] : ["esnext", "node18"],
479200
479197
  tsconfig,
479201
479198
  outDir: (0, import_devkit.joinPathFragments)(outDir, "dist", "modern"),
479202
- silent: false,
479199
+ silent: !verbose,
479203
479200
  metafile: true,
479204
479201
  shims: true,
479205
479202
  minify: false,
@@ -479220,6 +479217,7 @@ function legacyConfig({
479220
479217
  external,
479221
479218
  banner = {},
479222
479219
  platform = "node",
479220
+ verbose = false,
479223
479221
  options
479224
479222
  }) {
479225
479223
  return {
@@ -479229,7 +479227,7 @@ function legacyConfig({
479229
479227
  target: ["es2022", "node18"],
479230
479228
  tsconfig,
479231
479229
  outDir: (0, import_devkit.joinPathFragments)(outDir, "dist", "legacy"),
479232
- silent: false,
479230
+ silent: !verbose,
479233
479231
  metafile: true,
479234
479232
  shims: true,
479235
479233
  minify: false,
@@ -479250,7 +479248,8 @@ function getConfig(sourceRoot, {
479250
479248
  platform,
479251
479249
  external,
479252
479250
  options,
479253
- additionalEntryPoints
479251
+ additionalEntryPoints,
479252
+ verbose
479254
479253
  }) {
479255
479254
  const entry = globSync(
479256
479255
  [
@@ -479275,6 +479274,7 @@ function getConfig(sourceRoot, {
479275
479274
  banner,
479276
479275
  platform,
479277
479276
  external,
479277
+ verbose,
479278
479278
  options
479279
479279
  }),
479280
479280
  legacyConfig({
@@ -479285,6 +479285,7 @@ function getConfig(sourceRoot, {
479285
479285
  banner,
479286
479286
  platform,
479287
479287
  external,
479288
+ verbose,
479288
479289
  options
479289
479290
  })
479290
479291
  ]);
@@ -479315,7 +479316,12 @@ var outExtension = ({ options, format: format2, pkgType }) => {
479315
479316
  // packages/workspace-tools/src/executors/tsup/executor.ts
479316
479317
  async function runExecutor(options, context) {
479317
479318
  try {
479318
- console.log("\u{1F4E6} Running build executor on the workspace");
479319
+ console.log("\u{1F4E6} Running Storm build executor on the workspace");
479320
+ options.verbose && console.log(
479321
+ `\u2699\uFE0F Executor options:
479322
+ ${Object.keys(options).map((key) => `${key}: ${options[key]}`).join("\n")}
479323
+ `
479324
+ );
479319
479325
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
479320
479326
  throw new Error(
479321
479327
  "The Build process failed because the context is not valid. Please run this command from a workspace."
@@ -479329,7 +479335,7 @@ async function runExecutor(options, context) {
479329
479335
  context
479330
479336
  );
479331
479337
  if (options.clean !== false) {
479332
- console.log("\u{1F9F9} Cleaning output path");
479338
+ console.log(`\u{1F9F9} Cleaning output path: ${outputPath}`);
479333
479339
  (0, import_fs_extra.removeSync)(outputPath);
479334
479340
  }
479335
479341
  const assets = Array.from(options.assets);
@@ -479367,6 +479373,10 @@ async function runExecutor(options, context) {
479367
479373
  }
479368
479374
  return acc;
479369
479375
  }, []);
479376
+ options.verbose && console.log(`Added the following external dependencies:
479377
+ ${externalDependencies.map((dep) => {
479378
+ return `name: ${dep.name}, node: ${dep.node}, outputs: ${dep.outputs}`;
479379
+ }).join("\n")}`);
479370
479380
  if (!options.bundle) {
479371
479381
  for (const thirdPartyDependency of (0, import_get_extra_dependencies.getExtraDependencies)(
479372
479382
  context.projectName,
@@ -479448,27 +479458,25 @@ async function runExecutor(options, context) {
479448
479458
  outputPath,
479449
479459
  "package.json"
479450
479460
  );
479451
- if (!packageJsonPath) {
479452
- console.log(`\u26A1 Writing package.json file to: ${packageJsonPath}`);
479453
- (0, import_fs2.writeFileSync)(
479454
- packageJsonPath,
479455
- await (0, import_prettier.format)(JSON.stringify(packageJson), {
479456
- plugins: ["prettier-plugin-packagejson"],
479457
- parser: "json",
479458
- trailingComma: "none",
479459
- tabWidth: 2,
479460
- semi: true,
479461
- singleQuote: false,
479462
- quoteProps: "preserve",
479463
- insertPragma: false,
479464
- bracketSameLine: true,
479465
- printWidth: 80,
479466
- bracketSpacing: true,
479467
- arrowParens: "avoid",
479468
- endOfLine: "lf"
479469
- })
479470
- );
479471
- }
479461
+ console.log(`\u26A1 Writing package.json file to: ${packageJsonPath}`);
479462
+ (0, import_fs2.writeFileSync)(
479463
+ packageJsonPath,
479464
+ await (0, import_prettier.format)(JSON.stringify(packageJson), {
479465
+ plugins: ["prettier-plugin-packagejson"],
479466
+ parser: "json",
479467
+ trailingComma: "none",
479468
+ tabWidth: 2,
479469
+ semi: true,
479470
+ singleQuote: false,
479471
+ quoteProps: "preserve",
479472
+ insertPragma: false,
479473
+ bracketSameLine: true,
479474
+ printWidth: 80,
479475
+ bracketSpacing: true,
479476
+ arrowParens: "avoid",
479477
+ endOfLine: "lf"
479478
+ })
479479
+ );
479472
479480
  const banner = options.banner ? options.banner : process.env.STORM_TS_FILE_HEADING;
479473
479481
  if (banner) {
479474
479482
  const files = globSync([
@@ -479496,7 +479504,7 @@ ${(0, import_fs2.readFileSync)(file, "utf-8")}`,
479496
479504
  });
479497
479505
  const config = getConfig(sourceRoot, {
479498
479506
  ...options,
479499
- banner: { js: `// ${banner}`, css: `/* ${banner} */` },
479507
+ banner: banner ? { js: `// ${banner}`, css: `/* ${banner} */` } : void 0,
479500
479508
  outputPath
479501
479509
  });
479502
479510
  if (typeof config === "function") {
@@ -479516,7 +479524,7 @@ ${(0, import_fs2.readFileSync)(file, "utf-8")}`,
479516
479524
  }
479517
479525
  }
479518
479526
  var build = async (options) => {
479519
- console.log("\u2699\uFE0F Tsup build config: \n", options);
479527
+ Array.isArray(options) ? options.length > 0 ? options[0].silent : false : options.silent && console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
479520
479528
  if (Array.isArray(options)) {
479521
479529
  await Promise.all(options.map((buildOptions) => (0, import_tsup2.build)(buildOptions)));
479522
479530
  } else {
@@ -18383,9 +18383,9 @@ var require_brace_expansion2 = __commonJS({
18383
18383
  }
18384
18384
  });
18385
18385
 
18386
- // node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js
18386
+ // node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js
18387
18387
  var require_chunk_NSPLMNA4 = __commonJS({
18388
- "node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js"(exports) {
18388
+ "node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js"(exports) {
18389
18389
  "use strict";
18390
18390
  Object.defineProperty(exports, "__esModule", { value: true });
18391
18391
  var version = "7.2.0";
@@ -24319,9 +24319,9 @@ var require_resolve_from = __commonJS({
24319
24319
  }
24320
24320
  });
24321
24321
 
24322
- // node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js
24322
+ // node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js
24323
24323
  var require_chunk_B7UJSB4N = __commonJS({
24324
- "node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js"(exports) {
24324
+ "node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js"(exports) {
24325
24325
  "use strict";
24326
24326
  Object.defineProperty(exports, "__esModule", { value: true });
24327
24327
  function _interopRequireDefault(obj) {
@@ -24535,9 +24535,9 @@ var require_chunk_B7UJSB4N = __commonJS({
24535
24535
  }
24536
24536
  });
24537
24537
 
24538
- // node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js
24538
+ // node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js
24539
24539
  var require_chunk_GEVDEBBW = __commonJS({
24540
- "node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js"(exports) {
24540
+ "node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js"(exports) {
24541
24541
  "use strict";
24542
24542
  Object.defineProperty(exports, "__esModule", { value: true });
24543
24543
  function _interopRequireWildcard(obj) {
@@ -25471,9 +25471,9 @@ var require_dist2 = __commonJS({
25471
25471
  }
25472
25472
  });
25473
25473
 
25474
- // node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js
25474
+ // node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js
25475
25475
  var require_chunk_52KWB5QB = __commonJS({
25476
- "node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js"(exports) {
25476
+ "node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js"(exports) {
25477
25477
  "use strict";
25478
25478
  Object.defineProperty(exports, "__esModule", { value: true });
25479
25479
  function _interopRequireDefault(obj) {
@@ -87142,9 +87142,9 @@ var require_chokidar = __commonJS({
87142
87142
  }
87143
87143
  });
87144
87144
 
87145
- // node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js
87145
+ // node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js
87146
87146
  var require_dist5 = __commonJS({
87147
- "node_modules/.pnpm/tsup@7.2.0_patch_hash=36if3rnyedgwbeoukxouep2kf4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js"(exports) {
87147
+ "node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js"(exports) {
87148
87148
  "use strict";
87149
87149
  Object.defineProperty(exports, "__esModule", { value: true });
87150
87150
  function _interopRequireDefault(obj) {
@@ -88731,29 +88731,25 @@ var require_dist5 = __commonJS({
88731
88731
  pluginContainer
88732
88732
  }) {
88733
88733
  let pkgPath = options.outDir ? options.outDir : process.cwd();
88734
- logger.info(format, `\u26A1 Preparing to run ESBuild: ${pkgPath}`);
88734
+ !options.silent && logger.info(format, `\u26A1 Preparing to run ESBuild: ${pkgPath}`);
88735
88735
  if (pkgPath) {
88736
- const splits = pkgPath.split(_path2.default.sep);
88736
+ const splits = pkgPath.split("/");
88737
88737
  if (splits.length > 0) {
88738
- let pkgPathIndex = -1;
88739
- for (let i = splits.length - 1; i > 0 && pkgPathIndex < 0; i--) {
88738
+ for (let i = 0; i < splits.length - 1; i++) {
88740
88739
  const packageJsonPath = _path2.default.join(
88741
88740
  splits.slice(
88742
88741
  0,
88743
88742
  splits.length - i
88744
- ).join(_path2.default.sep),
88743
+ ).join("/"),
88745
88744
  "package.json"
88746
88745
  );
88747
- logger.info(format, `\u26A1 Searching for package.json file in ${packageJsonPath} (index: ${i})`);
88746
+ !options.silent && logger.info(format, `\u26A1 Searching for package.json file in ${packageJsonPath} (index: ${i})`);
88748
88747
  if (_fs2.default.existsSync(packageJsonPath)) {
88749
- logger.info(format, `\u26A1 Found the package.json file in ${packageJsonPath} (index: ${i})`);
88750
- pkgPathIndex = i;
88748
+ !options.silent && logger.info(format, `\u26A1 Found the package.json file in ${packageJsonPath} (index: ${i})`);
88749
+ pkgPath = packageJsonPath.replace("package.json", "");
88750
+ break;
88751
88751
  }
88752
88752
  }
88753
- logger.info(format, `\u26A1 Package path index: ${pkgPathIndex}`);
88754
- if (pkgPathIndex) {
88755
- pkgPath = splits.slice(0, pkgPathIndex).join(_path2.default.sep);
88756
- }
88757
88753
  }
88758
88754
  }
88759
88755
  logger.info(format, `\u26A1 Running ESBuild: ${pkgPath}`);
@@ -88879,7 +88875,7 @@ var require_dist5 = __commonJS({
88879
88875
  outExtension: options.legacyOutput ? void 0 : outExtension2,
88880
88876
  write: false,
88881
88877
  splitting,
88882
- logLevel: "info",
88878
+ logLevel: options.silent ? "error" : "info",
88883
88879
  minify: options.minify === "terser" ? false : options.minify,
88884
88880
  minifyWhitespace: options.minifyWhitespace,
88885
88881
  minifyIdentifiers: options.minifyIdentifiers,
@@ -95790,6 +95786,7 @@ function modernConfig({
95790
95786
  external,
95791
95787
  banner = {},
95792
95788
  platform = "node",
95789
+ verbose = false,
95793
95790
  options
95794
95791
  }) {
95795
95792
  return {
@@ -95807,7 +95804,7 @@ function modernConfig({
95807
95804
  ] : ["esnext", "node18"],
95808
95805
  tsconfig,
95809
95806
  outDir: (0, import_devkit.joinPathFragments)(outDir, "dist", "modern"),
95810
- silent: false,
95807
+ silent: !verbose,
95811
95808
  metafile: true,
95812
95809
  shims: true,
95813
95810
  minify: false,
@@ -95828,6 +95825,7 @@ function legacyConfig({
95828
95825
  external,
95829
95826
  banner = {},
95830
95827
  platform = "node",
95828
+ verbose = false,
95831
95829
  options
95832
95830
  }) {
95833
95831
  return {
@@ -95837,7 +95835,7 @@ function legacyConfig({
95837
95835
  target: ["es2022", "node18"],
95838
95836
  tsconfig,
95839
95837
  outDir: (0, import_devkit.joinPathFragments)(outDir, "dist", "legacy"),
95840
- silent: false,
95838
+ silent: !verbose,
95841
95839
  metafile: true,
95842
95840
  shims: true,
95843
95841
  minify: false,
@@ -95858,7 +95856,8 @@ function getConfig(sourceRoot, {
95858
95856
  platform,
95859
95857
  external,
95860
95858
  options,
95861
- additionalEntryPoints
95859
+ additionalEntryPoints,
95860
+ verbose
95862
95861
  }) {
95863
95862
  const entry = globSync(
95864
95863
  [
@@ -95883,6 +95882,7 @@ function getConfig(sourceRoot, {
95883
95882
  banner,
95884
95883
  platform,
95885
95884
  external,
95885
+ verbose,
95886
95886
  options
95887
95887
  }),
95888
95888
  legacyConfig({
@@ -95893,6 +95893,7 @@ function getConfig(sourceRoot, {
95893
95893
  banner,
95894
95894
  platform,
95895
95895
  external,
95896
+ verbose,
95896
95897
  options
95897
95898
  })
95898
95899
  ]);
@@ -20,4 +20,5 @@ export type TsupExecutorSchema = Omit<
20
20
  clean: boolean;
21
21
  debug: boolean;
22
22
  banner?: string;
23
+ verbose: boolean;
23
24
  };
@@ -76,6 +76,11 @@
76
76
  "description": "A short heading added to the top of each typescript file added in the output folder's src directory.",
77
77
  "default": "This code was developed by Storm Software (https://stormsoftware.org) and is licensed under the Apache License 2.0."
78
78
  },
79
+ "verbose": {
80
+ "type": "boolean",
81
+ "description": "Should write extra log outputs with details from the executor.",
82
+ "default": false
83
+ },
79
84
  "options": {
80
85
  "type": "object",
81
86
  "description": "Additional options to pass to tsup. See https://paka.dev/npm/tsup@7.2.0/api#d35d54aca71eb26e.",