@storm-software/workspace-tools 1.134.0 → 1.134.2

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.134.0",
3
+ "version": "1.134.2",
4
4
  "type": "commonjs",
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "repository": {
@@ -68204,6 +68204,7 @@ __export(executor_exports, {
68204
68204
  tsupExecutorFn: () => tsupExecutorFn
68205
68205
  });
68206
68206
  module.exports = __toCommonJS(executor_exports);
68207
+ var import_build_tools = require("@storm-software/build-tools");
68207
68208
 
68208
68209
  // packages/workspace-tools/src/base/base-executor.ts
68209
68210
  init_src2();
@@ -68387,25 +68388,15 @@ var _isFunction2 = (value2) => {
68387
68388
  };
68388
68389
 
68389
68390
  // packages/workspace-tools/src/executors/tsup/executor.ts
68390
- var import_build_tools = require("@storm-software/build-tools");
68391
- var import_build_tools2 = require("@storm-software/build-tools");
68392
68391
  async function tsupExecutorFn(options, context, config) {
68393
- const { writeDebug: writeDebug2, writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
68392
+ const { writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
68394
68393
  writeInfo2("\u{1F4E6} Running Storm build executor on the workspace", config);
68395
- writeDebug2(
68396
- `\u2699\uFE0F Executor options:
68397
- ${Object.keys(options).map(
68398
- (key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
68399
- ).join("\n")}
68400
- `,
68401
- config
68402
- );
68403
68394
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
68404
68395
  throw new Error(
68405
68396
  "The Build process failed because the context is not valid. Please run this command from a workspace."
68406
68397
  );
68407
68398
  }
68408
- await (0, import_build_tools2.build)(config, {
68399
+ await (0, import_build_tools.build)(config, {
68409
68400
  ...options,
68410
68401
  projectRoot: context.projectsConfigurations.projects?.[context.projectName]?.root,
68411
68402
  projectName: context.projectName,
@@ -68426,20 +68417,6 @@ var executor_default = withRunExecutor(
68426
68417
  }
68427
68418
  }
68428
68419
  );
68429
- var _isPrimitive = (value2) => {
68430
- try {
68431
- return value2 === void 0 || value2 === null || typeof value2 !== "object" && typeof value2 !== "function";
68432
- } catch (e2) {
68433
- return false;
68434
- }
68435
- };
68436
- var _isFunction3 = (value2) => {
68437
- try {
68438
- return value2 instanceof Function || typeof value2 === "function" || !!(value2?.constructor && value2?.call && value2?.apply);
68439
- } catch (e2) {
68440
- return false;
68441
- }
68442
- };
68443
68420
  // Annotate the CommonJS export names for ESM import in node:
68444
68421
  0 && (module.exports = {
68445
68422
  tsupExecutorFn
@@ -68388,24 +68388,15 @@ var _isFunction2 = (value2) => {
68388
68388
 
68389
68389
  // packages/workspace-tools/src/executors/tsup/executor.ts
68390
68390
  var import_build_tools = require("@storm-software/build-tools");
68391
- var import_build_tools2 = require("@storm-software/build-tools");
68392
68391
  async function tsupExecutorFn(options, context, config) {
68393
- const { writeDebug: writeDebug2, writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
68392
+ const { writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
68394
68393
  writeInfo2("\u{1F4E6} Running Storm build executor on the workspace", config);
68395
- writeDebug2(
68396
- `\u2699\uFE0F Executor options:
68397
- ${Object.keys(options).map(
68398
- (key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
68399
- ).join("\n")}
68400
- `,
68401
- config
68402
- );
68403
68394
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
68404
68395
  throw new Error(
68405
68396
  "The Build process failed because the context is not valid. Please run this command from a workspace."
68406
68397
  );
68407
68398
  }
68408
- await (0, import_build_tools2.build)(config, {
68399
+ await (0, import_build_tools.build)(config, {
68409
68400
  ...options,
68410
68401
  projectRoot: context.projectsConfigurations.projects?.[context.projectName]?.root,
68411
68402
  projectName: context.projectName,
@@ -68426,29 +68417,15 @@ var executor_default = withRunExecutor(
68426
68417
  }
68427
68418
  }
68428
68419
  );
68429
- var _isPrimitive = (value2) => {
68430
- try {
68431
- return value2 === void 0 || value2 === null || typeof value2 !== "object" && typeof value2 !== "function";
68432
- } catch (e2) {
68433
- return false;
68434
- }
68435
- };
68436
- var _isFunction3 = (value2) => {
68437
- try {
68438
- return value2 instanceof Function || typeof value2 === "function" || !!(value2?.constructor && value2?.call && value2?.apply);
68439
- } catch (e2) {
68440
- return false;
68441
- }
68442
- };
68443
68420
 
68444
68421
  // packages/workspace-tools/src/executors/tsup-browser/executor.ts
68445
- var import_build_tools3 = require("@storm-software/build-tools");
68422
+ var import_build_tools2 = require("@storm-software/build-tools");
68446
68423
  var tsupBrowserBuildExecutorFn = (options, context, config) => {
68447
68424
  return tsupExecutorFn(
68448
68425
  {
68449
68426
  ...options,
68450
68427
  platform: "browser",
68451
- banner: (0, import_build_tools3.getFileBanner)(
68428
+ banner: (0, import_build_tools2.getFileBanner)(
68452
68429
  context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s2) => s2.trim()).filter((s2) => !!s2).map((s2) => s2 ? s2.toUpperCase()[0] + s2.toLowerCase().slice(1) : "").join(" ") : "TypeScript (Browser Platforms)"
68453
68430
  ),
68454
68431
  define: {
@@ -68457,7 +68434,7 @@ var tsupBrowserBuildExecutorFn = (options, context, config) => {
68457
68434
  env: {
68458
68435
  ...process.env
68459
68436
  },
68460
- getConfig: import_build_tools3.browserConfig
68437
+ getConfig: import_build_tools2.browserConfig
68461
68438
  },
68462
68439
  context,
68463
68440
  config
@@ -68471,12 +68448,12 @@ var executor_default2 = withRunExecutor(
68471
68448
  hooks: {
68472
68449
  applyDefaultOptions: (options) => {
68473
68450
  return {
68474
- ...(0, import_build_tools3.applyDefaultOptions)({
68451
+ ...(0, import_build_tools2.applyDefaultOptions)({
68475
68452
  plugins: [],
68476
68453
  ...options,
68477
68454
  platform: "browser"
68478
68455
  }),
68479
- getConfig: import_build_tools3.browserConfig
68456
+ getConfig: import_build_tools2.browserConfig
68480
68457
  };
68481
68458
  }
68482
68459
  }
@@ -68387,28 +68387,19 @@ var _isFunction2 = (value2) => {
68387
68387
  };
68388
68388
 
68389
68389
  // packages/workspace-tools/src/executors/tsup-neutral/executor.ts
68390
- var import_build_tools3 = require("@storm-software/build-tools");
68390
+ var import_build_tools2 = require("@storm-software/build-tools");
68391
68391
 
68392
68392
  // packages/workspace-tools/src/executors/tsup/executor.ts
68393
68393
  var import_build_tools = require("@storm-software/build-tools");
68394
- var import_build_tools2 = require("@storm-software/build-tools");
68395
68394
  async function tsupExecutorFn(options, context, config) {
68396
- const { writeDebug: writeDebug2, writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
68395
+ const { writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
68397
68396
  writeInfo2("\u{1F4E6} Running Storm build executor on the workspace", config);
68398
- writeDebug2(
68399
- `\u2699\uFE0F Executor options:
68400
- ${Object.keys(options).map(
68401
- (key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
68402
- ).join("\n")}
68403
- `,
68404
- config
68405
- );
68406
68397
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
68407
68398
  throw new Error(
68408
68399
  "The Build process failed because the context is not valid. Please run this command from a workspace."
68409
68400
  );
68410
68401
  }
68411
- await (0, import_build_tools2.build)(config, {
68402
+ await (0, import_build_tools.build)(config, {
68412
68403
  ...options,
68413
68404
  projectRoot: context.projectsConfigurations.projects?.[context.projectName]?.root,
68414
68405
  projectName: context.projectName,
@@ -68429,20 +68420,6 @@ var executor_default = withRunExecutor(
68429
68420
  }
68430
68421
  }
68431
68422
  );
68432
- var _isPrimitive = (value2) => {
68433
- try {
68434
- return value2 === void 0 || value2 === null || typeof value2 !== "object" && typeof value2 !== "function";
68435
- } catch (e2) {
68436
- return false;
68437
- }
68438
- };
68439
- var _isFunction3 = (value2) => {
68440
- try {
68441
- return value2 instanceof Function || typeof value2 === "function" || !!(value2?.constructor && value2?.call && value2?.apply);
68442
- } catch (e2) {
68443
- return false;
68444
- }
68445
- };
68446
68423
 
68447
68424
  // packages/workspace-tools/src/executors/tsup-neutral/executor.ts
68448
68425
  var tsupNeutralBuildExecutorFn = (options, context, config) => {
@@ -68450,7 +68427,7 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
68450
68427
  {
68451
68428
  ...options,
68452
68429
  platform: "neutral",
68453
- banner: (0, import_build_tools3.getFileBanner)(
68430
+ banner: (0, import_build_tools2.getFileBanner)(
68454
68431
  context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s2) => s2.trim()).filter((s2) => !!s2).map(
68455
68432
  (s2) => s2 ? s2.toUpperCase()[0] + s2.toLowerCase().slice(1) : ""
68456
68433
  ).join(" ") : "TypeScript (Neutral Platform)"
@@ -68462,7 +68439,7 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
68462
68439
  env: {
68463
68440
  ...process.env
68464
68441
  },
68465
- getConfig: import_build_tools3.neutralConfig
68442
+ getConfig: import_build_tools2.neutralConfig
68466
68443
  },
68467
68444
  context,
68468
68445
  config
@@ -68476,12 +68453,12 @@ var executor_default2 = withRunExecutor(
68476
68453
  hooks: {
68477
68454
  applyDefaultOptions: (options) => {
68478
68455
  return {
68479
- ...(0, import_build_tools3.applyDefaultOptions)({
68456
+ ...(0, import_build_tools2.applyDefaultOptions)({
68480
68457
  plugins: [],
68481
68458
  ...options,
68482
68459
  platform: "neutral"
68483
68460
  }),
68484
- getConfig: import_build_tools3.neutralConfig
68461
+ getConfig: import_build_tools2.neutralConfig
68485
68462
  };
68486
68463
  }
68487
68464
  }
@@ -68388,24 +68388,15 @@ var _isFunction2 = (value2) => {
68388
68388
 
68389
68389
  // packages/workspace-tools/src/executors/tsup/executor.ts
68390
68390
  var import_build_tools = require("@storm-software/build-tools");
68391
- var import_build_tools2 = require("@storm-software/build-tools");
68392
68391
  async function tsupExecutorFn(options, context, config) {
68393
- const { writeDebug: writeDebug2, writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
68392
+ const { writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
68394
68393
  writeInfo2("\u{1F4E6} Running Storm build executor on the workspace", config);
68395
- writeDebug2(
68396
- `\u2699\uFE0F Executor options:
68397
- ${Object.keys(options).map(
68398
- (key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
68399
- ).join("\n")}
68400
- `,
68401
- config
68402
- );
68403
68394
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
68404
68395
  throw new Error(
68405
68396
  "The Build process failed because the context is not valid. Please run this command from a workspace."
68406
68397
  );
68407
68398
  }
68408
- await (0, import_build_tools2.build)(config, {
68399
+ await (0, import_build_tools.build)(config, {
68409
68400
  ...options,
68410
68401
  projectRoot: context.projectsConfigurations.projects?.[context.projectName]?.root,
68411
68402
  projectName: context.projectName,
@@ -68426,29 +68417,15 @@ var executor_default = withRunExecutor(
68426
68417
  }
68427
68418
  }
68428
68419
  );
68429
- var _isPrimitive = (value2) => {
68430
- try {
68431
- return value2 === void 0 || value2 === null || typeof value2 !== "object" && typeof value2 !== "function";
68432
- } catch (e2) {
68433
- return false;
68434
- }
68435
- };
68436
- var _isFunction3 = (value2) => {
68437
- try {
68438
- return value2 instanceof Function || typeof value2 === "function" || !!(value2?.constructor && value2?.call && value2?.apply);
68439
- } catch (e2) {
68440
- return false;
68441
- }
68442
- };
68443
68420
 
68444
68421
  // packages/workspace-tools/src/executors/tsup-node/executor.ts
68445
- var import_build_tools3 = require("@storm-software/build-tools");
68422
+ var import_build_tools2 = require("@storm-software/build-tools");
68446
68423
  var tsupNodeBuildExecutorFn = (options, context, config) => {
68447
68424
  return tsupExecutorFn(
68448
68425
  {
68449
68426
  ...options,
68450
68427
  platform: "node",
68451
- banner: (0, import_build_tools3.getFileBanner)(
68428
+ banner: (0, import_build_tools2.getFileBanner)(
68452
68429
  context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s2) => s2.trim()).filter((s2) => !!s2).map((s2) => s2 ? s2.toUpperCase()[0] + s2.toLowerCase().slice(1) : "").join(" ") : "TypeScript (NodeJs Platform)"
68453
68430
  ),
68454
68431
  define: {
@@ -68457,7 +68434,7 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
68457
68434
  env: {
68458
68435
  ...process.env
68459
68436
  },
68460
- getConfig: import_build_tools3.nodeConfig
68437
+ getConfig: import_build_tools2.nodeConfig
68461
68438
  },
68462
68439
  context,
68463
68440
  config
@@ -68471,12 +68448,12 @@ var executor_default2 = withRunExecutor(
68471
68448
  hooks: {
68472
68449
  applyDefaultOptions: (options) => {
68473
68450
  return {
68474
- ...(0, import_build_tools3.applyDefaultOptions)({
68451
+ ...(0, import_build_tools2.applyDefaultOptions)({
68475
68452
  plugins: [],
68476
68453
  ...options,
68477
68454
  platform: "node"
68478
68455
  }),
68479
- getConfig: import_build_tools3.nodeConfig,
68456
+ getConfig: import_build_tools2.nodeConfig,
68480
68457
  transports: ["pino-pretty", "pino-loki"]
68481
68458
  };
68482
68459
  }