@storm-software/workspace-tools 1.296.102 → 1.296.104

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 (122) hide show
  1. package/README.md +1 -1
  2. package/dist/chunk-2D2626GQ.js +128 -0
  3. package/dist/chunk-5T4QN26P.js +93 -0
  4. package/dist/chunk-62U3K4QL.js +31 -0
  5. package/dist/chunk-6DTG46OS.mjs +128 -0
  6. package/dist/{chunk-KDZGNUBS.mjs → chunk-77J7VIDG.mjs} +1 -1
  7. package/dist/chunk-7YO4PMLG.mjs +32 -0
  8. package/dist/chunk-BKTSNX4U.js +41 -0
  9. package/dist/chunk-BZB6C7OW.mjs +31 -0
  10. package/dist/chunk-CW6ERHR6.js +79 -0
  11. package/dist/chunk-DPKPIVRB.mjs +93 -0
  12. package/dist/{chunk-POHCCCR5.mjs → chunk-GESAJF7P.mjs} +1 -1
  13. package/dist/{chunk-ZQVMKLN3.mjs → chunk-J2AFJZUP.mjs} +1 -1
  14. package/dist/chunk-K4DWEHZO.js +262 -0
  15. package/dist/chunk-MBQOVLFH.js +32 -0
  16. package/dist/{chunk-XNPPL6DM.mjs → chunk-MVSTFKO3.mjs} +4 -4
  17. package/dist/chunk-NP4JJVGY.js +32 -0
  18. package/dist/chunk-P42HBYJL.js +32 -0
  19. package/dist/{chunk-CBTNZPVD.js → chunk-PS3344Z2.js} +4 -4
  20. package/dist/{chunk-LKCN5IIO.mjs → chunk-TRYTX34Z.mjs} +1 -1
  21. package/dist/chunk-TYLGU2FW.mjs +41 -0
  22. package/dist/chunk-UUWXIOS5.mjs +32 -0
  23. package/dist/chunk-WAXMGLST.mjs +32 -0
  24. package/dist/{chunk-4TGI6IUX.mjs → chunk-WSB4F36F.mjs} +4 -4
  25. package/dist/chunk-YJ6NNN24.mjs +82 -0
  26. package/dist/chunk-Z2ZHQ4GR.mjs +265 -0
  27. package/dist/executors.js +12 -12
  28. package/dist/executors.mjs +12 -12
  29. package/dist/generators.js +7 -7
  30. package/dist/generators.mjs +9 -9
  31. package/dist/index.js +43 -43
  32. package/dist/index.mjs +70 -70
  33. package/dist/src/base/base-executor.mjs +1 -1
  34. package/dist/src/base/base-executor.untyped.mjs +1 -1
  35. package/dist/src/base/base-generator.mjs +1 -1
  36. package/dist/src/base/base-generator.untyped.mjs +1 -1
  37. package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
  38. package/dist/src/base/index.js +10 -10
  39. package/dist/src/base/index.mjs +16 -16
  40. package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
  41. package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
  42. package/dist/src/executors/cargo-build/executor.js +4 -4
  43. package/dist/src/executors/cargo-build/executor.mjs +4 -4
  44. package/dist/src/executors/cargo-build/untyped.mjs +1 -1
  45. package/dist/src/executors/cargo-check/executor.js +4 -4
  46. package/dist/src/executors/cargo-check/executor.mjs +4 -4
  47. package/dist/src/executors/cargo-check/untyped.mjs +1 -1
  48. package/dist/src/executors/cargo-clippy/executor.js +4 -4
  49. package/dist/src/executors/cargo-clippy/executor.mjs +4 -4
  50. package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
  51. package/dist/src/executors/cargo-doc/executor.js +4 -4
  52. package/dist/src/executors/cargo-doc/executor.mjs +4 -4
  53. package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
  54. package/dist/src/executors/cargo-format/executor.js +4 -4
  55. package/dist/src/executors/cargo-format/executor.mjs +4 -4
  56. package/dist/src/executors/cargo-format/untyped.mjs +1 -1
  57. package/dist/src/executors/cargo-publish/executor.mjs +1 -1
  58. package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
  59. package/dist/src/executors/clean-package/executor.mjs +1 -1
  60. package/dist/src/executors/clean-package/untyped.mjs +1 -1
  61. package/dist/src/executors/esbuild/executor.mjs +1 -1
  62. package/dist/src/executors/esbuild/untyped.mjs +1 -1
  63. package/dist/src/executors/napi/executor.js +4 -4
  64. package/dist/src/executors/napi/executor.mjs +4 -4
  65. package/dist/src/executors/napi/untyped.mjs +1 -1
  66. package/dist/src/executors/npm-publish/executor.js +4 -4
  67. package/dist/src/executors/npm-publish/executor.mjs +4 -4
  68. package/dist/src/executors/npm-publish/untyped.mjs +1 -1
  69. package/dist/src/executors/size-limit/executor.mjs +1 -1
  70. package/dist/src/executors/size-limit/untyped.mjs +1 -1
  71. package/dist/src/executors/tsdown/executor.mjs +1 -1
  72. package/dist/src/executors/tsdown/untyped.mjs +1 -1
  73. package/dist/src/executors/typia/executor.mjs +1 -1
  74. package/dist/src/executors/typia/untyped.mjs +1 -1
  75. package/dist/src/executors/unbuild/executor.mjs +1 -1
  76. package/dist/src/executors/unbuild/untyped.mjs +1 -1
  77. package/dist/src/generators/browser-library/generator.js +2 -2
  78. package/dist/src/generators/browser-library/generator.mjs +4 -4
  79. package/dist/src/generators/browser-library/untyped.mjs +1 -1
  80. package/dist/src/generators/config-schema/generator.mjs +1 -1
  81. package/dist/src/generators/config-schema/untyped.mjs +1 -1
  82. package/dist/src/generators/init/init.mjs +1 -1
  83. package/dist/src/generators/init/untyped.mjs +1 -1
  84. package/dist/src/generators/neutral-library/generator.js +2 -2
  85. package/dist/src/generators/neutral-library/generator.mjs +4 -4
  86. package/dist/src/generators/neutral-library/untyped.mjs +1 -1
  87. package/dist/src/generators/node-library/generator.js +4 -4
  88. package/dist/src/generators/node-library/generator.mjs +4 -4
  89. package/dist/src/generators/node-library/untyped.mjs +1 -1
  90. package/dist/src/generators/preset/generator.js +4 -4
  91. package/dist/src/generators/preset/generator.mjs +4 -4
  92. package/dist/src/generators/preset/untyped.mjs +1 -1
  93. package/dist/src/plugins/rust/cargo-toml.js +1 -1
  94. package/dist/src/plugins/rust/cargo-toml.mjs +2 -2
  95. package/dist/src/plugins/rust/index.js +1 -1
  96. package/dist/src/plugins/rust/index.mjs +2 -2
  97. package/dist/src/plugins/typescript/index.mjs +1 -1
  98. package/dist/src/plugins/typescript/tsdown.mjs +1 -1
  99. package/dist/src/plugins/typescript/tsup.mjs +1 -1
  100. package/dist/src/plugins/typescript/untyped-schema.mjs +1 -1
  101. package/dist/src/release/index.mjs +1 -1
  102. package/dist/src/release/js-version-actions.mjs +1 -1
  103. package/dist/src/release/rust-version-actions.mjs +1 -1
  104. package/dist/src/types.mjs +1 -1
  105. package/dist/src/utils/apply-workspace-tokens.mjs +1 -1
  106. package/dist/src/utils/cargo.mjs +1 -1
  107. package/dist/src/utils/create-cli-options.mjs +1 -1
  108. package/dist/src/utils/get-project-configurations.mjs +1 -1
  109. package/dist/src/utils/github.mjs +1 -1
  110. package/dist/src/utils/index.js +8 -8
  111. package/dist/src/utils/index.mjs +24 -24
  112. package/dist/src/utils/lock-file.mjs +1 -1
  113. package/dist/src/utils/nx-json.mjs +1 -1
  114. package/dist/src/utils/package-helpers.js +3 -3
  115. package/dist/src/utils/package-helpers.mjs +3 -3
  116. package/dist/src/utils/package-manager.mjs +1 -1
  117. package/dist/src/utils/plugin-helpers.mjs +1 -1
  118. package/dist/src/utils/project-tags.mjs +1 -1
  119. package/dist/src/utils/registry-helpers.mjs +1 -1
  120. package/dist/src/utils/typia-transform.mjs +1 -1
  121. package/dist/src/utils/versions.mjs +1 -1
  122. package/package.json +12 -12
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-3G7TXYW2.mjs";
12
12
  import {
13
13
  __dirname
14
- } from "./chunk-KDZGNUBS.mjs";
14
+ } from "./chunk-77J7VIDG.mjs";
15
15
 
16
16
  // src/generators/preset/generator.ts
17
17
  import {
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-TBW5MCN6.mjs";
11
11
  import {
12
12
  __dirname
13
- } from "./chunk-KDZGNUBS.mjs";
13
+ } from "./chunk-77J7VIDG.mjs";
14
14
 
15
15
  // src/generators/browser-library/generator.ts
16
16
  import {
@@ -0,0 +1,262 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
+
3
+ var _chunkIZLEVS44js = require('./chunk-IZLEVS44.js');
4
+
5
+
6
+
7
+
8
+ var _chunk3G7PNDZ5js = require('./chunk-3G7PNDZ5.js');
9
+
10
+
11
+ var _chunkHN5UXNLMjs = require('./chunk-HN5UXNLM.js');
12
+
13
+ // src/generators/preset/generator.ts
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+ var _devkit = require('@nx/devkit');
23
+ var _path = require('path'); var path = _interopRequireWildcard(_path);
24
+ async function presetGeneratorFn(tree, options) {
25
+ const projectRoot = ".";
26
+ const packageManager = _nullishCoalesce(options.packageManager, () => ( "pnpm"));
27
+ const packageManagerVersion = _chunk3G7PNDZ5js.packageManagerVersions[packageManager];
28
+ const pmc = _devkit.getPackageManagerCommand.call(void 0, packageManager);
29
+ const lockFileName = _chunkHN5UXNLMjs.getLockFileName.call(void 0, packageManager);
30
+ options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
31
+ options.namespace ??= options.organization;
32
+ _devkit.addProjectConfiguration.call(void 0, tree, `@${options.namespace}/${options.name}`, {
33
+ root: projectRoot,
34
+ projectType: "application",
35
+ targets: {
36
+ "local-registry": {
37
+ executor: "@nx/js:verdaccio",
38
+ options: {
39
+ port: 4873,
40
+ config: ".verdaccio/config.yml",
41
+ storage: "tmp/local-registry/storage"
42
+ }
43
+ }
44
+ }
45
+ });
46
+ _devkit.updateJson.call(void 0, tree, "package.json", (json) => {
47
+ json.scripts = json.scripts || {};
48
+ json.version = "0.0.0";
49
+ json.triggerEmptyDevReleaseByIncrementingThisNumber = 0;
50
+ json.private = true;
51
+ json.keywords ??= [
52
+ options.name,
53
+ options.namespace,
54
+ "storm",
55
+ "storm-stack",
56
+ "storm-ops",
57
+ "rust",
58
+ "nx",
59
+ "graphql",
60
+ "sullivanpj",
61
+ "monorepo"
62
+ ];
63
+ json.homepage ??= "https://stormsoftware.com";
64
+ json.bugs ??= {
65
+ url: `https://github.com/${options.organization}/${options.name}/issues`,
66
+ email: "support@stormsoftware.com"
67
+ };
68
+ json.license = "Apache-2.0";
69
+ json.author ??= {
70
+ name: "Storm Software",
71
+ email: "contact@stormsoftware.com",
72
+ url: "https://stormsoftware.com"
73
+ };
74
+ json.maintainers ??= [
75
+ {
76
+ name: "Storm Software",
77
+ email: "contact@stormsoftware.com",
78
+ url: "https://stormsoftware.com"
79
+ },
80
+ {
81
+ name: "Pat Sullivan",
82
+ email: "admin@stormsoftware.com",
83
+ url: "https://patsullivan.org"
84
+ }
85
+ ];
86
+ json.funding ??= {
87
+ type: "github",
88
+ url: "https://github.com/sponsors/storm-software"
89
+ };
90
+ json.namespace ??= `@${options.namespace}`;
91
+ json.description ??= options.description;
92
+ options.repositoryUrl ??= `https://github.com/${options.organization}/${options.name}`;
93
+ json.repository ??= {
94
+ type: "github",
95
+ url: `${options.repositoryUrl}.git`
96
+ };
97
+ json.prettier = "@storm-software/prettier/config.json";
98
+ json.nx ??= {
99
+ includedScripts: [
100
+ "lint-sherif",
101
+ "lint-knip",
102
+ "lint-ls",
103
+ "lint",
104
+ "format",
105
+ "format-sherif",
106
+ "format-readme",
107
+ "format-prettier",
108
+ "format-toml",
109
+ "commit",
110
+ "release"
111
+ ]
112
+ };
113
+ json.scripts.adr = pmc.run("log4brains", "adr new");
114
+ json.scripts["adr-preview"] = pmc.run("log4brains", "preview");
115
+ json.scripts.prepare = `${pmc.addDev} lefthook && ${packageManager} lefthook install`;
116
+ json.scripts.preinstall = `npx -y only-allow ${packageManager}`;
117
+ json.scripts["install-csb"] = packageManager === "bun" ? "bun install" : `corepack enable && ${pmc.install}`;
118
+ json.scripts.clean = "rimraf dist && rimraf --glob packages/**/dist && rimraf --glob tools/**/dist && rimraf --glob docs/**/dist && rimraf --glob apps/**/dist && rimraf --glob libs/**/dist";
119
+ json.scripts.nuke = `nx clear-cache && rimraf .nx/cache && rimraf .nx/workspace-data && ${packageManager} clean && rimraf ${lockFileName} && rimraf --glob packages/**/node_modules && rimraf --glob tools/**/node_modules && rimraf node_modules`;
120
+ json.scripts.prebuild = `${packageManager} clean`;
121
+ json.scripts.build = "nx affected -t build --parallel=5";
122
+ json.scripts["build-all"] = "nx run-many -t build --all --parallel=5";
123
+ json.scripts["build-prod"] = "nx run-many -t build --all --prod --parallel=5";
124
+ json.scripts["build-tools"] = "nx run-many -t build --projects=tools/* --parallel=5";
125
+ json.scripts["build-docs"] = "nx run-many -t build --projects=docs/* --parallel=5";
126
+ if (!options.includeApps) {
127
+ json.scripts["build-packages"] = "nx run-many -t build --projects=packages/* --parallel=5";
128
+ } else {
129
+ json.scripts["build-apps"] = "nx run-many -t build --projects=apps/* --parallel=5";
130
+ json.scripts["build-libs"] = "nx run-many -t build --projects=libs/* --parallel=5";
131
+ json.scripts["build-storybook"] = "storybook build -s public";
132
+ }
133
+ json.scripts.nx = "nx";
134
+ json.scripts.graph = "nx graph";
135
+ if (options.includeApps) {
136
+ json.scripts.start = "nx serve";
137
+ json.scripts.storybook = pmc.run("storybook", "dev -p 6006");
138
+ }
139
+ json.scripts.help = "nx help";
140
+ json.scripts["dep-graph"] = "nx dep-graph";
141
+ json.scripts["local-registry"] = `nx local-registry @${options.namespace}/${options.name}`;
142
+ json.scripts.e2e = "nx e2e";
143
+ if (options.includeApps) {
144
+ json.scripts.test = `nx test && ${packageManager} test-storybook`;
145
+ json.scripts["test-storybook"] = `${packageManager} test-storybook`;
146
+ } else {
147
+ json.scripts.test = "nx test";
148
+ }
149
+ json.scripts.commit = pmc.run("storm-git", "commit");
150
+ json.scripts["api-extractor"] = pmc.run(
151
+ "storm-docs",
152
+ 'api-extractor --outputPath="docs/api-reference" --clean'
153
+ );
154
+ json.scripts.release = pmc.run("storm-git", "release");
155
+ json.scripts.format = "nx format:write";
156
+ json.scripts["format-sherif"] = `${pmc.exec} sherif -f -i typescript -i react -i react-dom`;
157
+ json.scripts["format-toml"] = `${pmc.exec} taplo format --config="./node_modules/@storm-software/linting-tools/taplo/config.toml" --cache-path="./node_modules/.cache/storm/taplo"`;
158
+ json.scripts["format-readme"] = pmc.run(
159
+ "storm-git",
160
+ 'readme --templates="tools/readme-templates"'
161
+ );
162
+ json.scripts["format-prettier"] = `${pmc.exec} prettier --write --ignore-unknown --no-error-on-unmatched-pattern --cache && git update-index`;
163
+ json.scripts.lint = pmc.run("storm-lint", "all --skip-cspell");
164
+ json.scripts["lint-knip"] = `${pmc.exec} knip`;
165
+ json.scripts["lint-sherif"] = `${pmc.exec} sherif -i typescript -i react -i react-dom`;
166
+ json.scripts["lint-ls"] = `${pmc.exec} ls-lint --config="./node_modules/@storm-software/linting-tools/ls-lint/ls-lint.yml"`;
167
+ json.packageManager ??= `${packageManager}@${packageManagerVersion}`;
168
+ json.engines = {
169
+ node: `>=${_chunk3G7PNDZ5js.nodeVersion}`,
170
+ [packageManager]: `>=${packageManagerVersion}`
171
+ };
172
+ return json;
173
+ });
174
+ _devkit.generateFiles.call(void 0, tree, path.join(__dirname, "files"), projectRoot, {
175
+ ...options,
176
+ packageManager,
177
+ packageManagerVersion,
178
+ pnpmVersion: _chunk3G7PNDZ5js.pnpmVersion,
179
+ nodeVersion: _chunk3G7PNDZ5js.nodeVersion,
180
+ lockFileName,
181
+ exec: pmc.exec
182
+ });
183
+ await _devkit.formatFiles.call(void 0, tree);
184
+ let dependencies = {
185
+ "@ls-lint/ls-lint": "2.2.3",
186
+ "@ltd/j-toml": "1.38.0",
187
+ "@nx/devkit": "^20.2.2",
188
+ "@nx/eslint-plugin": "^20.2.2",
189
+ "@nx/js": "^20.2.2",
190
+ "@nx/workspace": "^20.2.2",
191
+ "@storm-software/config": "latest",
192
+ "@storm-software/git-tools": "latest",
193
+ "@storm-software/linting-tools": "latest",
194
+ "@storm-software/testing-tools": "latest",
195
+ "@storm-software/workspace-tools": "latest",
196
+ "@storm-software/eslint": "latest",
197
+ "@storm-software/cspell": "latest",
198
+ "@storm-software/prettier": "latest",
199
+ "@taplo/cli": "0.7.0",
200
+ "@types/node": "^25.3.0",
201
+ copyfiles: "2.4.1",
202
+ eslint: "9.5.0",
203
+ jest: "29.7.0",
204
+ "jest-environment-node": "29.7.0",
205
+ knip: "5.25.2",
206
+ lefthook: "1.6.18",
207
+ nx: "^20.2.2",
208
+ prettier: "3.3.2",
209
+ "prettier-plugin-prisma": "5.0.0",
210
+ rimraf: "5.0.7",
211
+ sherif: "0.10.0",
212
+ "ts-jest": "29.1.5",
213
+ "ts-node": "10.9.2",
214
+ tslib: "2.6.3",
215
+ typescript: "5.5.3",
216
+ verdaccio: "5.31.1"
217
+ };
218
+ if (options.includeApps) {
219
+ dependencies = {
220
+ ...dependencies,
221
+ react: "latest",
222
+ "react-dom": "latest",
223
+ storybook: "latest",
224
+ "@storybook/addons": "latest",
225
+ "@nx/react": "latest",
226
+ "@nx/next": "latest",
227
+ "@nx/node": "latest",
228
+ "@nx/storybook": "latest",
229
+ "jest-environment-jsdom": "29.7.0"
230
+ };
231
+ }
232
+ if (options.includeRust) {
233
+ dependencies = {
234
+ ...dependencies,
235
+ "@monodon/rust": "1.4.0"
236
+ };
237
+ }
238
+ if (options.nxCloud) {
239
+ dependencies = {
240
+ ...dependencies,
241
+ "nx-cloud": "latest"
242
+ };
243
+ }
244
+ await Promise.resolve(
245
+ _devkit.addDependenciesToPackageJson.call(void 0,
246
+ tree,
247
+ dependencies,
248
+ {},
249
+ _devkit.joinPathFragments.call(void 0, projectRoot, "package.json")
250
+ )
251
+ );
252
+ return null;
253
+ }
254
+ var generator_default = _chunkIZLEVS44js.withRunGenerator.call(void 0,
255
+ "Storm Workspace Preset Generator",
256
+ presetGeneratorFn
257
+ );
258
+
259
+
260
+
261
+
262
+ exports.presetGeneratorFn = presetGeneratorFn; exports.generator_default = generator_default;
@@ -0,0 +1,32 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk2VQ55YPWjs = require('./chunk-2VQ55YPW.js');
4
+
5
+
6
+
7
+ var _chunkHYK7OVZ3js = require('./chunk-HYK7OVZ3.js');
8
+
9
+ // src/executors/cargo-build/executor.ts
10
+ async function cargoBuildExecutor(options, context) {
11
+ const command = _chunkHYK7OVZ3js.buildCargoCommand.call(void 0, "build", options, context);
12
+ return await _chunkHYK7OVZ3js.cargoCommand.call(void 0, context.root, ...command);
13
+ }
14
+ var executor_default = _chunk2VQ55YPWjs.withRunExecutor.call(void 0,
15
+ "Cargo - Build",
16
+ cargoBuildExecutor,
17
+ {
18
+ skipReadingConfig: false,
19
+ hooks: {
20
+ applyDefaultOptions: (options) => {
21
+ options.outputPath ??= "dist/{projectRoot}/target";
22
+ options.toolchain ??= "stable";
23
+ return options;
24
+ }
25
+ }
26
+ }
27
+ );
28
+
29
+
30
+
31
+
32
+ exports.cargoBuildExecutor = cargoBuildExecutor; exports.executor_default = executor_default;
@@ -1,12 +1,12 @@
1
+ import {
2
+ getWorkspacePackageManager
3
+ } from "./chunk-EXRSULNO.mjs";
1
4
  import {
2
5
  getGitHubTools
3
6
  } from "./chunk-54BBSJHK.mjs";
4
7
  import {
5
8
  addPackageJsonGitHead
6
- } from "./chunk-IDSDBOWW.mjs";
7
- import {
8
- getWorkspacePackageManager
9
- } from "./chunk-EXRSULNO.mjs";
9
+ } from "./chunk-DPKPIVRB.mjs";
10
10
  import {
11
11
  getConfig
12
12
  } from "./chunk-I4KVL3GR.mjs";
@@ -0,0 +1,32 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk2VQ55YPWjs = require('./chunk-2VQ55YPW.js');
4
+
5
+
6
+
7
+ var _chunkHYK7OVZ3js = require('./chunk-HYK7OVZ3.js');
8
+
9
+ // src/executors/cargo-format/executor.ts
10
+ async function cargoFormatExecutor(options, context) {
11
+ const command = _chunkHYK7OVZ3js.buildCargoCommand.call(void 0, "fmt", options, context);
12
+ return await _chunkHYK7OVZ3js.cargoCommand.call(void 0, context.root, ...command);
13
+ }
14
+ var executor_default = _chunk2VQ55YPWjs.withRunExecutor.call(void 0,
15
+ "Cargo - Format",
16
+ cargoFormatExecutor,
17
+ {
18
+ skipReadingConfig: false,
19
+ hooks: {
20
+ applyDefaultOptions: (options) => {
21
+ options.outputPath ??= "dist/{projectRoot}/target";
22
+ options.toolchain ??= "stable";
23
+ return options;
24
+ }
25
+ }
26
+ }
27
+ );
28
+
29
+
30
+
31
+
32
+ exports.cargoFormatExecutor = cargoFormatExecutor; exports.executor_default = executor_default;
@@ -0,0 +1,32 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk2VQ55YPWjs = require('./chunk-2VQ55YPW.js');
4
+
5
+
6
+
7
+ var _chunkHYK7OVZ3js = require('./chunk-HYK7OVZ3.js');
8
+
9
+ // src/executors/cargo-clippy/executor.ts
10
+ async function cargoClippyExecutor(options, context) {
11
+ const command = _chunkHYK7OVZ3js.buildCargoCommand.call(void 0, "clippy", options, context);
12
+ return await _chunkHYK7OVZ3js.cargoCommand.call(void 0, context.root, ...command);
13
+ }
14
+ var executor_default = _chunk2VQ55YPWjs.withRunExecutor.call(void 0,
15
+ "Cargo - Clippy",
16
+ cargoClippyExecutor,
17
+ {
18
+ skipReadingConfig: false,
19
+ hooks: {
20
+ applyDefaultOptions: (options) => {
21
+ options.toolchain ??= "stable";
22
+ options.fix ??= false;
23
+ return options;
24
+ }
25
+ }
26
+ }
27
+ );
28
+
29
+
30
+
31
+
32
+ exports.cargoClippyExecutor = cargoClippyExecutor; exports.executor_default = executor_default;
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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 _chunkMKJITWLNjs = require('./chunk-MKJITWLN.js');
3
+ var _chunk3MXZ2RJFjs = require('./chunk-3MXZ2RJF.js');
4
4
 
5
5
 
6
- var _chunk46OIJVV3js = require('./chunk-46OIJVV3.js');
6
+ var _chunkMKJITWLNjs = require('./chunk-MKJITWLN.js');
7
7
 
8
8
 
9
- var _chunk3MXZ2RJFjs = require('./chunk-3MXZ2RJF.js');
9
+ var _chunk5T4QN26Pjs = require('./chunk-5T4QN26P.js');
10
10
 
11
11
 
12
12
  var _chunkIMY2BU43js = require('./chunk-IMY2BU43.js');
@@ -118,7 +118,7 @@ async function npmPublishExecutorFn(options, context) {
118
118
  return { success: true };
119
119
  }
120
120
  await replaceDepsAliases(jiti, packageRoot, context.root, packageManager);
121
- await _chunk46OIJVV3js.addPackageJsonGitHead.call(void 0, packageRoot);
121
+ await _chunk5T4QN26Pjs.addPackageJsonGitHead.call(void 0, packageRoot);
122
122
  const npmPublishCommandSegments = [`npm publish --json`];
123
123
  const npmViewCommandSegments = [
124
124
  `npm view ${packageName} versions dist-tags --json`
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-TBW5MCN6.mjs";
11
11
  import {
12
12
  __dirname
13
- } from "./chunk-KDZGNUBS.mjs";
13
+ } from "./chunk-77J7VIDG.mjs";
14
14
 
15
15
  // src/generators/neutral-library/generator.ts
16
16
  import {
@@ -0,0 +1,41 @@
1
+ import {
2
+ withRunExecutor
3
+ } from "./chunk-Y3CN5O3K.mjs";
4
+ import {
5
+ buildCargoCommand,
6
+ cargoCommand
7
+ } from "./chunk-C3G4MZGP.mjs";
8
+
9
+ // src/executors/cargo-doc/executor.ts
10
+ async function cargoDocExecutor(options, context) {
11
+ const opts = { ...options };
12
+ opts["no-deps"] = opts.noDeps;
13
+ delete opts.noDeps;
14
+ const command = buildCargoCommand("doc", options, context);
15
+ return await cargoCommand(context.root, ...command);
16
+ }
17
+ var executor_default = withRunExecutor(
18
+ "Cargo - Doc",
19
+ cargoDocExecutor,
20
+ {
21
+ skipReadingConfig: false,
22
+ hooks: {
23
+ applyDefaultOptions: (options) => {
24
+ options.outputPath ??= "dist/{projectRoot}/docs";
25
+ options.toolchain ??= "stable";
26
+ options.release ??= options.profile ? false : true;
27
+ options.allFeatures ??= true;
28
+ options.lib ??= true;
29
+ options.bins ??= true;
30
+ options.examples ??= true;
31
+ options.noDeps ??= false;
32
+ return options;
33
+ }
34
+ }
35
+ }
36
+ );
37
+
38
+ export {
39
+ cargoDocExecutor,
40
+ executor_default
41
+ };
@@ -0,0 +1,32 @@
1
+ import {
2
+ withRunExecutor
3
+ } from "./chunk-Y3CN5O3K.mjs";
4
+ import {
5
+ buildCargoCommand,
6
+ cargoCommand
7
+ } from "./chunk-C3G4MZGP.mjs";
8
+
9
+ // src/executors/cargo-format/executor.ts
10
+ async function cargoFormatExecutor(options, context) {
11
+ const command = buildCargoCommand("fmt", options, context);
12
+ return await cargoCommand(context.root, ...command);
13
+ }
14
+ var executor_default = withRunExecutor(
15
+ "Cargo - Format",
16
+ cargoFormatExecutor,
17
+ {
18
+ skipReadingConfig: false,
19
+ hooks: {
20
+ applyDefaultOptions: (options) => {
21
+ options.outputPath ??= "dist/{projectRoot}/target";
22
+ options.toolchain ??= "stable";
23
+ return options;
24
+ }
25
+ }
26
+ }
27
+ );
28
+
29
+ export {
30
+ cargoFormatExecutor,
31
+ executor_default
32
+ };
@@ -0,0 +1,32 @@
1
+ import {
2
+ withRunExecutor
3
+ } from "./chunk-Y3CN5O3K.mjs";
4
+ import {
5
+ buildCargoCommand,
6
+ cargoCommand
7
+ } from "./chunk-C3G4MZGP.mjs";
8
+
9
+ // src/executors/cargo-clippy/executor.ts
10
+ async function cargoClippyExecutor(options, context) {
11
+ const command = buildCargoCommand("clippy", options, context);
12
+ return await cargoCommand(context.root, ...command);
13
+ }
14
+ var executor_default = withRunExecutor(
15
+ "Cargo - Clippy",
16
+ cargoClippyExecutor,
17
+ {
18
+ skipReadingConfig: false,
19
+ hooks: {
20
+ applyDefaultOptions: (options) => {
21
+ options.toolchain ??= "stable";
22
+ options.fix ??= false;
23
+ return options;
24
+ }
25
+ }
26
+ }
27
+ );
28
+
29
+ export {
30
+ cargoClippyExecutor,
31
+ executor_default
32
+ };
@@ -2,18 +2,18 @@ import {
2
2
  normalizeOptions,
3
3
  typeScriptLibraryGeneratorFn
4
4
  } from "./chunk-XSHN3XHD.mjs";
5
- import {
6
- typesNodeVersion
7
- } from "./chunk-DEHA5C77.mjs";
8
5
  import {
9
6
  withRunGenerator
10
7
  } from "./chunk-3G7TXYW2.mjs";
8
+ import {
9
+ typesNodeVersion
10
+ } from "./chunk-DEHA5C77.mjs";
11
11
  import {
12
12
  joinPaths
13
13
  } from "./chunk-TBW5MCN6.mjs";
14
14
  import {
15
15
  __dirname
16
- } from "./chunk-KDZGNUBS.mjs";
16
+ } from "./chunk-77J7VIDG.mjs";
17
17
 
18
18
  // src/generators/node-library/generator.ts
19
19
  import {
@@ -0,0 +1,82 @@
1
+ import {
2
+ normalizeOptions,
3
+ typeScriptLibraryGeneratorFn
4
+ } from "./chunk-XSHN3XHD.mjs";
5
+ import {
6
+ typesNodeVersion
7
+ } from "./chunk-DEHA5C77.mjs";
8
+ import {
9
+ withRunGenerator
10
+ } from "./chunk-3G7TXYW2.mjs";
11
+ import {
12
+ joinPaths
13
+ } from "./chunk-TBW5MCN6.mjs";
14
+ import {
15
+ __dirname
16
+ } from "./chunk-77J7VIDG.mjs";
17
+
18
+ // src/generators/node-library/generator.ts
19
+ import {
20
+ formatFiles,
21
+ generateFiles,
22
+ names,
23
+ offsetFromRoot
24
+ } from "@nx/devkit";
25
+ async function nodeLibraryGeneratorFn(tree, schema, config) {
26
+ const filesDir = joinPaths(
27
+ __dirname,
28
+ "src",
29
+ "generators",
30
+ "node-library",
31
+ "files"
32
+ );
33
+ const tsLibraryGeneratorOptions = {
34
+ platform: "node",
35
+ devDependencies: {
36
+ "@types/node": typesNodeVersion
37
+ },
38
+ buildExecutor: "@storm-software/workspace-tools:unbuild",
39
+ ...schema,
40
+ directory: schema.directory,
41
+ description: schema.description
42
+ };
43
+ const options = await normalizeOptions(tree, tsLibraryGeneratorOptions);
44
+ const { className, name, propertyName } = names(options.name);
45
+ generateFiles(tree, filesDir, options.projectRoot, {
46
+ ...schema,
47
+ dot: ".",
48
+ className,
49
+ name,
50
+ namespace: process.env.STORM_NAMESPACE ?? "storm-software",
51
+ description: schema.description ?? "",
52
+ propertyName,
53
+ js: !!options.js,
54
+ cliCommand: "nx",
55
+ strict: void 0,
56
+ tmpl: "",
57
+ offsetFromRoot: offsetFromRoot(options.projectRoot),
58
+ buildable: options.bundler && options.bundler !== "none",
59
+ hasUnitTestRunner: options.unitTestRunner !== "none"
60
+ });
61
+ await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
62
+ await formatFiles(tree);
63
+ return null;
64
+ }
65
+ var generator_default = withRunGenerator(
66
+ "TypeScript Library Creator (NodeJs Platform)",
67
+ nodeLibraryGeneratorFn,
68
+ {
69
+ hooks: {
70
+ applyDefaultOptions: (options) => {
71
+ options.description ??= "A library used by Storm Software to support NodeJs applications";
72
+ options.platform ??= "node";
73
+ return options;
74
+ }
75
+ }
76
+ }
77
+ );
78
+
79
+ export {
80
+ nodeLibraryGeneratorFn,
81
+ generator_default
82
+ };