@storm-software/workspace-tools 1.236.0 → 1.237.0

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.
Files changed (131) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-SGU5DQPK.js → chunk-376H4FPQ.js} +2 -2
  4. package/dist/{chunk-EFW3QYJ6.js → chunk-5H2MAX6J.js} +2 -2
  5. package/dist/{chunk-HGS743HN.js → chunk-6JJRTIJE.js} +2 -2
  6. package/dist/{chunk-DXI4NLLG.js → chunk-B56EPXXD.js} +31 -31
  7. package/dist/{chunk-R7LPJA7B.js → chunk-BEQ7SG6P.js} +2 -2
  8. package/dist/{chunk-RENOUPVD.mjs → chunk-BWUHOT6F.mjs} +15 -8
  9. package/dist/{chunk-Y6LAHFQL.js → chunk-CGDGEBZS.js} +2 -2
  10. package/dist/{chunk-WHFR5DFC.js → chunk-COE4MDQZ.js} +17 -17
  11. package/dist/{chunk-AAFUDPY3.js → chunk-CT2M6P5R.js} +11 -11
  12. package/dist/{chunk-MD3SSS3I.js → chunk-EF2AYADZ.js} +2 -2
  13. package/dist/{chunk-CZJW5H5T.mjs → chunk-FZI3TKFY.mjs} +4 -8
  14. package/dist/{chunk-ZW7MPYNT.js → chunk-G4RFND4J.js} +5 -5
  15. package/dist/{chunk-EGVA5PP4.mjs → chunk-GO4TPJGC.mjs} +1 -1
  16. package/dist/{chunk-JNBBP3XY.mjs → chunk-HFYUSCRU.mjs} +1 -1
  17. package/dist/{chunk-2EGD2QSN.js → chunk-IWCQL3AQ.js} +4 -8
  18. package/dist/{chunk-TRN4HIGQ.mjs → chunk-KD5LMZ2A.mjs} +2 -2
  19. package/dist/{chunk-5A2SMUAH.js → chunk-KM2743VP.js} +5 -5
  20. package/dist/{chunk-OQA7D4YP.mjs → chunk-KM2H5RYL.mjs} +1 -1
  21. package/dist/{chunk-AARL4ARR.mjs → chunk-LCGEM7Q4.mjs} +1 -1
  22. package/dist/{chunk-SCINGDII.js → chunk-M3X4P6AT.js} +15 -8
  23. package/dist/{chunk-SKHELRGB.mjs → chunk-MKWGJTCZ.mjs} +1 -1
  24. package/dist/{chunk-5ORRKBYL.js → chunk-MVFTFAFJ.js} +41 -41
  25. package/dist/{chunk-BVOY5ZPI.mjs → chunk-NOGV45XZ.mjs} +1 -1
  26. package/dist/{chunk-XWTEAECW.js → chunk-PJVQQPVY.js} +2 -2
  27. package/dist/{chunk-IOCGVIIK.mjs → chunk-Q3EM343U.mjs} +12 -16
  28. package/dist/{chunk-IYCUBLGZ.mjs → chunk-QDMY7CT5.mjs} +2 -2
  29. package/dist/{chunk-K5Q4B5PP.js → chunk-QIE4V5VC.js} +15 -15
  30. package/dist/{chunk-CR3474CZ.js → chunk-QJSB767L.js} +9 -9
  31. package/dist/{chunk-OVHQ2TQ4.mjs → chunk-QNPWZQ3H.mjs} +3 -3
  32. package/dist/{chunk-RF5FJZO3.mjs → chunk-RHYFYBYC.mjs} +1 -1
  33. package/dist/{chunk-VF3E6O7Z.js → chunk-SEZJIRER.js} +20 -24
  34. package/dist/{chunk-Y4VMFPV4.mjs → chunk-TUB644GP.mjs} +1 -1
  35. package/dist/{chunk-O5Z6RPC6.mjs → chunk-UTSK4MXW.mjs} +1 -1
  36. package/dist/{chunk-PQVWSBEG.js → chunk-V5JX4ONQ.js} +2 -2
  37. package/dist/{chunk-N7SOH3SO.mjs → chunk-VPZNFU57.mjs} +5 -2
  38. package/dist/{chunk-6CGXYDNY.mjs → chunk-VXCCFT5N.mjs} +1 -1
  39. package/dist/{chunk-CF5MRW36.mjs → chunk-WISLBMNQ.mjs} +3 -3
  40. package/dist/{chunk-DPZGOT3C.js → chunk-XOXDKSS6.js} +2 -2
  41. package/dist/{chunk-NSVH52UL.mjs → chunk-XYFHKZNM.mjs} +1 -1
  42. package/dist/{chunk-UXAZCLME.mjs → chunk-ZOE6ZUZK.mjs} +2 -2
  43. package/dist/{chunk-G4SRVNXB.mjs → chunk-ZQMYL7BB.mjs} +1 -1
  44. package/dist/{chunk-U3J3WWUI.js → chunk-ZSONE7KT.js} +7 -4
  45. package/dist/{executor-wWkM11v5.d.ts → executor-B4MiexNw.d.ts} +6 -10
  46. package/dist/{executor-sYaxQf5n.d.ts → executor-BqpvCbj5.d.ts} +0 -4
  47. package/dist/{executor-DlTSIchw.d.ts → executor-C8vSwRW1.d.ts} +0 -4
  48. package/dist/{executor-BSXWmnE3.d.mts → executor-CqbWU1uP.d.mts} +6 -10
  49. package/dist/{executor-C5AtaKvj.d.mts → executor-hq_H_ICT.d.mts} +0 -4
  50. package/dist/{executor-B8unq_QL.d.mts → executor-qCehbH9x.d.mts} +0 -4
  51. package/dist/executors.d.mts +3 -3
  52. package/dist/executors.d.ts +3 -3
  53. package/dist/executors.js +15 -15
  54. package/dist/executors.mjs +16 -16
  55. package/dist/generators.js +9 -9
  56. package/dist/generators.mjs +8 -8
  57. package/dist/index.d.mts +3 -3
  58. package/dist/index.d.ts +3 -3
  59. package/dist/index.js +23 -23
  60. package/dist/index.mjs +24 -24
  61. package/dist/src/base/base-executor.js +3 -3
  62. package/dist/src/base/base-executor.mjs +2 -2
  63. package/dist/src/base/base-generator.js +3 -3
  64. package/dist/src/base/base-generator.mjs +2 -2
  65. package/dist/src/base/index.js +5 -5
  66. package/dist/src/base/index.mjs +4 -4
  67. package/dist/src/base/typescript-build-executor.schema.d.ts +0 -4
  68. package/dist/src/base/typescript-build-executor.schema.json +4 -12
  69. package/dist/src/base/typescript-build-executor.schema.md +0 -4
  70. package/dist/src/base/typescript-build-executor.untyped.js +2 -2
  71. package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
  72. package/dist/src/executors/cargo-build/executor.js +4 -4
  73. package/dist/src/executors/cargo-build/executor.mjs +3 -3
  74. package/dist/src/executors/cargo-check/executor.js +4 -4
  75. package/dist/src/executors/cargo-check/executor.mjs +3 -3
  76. package/dist/src/executors/cargo-clippy/executor.js +4 -4
  77. package/dist/src/executors/cargo-clippy/executor.mjs +3 -3
  78. package/dist/src/executors/cargo-doc/executor.js +4 -4
  79. package/dist/src/executors/cargo-doc/executor.mjs +3 -3
  80. package/dist/src/executors/cargo-format/executor.js +4 -4
  81. package/dist/src/executors/cargo-format/executor.mjs +3 -3
  82. package/dist/src/executors/clean-package/executor.js +5 -5
  83. package/dist/src/executors/clean-package/executor.mjs +2 -2
  84. package/dist/src/executors/esbuild/executor.d.mts +1 -1
  85. package/dist/src/executors/esbuild/executor.d.ts +1 -1
  86. package/dist/src/executors/esbuild/executor.js +5 -5
  87. package/dist/src/executors/esbuild/executor.mjs +4 -4
  88. package/dist/src/executors/esbuild/schema.d.ts +0 -4
  89. package/dist/src/executors/esbuild/schema.json +4 -12
  90. package/dist/src/executors/esbuild/schema.md +0 -4
  91. package/dist/src/executors/esbuild/untyped.js +2 -2
  92. package/dist/src/executors/esbuild/untyped.mjs +1 -1
  93. package/dist/src/executors/size-limit/executor.js +4 -4
  94. package/dist/src/executors/size-limit/executor.mjs +3 -3
  95. package/dist/src/executors/tsdown/executor.d.mts +1 -1
  96. package/dist/src/executors/tsdown/executor.d.ts +1 -1
  97. package/dist/src/executors/tsdown/executor.js +5 -5
  98. package/dist/src/executors/tsdown/executor.mjs +4 -4
  99. package/dist/src/executors/tsdown/schema.d.ts +0 -4
  100. package/dist/src/executors/tsdown/schema.json +4 -12
  101. package/dist/src/executors/tsdown/schema.md +0 -4
  102. package/dist/src/executors/tsdown/untyped.js +2 -2
  103. package/dist/src/executors/tsdown/untyped.mjs +1 -1
  104. package/dist/src/executors/typia/executor.js +4 -4
  105. package/dist/src/executors/typia/executor.mjs +3 -3
  106. package/dist/src/executors/unbuild/executor.d.mts +1 -1
  107. package/dist/src/executors/unbuild/executor.d.ts +1 -1
  108. package/dist/src/executors/unbuild/executor.js +4 -4
  109. package/dist/src/executors/unbuild/executor.mjs +3 -3
  110. package/dist/src/executors/unbuild/schema.d.ts +6 -10
  111. package/dist/src/executors/unbuild/schema.json +17 -27
  112. package/dist/src/executors/unbuild/schema.md +4 -11
  113. package/dist/src/executors/unbuild/untyped.js +28 -16
  114. package/dist/src/executors/unbuild/untyped.mjs +27 -15
  115. package/dist/src/generators/browser-library/generator.js +4 -4
  116. package/dist/src/generators/browser-library/generator.mjs +3 -3
  117. package/dist/src/generators/config-schema/generator.js +4 -4
  118. package/dist/src/generators/config-schema/generator.mjs +3 -3
  119. package/dist/src/generators/neutral-library/generator.js +4 -4
  120. package/dist/src/generators/neutral-library/generator.mjs +3 -3
  121. package/dist/src/generators/node-library/generator.js +4 -4
  122. package/dist/src/generators/node-library/generator.mjs +3 -3
  123. package/dist/src/generators/preset/generator.js +4 -4
  124. package/dist/src/generators/preset/generator.mjs +3 -3
  125. package/dist/src/generators/release-version/generator.js +3 -3
  126. package/dist/src/generators/release-version/generator.mjs +2 -2
  127. package/docs/api/base/typescript-build-executor.schema.md +0 -4
  128. package/docs/api/executors/esbuild/schema.md +0 -4
  129. package/docs/api/executors/tsdown/schema.md +0 -4
  130. package/docs/api/executors/unbuild/schema.md +4 -11
  131. package/package.json +2 -2
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkK5Q4B5PPjs = require('./chunk-K5Q4B5PP.js');
3
+ var _chunkQIE4V5VCjs = require('./chunk-QIE4V5VC.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
8
 
9
- var _chunkSCINGDIIjs = require('./chunk-SCINGDII.js');
9
+ var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
10
10
 
11
11
 
12
12
  var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
@@ -18,25 +18,25 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
18
18
  var _devkit = require('@nx/devkit');
19
19
  var _zodtojsonschema = require('zod-to-json-schema');
20
20
  async function configSchemaGeneratorFn(tree, options, config) {
21
- _chunkSCINGDIIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
22
- _chunkSCINGDIIjs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
23
- const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkSCINGDIIjs.StormConfigSchema, {
21
+ _chunkM3X4P6ATjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
22
+ _chunkM3X4P6ATjs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
23
+ const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkM3X4P6ATjs.StormConfigSchema, {
24
24
  name: "StormWorkspaceConfiguration"
25
25
  });
26
- _chunkSCINGDIIjs.writeTrace.call(void 0, jsonSchema, config);
26
+ _chunkM3X4P6ATjs.writeTrace.call(void 0, jsonSchema, config);
27
27
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _2 => _2.outputFile, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("./")]) ? "" : "./");
28
- _chunkSCINGDIIjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
28
+ _chunkM3X4P6ATjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
29
29
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
30
30
  spaces: 2
31
31
  });
32
32
  await _devkit.formatFiles.call(void 0, tree);
33
- _chunkSCINGDIIjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
33
+ _chunkM3X4P6ATjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
34
34
  return {
35
35
  success: true
36
36
  };
37
37
  }
38
38
  _chunk3GQAWCBQjs.__name.call(void 0, configSchemaGeneratorFn, "configSchemaGeneratorFn");
39
- var generator_default = _chunkK5Q4B5PPjs.withRunGenerator.call(void 0, "Configuration Schema Creator", configSchemaGeneratorFn, {
39
+ var generator_default = _chunkQIE4V5VCjs.withRunGenerator.call(void 0, "Configuration Schema Creator", configSchemaGeneratorFn, {
40
40
  hooks: {
41
41
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
42
42
  options.outputFile ??= "{workspaceRoot}/storm-workspace.schema.json";
@@ -8,10 +8,10 @@ import {
8
8
  getEntryPoints,
9
9
  getEnv,
10
10
  getOutExtension
11
- } from "./chunk-IOCGVIIK.mjs";
11
+ } from "./chunk-Q3EM343U.mjs";
12
12
  import {
13
13
  withRunExecutor
14
- } from "./chunk-NSVH52UL.mjs";
14
+ } from "./chunk-XYFHKZNM.mjs";
15
15
  import {
16
16
  getStopwatch,
17
17
  isVerbose,
@@ -23,7 +23,7 @@ import {
23
23
  writeSuccess,
24
24
  writeTrace,
25
25
  writeWarning
26
- } from "./chunk-RENOUPVD.mjs";
26
+ } from "./chunk-BWUHOT6F.mjs";
27
27
  import {
28
28
  joinPaths
29
29
  } from "./chunk-PVTEDLBL.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XSRDTQ5C.mjs";
5
5
  import {
6
6
  withRunGenerator
7
- } from "./chunk-SKHELRGB.mjs";
7
+ } from "./chunk-MKWGJTCZ.mjs";
8
8
  import {
9
9
  __dirname,
10
10
  __name
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkSCINGDIIjs = require('./chunk-SCINGDII.js');
6
+ var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
7
7
 
8
8
 
9
9
  var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
@@ -38,7 +38,7 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
38
38
  var readNxConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot) => {
39
39
  let rootDir = workspaceRoot;
40
40
  if (!rootDir) {
41
- const config = await _chunkSCINGDIIjs.loadStormConfig.call(void 0, );
41
+ const config = await _chunkM3X4P6ATjs.loadStormConfig.call(void 0, );
42
42
  rootDir = config.workspaceRoot;
43
43
  }
44
44
  const nxJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, rootDir, "nx.json");
@@ -52,27 +52,23 @@ var readNxConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (w
52
52
  // ../build-tools/src/utilities/copy-assets.ts
53
53
  var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, assets, outputPath, projectRoot, projectName, sourceRoot, generatePackageJson = true, includeSrc = false, banner, footer) => {
54
54
  const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
55
- if (!_optionalChain([pendingAssets, 'optionalAccess', _ => _.some, 'call', _2 => _2((asset) => _optionalChain([asset, 'optionalAccess', _3 => _3.glob]) === "*.md")])) {
56
- pendingAssets.push({
57
- input: projectRoot,
58
- glob: "*.md",
59
- output: "/"
60
- });
61
- }
55
+ pendingAssets.push({
56
+ input: projectRoot,
57
+ glob: "*.md",
58
+ output: "."
59
+ });
60
+ pendingAssets.push({
61
+ input: config.workspaceRoot,
62
+ glob: "LICENSE",
63
+ output: "."
64
+ });
62
65
  if (generatePackageJson === false) {
63
66
  pendingAssets.push({
64
- input: sourceRoot,
67
+ input: projectRoot,
65
68
  glob: "package.json",
66
69
  output: "."
67
70
  });
68
71
  }
69
- if (!_optionalChain([pendingAssets, 'optionalAccess', _4 => _4.some, 'call', _5 => _5((asset) => _optionalChain([asset, 'optionalAccess', _6 => _6.glob]) === "LICENSE")])) {
70
- pendingAssets.push({
71
- input: "",
72
- glob: "LICENSE",
73
- output: "."
74
- });
75
- }
76
72
  if (includeSrc === true) {
77
73
  pendingAssets.push({
78
74
  input: sourceRoot,
@@ -83,10 +79,10 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
83
79
  const nxJson = readNxConfig(config.workspaceRoot);
84
80
  const projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
85
81
  const projectsConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
86
- if (!_optionalChain([projectsConfigurations, 'optionalAccess', _7 => _7.projects, 'optionalAccess', _8 => _8[projectName]])) {
82
+ if (!_optionalChain([projectsConfigurations, 'optionalAccess', _ => _.projects, 'optionalAccess', _2 => _2[projectName]])) {
87
83
  throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
88
84
  }
89
- const buildTarget = _optionalChain([projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[projectName], 'access', _11 => _11.targets, 'optionalAccess', _12 => _12.build]);
85
+ const buildTarget = _optionalChain([projectsConfigurations, 'access', _3 => _3.projects, 'access', _4 => _4[projectName], 'access', _5 => _5.targets, 'optionalAccess', _6 => _6.build]);
90
86
  if (!buildTarget) {
91
87
  throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${_chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
92
88
  }
@@ -103,13 +99,13 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
103
99
  projectsConfigurations,
104
100
  nxJsonConfiguration: nxJson,
105
101
  cwd: config.workspaceRoot,
106
- isVerbose: _chunkSCINGDIIjs.isVerbose.call(void 0, config.logLevel)
102
+ isVerbose: _chunkM3X4P6ATjs.isVerbose.call(void 0, config.logLevel)
107
103
  });
108
104
  if (!result.success) {
109
105
  throw new Error("The Build process failed trying to copy assets");
110
106
  }
111
107
  if (includeSrc === true) {
112
- _chunkSCINGDIIjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXCSSYTCUjs.joinPaths.call(void 0, outputPath, "src")}`, config);
108
+ _chunkM3X4P6ATjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXCSSYTCUjs.joinPaths.call(void 0, outputPath, "src")}`, config);
113
109
  const files = await _glob.glob.call(void 0, [
114
110
  _chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
115
111
  _chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
@@ -147,7 +143,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
147
143
  }
148
144
  }
149
145
  if (localPackages.length > 0) {
150
- _chunkSCINGDIIjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
146
+ _chunkM3X4P6ATjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
151
147
  packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
152
148
  if (!ret[localPackage.name]) {
153
149
  ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
@@ -169,7 +165,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
169
165
  return ret;
170
166
  }, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
171
167
  } else {
172
- _chunkSCINGDIIjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
168
+ _chunkM3X4P6ATjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
173
169
  }
174
170
  return packageJson;
175
171
  }, "addPackageDependencies");
@@ -265,7 +261,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
265
261
  results.push(...files.reduce((ret, filePath) => {
266
262
  const result = _chunkXCSSYTCUjs.correctPaths.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkXCSSYTCUjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXCSSYTCUjs.correctPaths.call(void 0, projectRoot), ""));
267
263
  if (result) {
268
- _chunkSCINGDIIjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
264
+ _chunkM3X4P6ATjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
269
265
  if (!results.includes(result)) {
270
266
  results.push(result);
271
267
  }
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QZHIWK5Z.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-NSVH52UL.mjs";
7
+ } from "./chunk-XYFHKZNM.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-XUV4U54K.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QZHIWK5Z.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-NSVH52UL.mjs";
7
+ } from "./chunk-XYFHKZNM.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-XUV4U54K.mjs";
@@ -4,7 +4,7 @@
4
4
  var _chunkFBLF4KJFjs = require('./chunk-FBLF4KJF.js');
5
5
 
6
6
 
7
- var _chunkK5Q4B5PPjs = require('./chunk-K5Q4B5PP.js');
7
+ var _chunkQIE4V5VCjs = require('./chunk-QIE4V5VC.js');
8
8
 
9
9
 
10
10
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -42,7 +42,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
42
42
  return null;
43
43
  }
44
44
  _chunk3GQAWCBQjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
45
- var generator_default = _chunkK5Q4B5PPjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
45
+ var generator_default = _chunkQIE4V5VCjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
46
46
  hooks: {
47
47
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
48
48
  options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-NSVH52UL.mjs";
3
+ } from "./chunk-XYFHKZNM.mjs";
4
4
  import {
5
5
  writeInfo
6
- } from "./chunk-RENOUPVD.mjs";
6
+ } from "./chunk-BWUHOT6F.mjs";
7
7
  import {
8
8
  joinPaths
9
9
  } from "./chunk-PVTEDLBL.mjs";
@@ -67,6 +67,9 @@ var executor_default = withRunExecutor("TypeScript Unbuild build", unbuildExecut
67
67
  skipReadingConfig: false,
68
68
  hooks: {
69
69
  applyDefaultOptions: /* @__PURE__ */ __name(async (options, config) => {
70
+ options.debug ??= false;
71
+ options.treeShaking ??= true;
72
+ options.platform ??= "neutral";
70
73
  options.entry ??= [
71
74
  "{sourceRoot}"
72
75
  ];
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-EK75QNMS.mjs";
5
5
  import {
6
6
  withRunGenerator
7
- } from "./chunk-SKHELRGB.mjs";
7
+ } from "./chunk-MKWGJTCZ.mjs";
8
8
  import {
9
9
  __dirname,
10
10
  __name
@@ -6,10 +6,10 @@ import {
6
6
  copyAssets,
7
7
  getEntryPoints,
8
8
  getEnv
9
- } from "./chunk-IOCGVIIK.mjs";
9
+ } from "./chunk-Q3EM343U.mjs";
10
10
  import {
11
11
  withRunExecutor
12
- } from "./chunk-NSVH52UL.mjs";
12
+ } from "./chunk-XYFHKZNM.mjs";
13
13
  import {
14
14
  getStopwatch,
15
15
  isVerbose,
@@ -19,7 +19,7 @@ import {
19
19
  writeInfo,
20
20
  writeSuccess,
21
21
  writeWarning
22
- } from "./chunk-RENOUPVD.mjs";
22
+ } from "./chunk-BWUHOT6F.mjs";
23
23
  import {
24
24
  joinPaths
25
25
  } from "./chunk-PVTEDLBL.mjs";
@@ -4,7 +4,7 @@
4
4
  var _chunkFBLF4KJFjs = require('./chunk-FBLF4KJF.js');
5
5
 
6
6
 
7
- var _chunkK5Q4B5PPjs = require('./chunk-K5Q4B5PP.js');
7
+ var _chunkQIE4V5VCjs = require('./chunk-QIE4V5VC.js');
8
8
 
9
9
 
10
10
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -70,7 +70,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
70
70
  return null;
71
71
  }
72
72
  _chunk3GQAWCBQjs.__name.call(void 0, browserLibraryGeneratorFn, "browserLibraryGeneratorFn");
73
- var generator_default = _chunkK5Q4B5PPjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
73
+ var generator_default = _chunkQIE4V5VCjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
74
74
  hooks: {
75
75
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
76
76
  options.description ??= "A library used by Storm Software to support browser applications";
@@ -14,7 +14,7 @@ import {
14
14
  writeInfo,
15
15
  writeSuccess,
16
16
  writeTrace
17
- } from "./chunk-RENOUPVD.mjs";
17
+ } from "./chunk-BWUHOT6F.mjs";
18
18
  import {
19
19
  findWorkspaceRoot
20
20
  } from "./chunk-DMUTOQCB.mjs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-NSVH52UL.mjs";
3
+ } from "./chunk-XYFHKZNM.mjs";
4
4
  import {
5
5
  writeInfo
6
- } from "./chunk-RENOUPVD.mjs";
6
+ } from "./chunk-BWUHOT6F.mjs";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-XUV4U54K.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QZHIWK5Z.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-NSVH52UL.mjs";
7
+ } from "./chunk-XYFHKZNM.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-XUV4U54K.mjs";
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkWHFR5DFCjs = require('./chunk-WHFR5DFC.js');
3
+ var _chunkCOE4MDQZjs = require('./chunk-COE4MDQZ.js');
4
4
 
5
5
 
6
- var _chunkSCINGDIIjs = require('./chunk-SCINGDII.js');
6
+ var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
7
7
 
8
8
 
9
9
  var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
@@ -15,7 +15,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
15
15
  var _defu = require('defu');
16
16
  var _jiti = require('jiti');
17
17
  async function unbuildExecutorFn(options, context, config) {
18
- _chunkSCINGDIIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
18
+ _chunkM3X4P6ATjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
19
19
  if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'access', _4 => _4.projects, 'access', _5 => _5[context.projectName], 'optionalAccess', _6 => _6.root])) {
20
20
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
21
21
  }
@@ -63,10 +63,13 @@ async function unbuildExecutorFn(options, context, config) {
63
63
  };
64
64
  }
65
65
  _chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
66
- var executor_default = _chunkWHFR5DFCjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
66
+ var executor_default = _chunkCOE4MDQZjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
67
67
  skipReadingConfig: false,
68
68
  hooks: {
69
69
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
70
+ options.debug ??= false;
71
+ options.treeShaking ??= true;
72
+ options.platform ??= "neutral";
70
73
  options.entry ??= [
71
74
  "{sourceRoot}"
72
75
  ];
@@ -18,15 +18,15 @@ interface UnbuildExecutorSchema {
18
18
  outputPath?: string,
19
19
 
20
20
  /**
21
- * Entry File(s)
21
+ * Input Directory
22
22
  *
23
- * The entry file or files to build
23
+ * The directory to use as input for the build
24
24
  *
25
- * @default ["{sourceRoot}/index.ts"]
25
+ * @default ["{sourceRoot}"]
26
26
  *
27
27
  * @format path
28
28
  */
29
- entry?: Array<string>,
29
+ entry: Array<string>,
30
30
 
31
31
  /**
32
32
  * TSConfig Path
@@ -44,7 +44,6 @@ interface UnbuildExecutorSchema {
44
44
  *
45
45
  * Bundle the output
46
46
  *
47
- * @default false
48
47
  */
49
48
  bundle?: boolean,
50
49
 
@@ -53,7 +52,6 @@ interface UnbuildExecutorSchema {
53
52
  *
54
53
  * Minify the output
55
54
  *
56
- * @default false
57
55
  */
58
56
  minify?: boolean,
59
57
 
@@ -62,7 +60,6 @@ interface UnbuildExecutorSchema {
62
60
  *
63
61
  * Debug the output
64
62
  *
65
- * @default false
66
63
  */
67
64
  debug?: boolean,
68
65
 
@@ -71,7 +68,6 @@ interface UnbuildExecutorSchema {
71
68
  *
72
69
  * Generate a sourcemap
73
70
  *
74
- * @default false
75
71
  */
76
72
  sourcemap?: boolean,
77
73
 
@@ -146,7 +142,7 @@ interface UnbuildExecutorSchema {
146
142
  *
147
143
  * @default "{projectName}"
148
144
  */
149
- name?: string,
145
+ name: string,
150
146
 
151
147
  /**
152
148
  * Tree Shaking
@@ -171,7 +167,7 @@ interface UnbuildExecutorSchema {
171
167
  *
172
168
  * Clean the output directory before building
173
169
  *
174
- * @default false
170
+ * @default true
175
171
  */
176
172
  clean?: boolean,
177
173
 
@@ -44,7 +44,6 @@ interface ESBuildExecutorSchema {
44
44
  *
45
45
  * Bundle the output
46
46
  *
47
- * @default false
48
47
  */
49
48
  bundle?: boolean,
50
49
 
@@ -53,7 +52,6 @@ interface ESBuildExecutorSchema {
53
52
  *
54
53
  * Minify the output
55
54
  *
56
- * @default false
57
55
  */
58
56
  minify?: boolean,
59
57
 
@@ -62,7 +60,6 @@ interface ESBuildExecutorSchema {
62
60
  *
63
61
  * Debug the output
64
62
  *
65
- * @default false
66
63
  */
67
64
  debug?: boolean,
68
65
 
@@ -71,7 +68,6 @@ interface ESBuildExecutorSchema {
71
68
  *
72
69
  * Generate a sourcemap
73
70
  *
74
- * @default false
75
71
  */
76
72
  sourcemap?: boolean,
77
73
 
@@ -44,7 +44,6 @@ interface TSDownExecutorSchema {
44
44
  *
45
45
  * Bundle the output
46
46
  *
47
- * @default false
48
47
  */
49
48
  bundle?: boolean,
50
49
 
@@ -53,7 +52,6 @@ interface TSDownExecutorSchema {
53
52
  *
54
53
  * Minify the output
55
54
  *
56
- * @default false
57
55
  */
58
56
  minify?: boolean,
59
57
 
@@ -62,7 +60,6 @@ interface TSDownExecutorSchema {
62
60
  *
63
61
  * Debug the output
64
62
  *
65
- * @default false
66
63
  */
67
64
  debug?: boolean,
68
65
 
@@ -71,7 +68,6 @@ interface TSDownExecutorSchema {
71
68
  *
72
69
  * Generate a sourcemap
73
70
  *
74
- * @default false
75
71
  */
76
72
  sourcemap?: boolean,
77
73
 
@@ -18,15 +18,15 @@ interface UnbuildExecutorSchema {
18
18
  outputPath?: string,
19
19
 
20
20
  /**
21
- * Entry File(s)
21
+ * Input Directory
22
22
  *
23
- * The entry file or files to build
23
+ * The directory to use as input for the build
24
24
  *
25
- * @default ["{sourceRoot}/index.ts"]
25
+ * @default ["{sourceRoot}"]
26
26
  *
27
27
  * @format path
28
28
  */
29
- entry?: Array<string>,
29
+ entry: Array<string>,
30
30
 
31
31
  /**
32
32
  * TSConfig Path
@@ -44,7 +44,6 @@ interface UnbuildExecutorSchema {
44
44
  *
45
45
  * Bundle the output
46
46
  *
47
- * @default false
48
47
  */
49
48
  bundle?: boolean,
50
49
 
@@ -53,7 +52,6 @@ interface UnbuildExecutorSchema {
53
52
  *
54
53
  * Minify the output
55
54
  *
56
- * @default false
57
55
  */
58
56
  minify?: boolean,
59
57
 
@@ -62,7 +60,6 @@ interface UnbuildExecutorSchema {
62
60
  *
63
61
  * Debug the output
64
62
  *
65
- * @default false
66
63
  */
67
64
  debug?: boolean,
68
65
 
@@ -71,7 +68,6 @@ interface UnbuildExecutorSchema {
71
68
  *
72
69
  * Generate a sourcemap
73
70
  *
74
- * @default false
75
71
  */
76
72
  sourcemap?: boolean,
77
73
 
@@ -146,7 +142,7 @@ interface UnbuildExecutorSchema {
146
142
  *
147
143
  * @default "{projectName}"
148
144
  */
149
- name?: string,
145
+ name: string,
150
146
 
151
147
  /**
152
148
  * Tree Shaking
@@ -171,7 +167,7 @@ interface UnbuildExecutorSchema {
171
167
  *
172
168
  * Clean the output directory before building
173
169
  *
174
- * @default false
170
+ * @default true
175
171
  */
176
172
  clean?: boolean,
177
173
 
@@ -44,7 +44,6 @@ interface TSDownExecutorSchema {
44
44
  *
45
45
  * Bundle the output
46
46
  *
47
- * @default false
48
47
  */
49
48
  bundle?: boolean,
50
49
 
@@ -53,7 +52,6 @@ interface TSDownExecutorSchema {
53
52
  *
54
53
  * Minify the output
55
54
  *
56
- * @default false
57
55
  */
58
56
  minify?: boolean,
59
57
 
@@ -62,7 +60,6 @@ interface TSDownExecutorSchema {
62
60
  *
63
61
  * Debug the output
64
62
  *
65
- * @default false
66
63
  */
67
64
  debug?: boolean,
68
65
 
@@ -71,7 +68,6 @@ interface TSDownExecutorSchema {
71
68
  *
72
69
  * Generate a sourcemap
73
70
  *
74
- * @default false
75
71
  */
76
72
  sourcemap?: boolean,
77
73
 
@@ -44,7 +44,6 @@ interface ESBuildExecutorSchema {
44
44
  *
45
45
  * Bundle the output
46
46
  *
47
- * @default false
48
47
  */
49
48
  bundle?: boolean,
50
49
 
@@ -53,7 +52,6 @@ interface ESBuildExecutorSchema {
53
52
  *
54
53
  * Minify the output
55
54
  *
56
- * @default false
57
55
  */
58
56
  minify?: boolean,
59
57
 
@@ -62,7 +60,6 @@ interface ESBuildExecutorSchema {
62
60
  *
63
61
  * Debug the output
64
62
  *
65
- * @default false
66
63
  */
67
64
  debug?: boolean,
68
65
 
@@ -71,7 +68,6 @@ interface ESBuildExecutorSchema {
71
68
  *
72
69
  * Generate a sourcemap
73
70
  *
74
- * @default false
75
71
  */
76
72
  sourcemap?: boolean,
77
73
 
@@ -5,12 +5,12 @@ export { C as CargoDocExecutorSchema, c as cargoDocExecutor } from './executor-B
5
5
  export { C as CargoFormatExecutorSchema, c as cargoFormatExecutor } from './executor-BD3oxCXJ.mjs';
6
6
  export { C as CargoPublishExecutorSchema, g as getRegistryVersion } from './executor-CpcXNDfG.mjs';
7
7
  export { C as CleanPackageExecutorSchema } from './schema.d-CRz8jtUC.mjs';
8
- export { E as ESBuildExecutorSchema, e as esbuildExecutorFn } from './executor-B8unq_QL.mjs';
8
+ export { E as ESBuildExecutorSchema, e as esbuildExecutorFn } from './executor-qCehbH9x.mjs';
9
9
  export { L as LARGE_BUFFER, N as NpmPublishExecutorSchema } from './executor-DTcKLfcw.mjs';
10
10
  export { S as SizeLimitExecutorSchema, s as sizeLimitExecutorFn } from './executor-5Wog21g_.mjs';
11
- export { T as TSDownExecutorSchema, t as tsdownExecutorFn } from './executor-C5AtaKvj.mjs';
11
+ export { T as TSDownExecutorSchema, t as tsdownExecutorFn } from './executor-hq_H_ICT.mjs';
12
12
  export { T as TypiaExecutorSchema, t as typiaExecutorFn } from './executor-D8m1bXgk.mjs';
13
- export { U as UnbuildExecutorSchema, u as unbuildExecutorFn } from './executor-BSXWmnE3.mjs';
13
+ export { U as UnbuildExecutorSchema, u as unbuildExecutorFn } from './executor-CqbWU1uP.mjs';
14
14
  import '@nx/devkit';
15
15
  import './types-D9vU63tt.mjs';
16
16
  import 'zod';