create-storm-workspace 1.60.4 → 1.62.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 (85) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +49 -8
  3. package/bin/index.ts +64 -29
  4. package/index.js +2356 -53
  5. package/package.json +3 -3
  6. package/packages/build-tools/src/build/index.d.ts +3 -0
  7. package/packages/build-tools/src/build/rolldown.d.ts +20 -0
  8. package/packages/build-tools/src/build/ts-build.d.ts +20 -0
  9. package/packages/build-tools/src/build/unbuild.d.ts +20 -0
  10. package/packages/build-tools/src/cli/index.d.ts +2 -0
  11. package/packages/build-tools/src/config/browser-config.d.ts +2 -0
  12. package/packages/build-tools/src/config/default-config.d.ts +2 -0
  13. package/packages/build-tools/src/config/get-config.d.ts +2 -0
  14. package/packages/build-tools/src/config/get-rolldown-config.d.ts +6 -0
  15. package/packages/build-tools/src/config/get-unbuild-config.d.ts +6 -0
  16. package/packages/build-tools/src/config/index.d.ts +7 -0
  17. package/packages/build-tools/src/config/neutral-config.d.ts +2 -0
  18. package/packages/build-tools/src/config/node-config.d.ts +3 -0
  19. package/packages/build-tools/src/index.d.ts +6 -0
  20. package/packages/build-tools/src/plugins/analyze-plugin.d.ts +4 -0
  21. package/packages/build-tools/src/plugins/index.d.ts +2 -0
  22. package/packages/build-tools/src/plugins/swc-plugin.d.ts +2 -0
  23. package/packages/build-tools/src/types.d.ts +211 -0
  24. package/packages/build-tools/src/utils/apply-default-options.d.ts +6 -0
  25. package/packages/build-tools/src/utils/generate-package-json.d.ts +3 -0
  26. package/packages/build-tools/src/utils/get-entry-points.d.ts +3 -0
  27. package/packages/build-tools/src/utils/get-file-banner.d.ts +8 -0
  28. package/packages/build-tools/src/utils/get-project-deps.d.ts +5 -0
  29. package/packages/build-tools/src/utils/index.d.ts +7 -0
  30. package/packages/build-tools/src/utils/out-extension.d.ts +6 -0
  31. package/packages/build-tools/src/utils/run-tsup-build.d.ts +3 -0
  32. package/packages/build-tools/src/utils/task-graph.d.ts +6 -0
  33. package/packages/config/src/define-config.d.ts +154 -0
  34. package/packages/config/src/index.d.ts +11 -0
  35. package/packages/config/src/schema.d.ts +1655 -0
  36. package/packages/config/src/types.d.ts +23 -0
  37. package/packages/config-tools/src/config-file/get-config-file.d.ts +16 -0
  38. package/packages/config-tools/src/config-file/index.d.ts +1 -0
  39. package/packages/config-tools/src/create-storm-config.d.ts +26 -0
  40. package/packages/config-tools/src/env/get-env.d.ts +15 -0
  41. package/packages/config-tools/src/env/index.d.ts +2 -0
  42. package/packages/config-tools/src/env/set-env.d.ts +14 -0
  43. package/packages/config-tools/src/index.d.ts +13 -0
  44. package/packages/config-tools/src/types.d.ts +33 -0
  45. package/packages/config-tools/src/utilities/apply-workspace-tokens.d.ts +4 -0
  46. package/packages/config-tools/src/utilities/chalk.d.ts +23 -0
  47. package/packages/config-tools/src/utilities/correct-paths.d.ts +1 -0
  48. package/packages/config-tools/src/utilities/file-path-utils.d.ts +2 -0
  49. package/packages/config-tools/src/utilities/find-up.d.ts +4 -0
  50. package/packages/config-tools/src/utilities/find-workspace-root.d.ts +14 -0
  51. package/packages/config-tools/src/utilities/get-default-config.d.ts +15 -0
  52. package/packages/config-tools/src/utilities/get-log-level.d.ts +15 -0
  53. package/packages/config-tools/src/utilities/index.d.ts +10 -0
  54. package/packages/config-tools/src/utilities/logger.d.ts +74 -0
  55. package/packages/config-tools/src/utilities/process-handler.d.ts +4 -0
  56. package/packages/config-tools/src/utilities/run.d.ts +17 -0
  57. package/packages/create-storm-workspace/bin/index.d.ts +2 -0
  58. package/packages/workspace-tools/index.d.ts +28 -0
  59. package/packages/workspace-tools/src/base/base-executor.d.ts +6 -0
  60. package/packages/workspace-tools/src/base/base-generator.d.ts +4 -0
  61. package/packages/workspace-tools/src/base/index.d.ts +3 -0
  62. package/packages/workspace-tools/src/base/typescript-library-generator.d.ts +20 -0
  63. package/packages/workspace-tools/src/executors/cargo-publish/executor.d.ts +6 -0
  64. package/packages/workspace-tools/src/executors/npm-publish/executor.d.ts +3 -0
  65. package/packages/workspace-tools/src/executors/rolldown/executor.d.ts +11 -0
  66. package/packages/workspace-tools/src/executors/tsup/executor.d.ts +10 -0
  67. package/packages/workspace-tools/src/executors/tsup-browser/executor.d.ts +9 -0
  68. package/packages/workspace-tools/src/executors/tsup-neutral/executor.d.ts +10 -0
  69. package/packages/workspace-tools/src/executors/tsup-node/executor.d.ts +9 -0
  70. package/packages/workspace-tools/src/executors/typia/executor.d.ts +10 -0
  71. package/packages/workspace-tools/src/executors/unbuild/executor.d.ts +11 -0
  72. package/packages/workspace-tools/src/generators/config-schema/generator.d.ts +13 -0
  73. package/packages/workspace-tools/src/generators/init/init.d.ts +4 -0
  74. package/packages/workspace-tools/src/generators/node-library/generator.d.ts +5 -0
  75. package/packages/workspace-tools/src/generators/preset/generator.d.ts +5 -0
  76. package/packages/workspace-tools/src/generators/release-version/generator.d.ts +14 -0
  77. package/packages/workspace-tools/src/utils/apply-workspace-tokens.d.ts +8 -0
  78. package/packages/workspace-tools/src/utils/cargo.d.ts +27 -0
  79. package/packages/workspace-tools/src/utils/create-cli-options.d.ts +1 -0
  80. package/packages/workspace-tools/src/utils/get-project-configurations.d.ts +13 -0
  81. package/packages/workspace-tools/src/utils/index.d.ts +8 -0
  82. package/packages/workspace-tools/src/utils/lock-file.d.ts +23 -0
  83. package/packages/workspace-tools/src/utils/toml.d.ts +167 -0
  84. package/packages/workspace-tools/src/utils/typia-transform.d.ts +2 -0
  85. package/packages/workspace-tools/src/utils/versions.d.ts +18 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## 1.62.0 (2024-06-03)
2
+
3
+
4
+ ### 🚀 Features
5
+
6
+ - **storm-ops:** Upgrade Nx packages and resolve linting issues ([685c2bb9](https://github.com/storm-software/storm-ops/commit/685c2bb9))
7
+
8
+ ## 1.61.0 (2024-04-13)
9
+
10
+
11
+ ### 🚀 Features
12
+
13
+ - **config-tools:** No longer require `config` in storm console write functions ([ad8c6511](https://github.com/storm-software/storm-ops/commit/ad8c6511))
14
+
15
+
16
+ ### ❤️ Thank You
17
+
18
+ - Patrick Sullivan
19
+
1
20
  ## 1.60.4 (2024-04-08)
2
21
 
3
22
 
package/README.md CHANGED
@@ -3,11 +3,16 @@
3
3
  <!-- markdownlint-disable -->
4
4
 
5
5
 
6
- <div align="center"><img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/storm-banner.gif" width="100%" altText="Storm Software" /></div>
6
+ <div align="center"><img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/storm-banner.gif" width="100%" alt="Storm Software" /></div>
7
7
  <br />
8
8
 
9
9
  <div align="center">
10
- <a href="https://stormsoftware.com" target="_blank">Website</a> | <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> | <a href="https://github.com/storm-software/storm-ops" target="_blank">Repository</a> | <a href="https://stormstack.github.io/stormstack/" target="_blank">Documentation</a> | <a href="https://github.com/storm-software/storm-ops/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a> | <a href="https://github.com/storm-software/storm-ops/issues/new?assignees=&labels=enhancement&template=feature-request.yml&title=Feature Request%3A+">Request a Feature</a> | <a href="https://github.com/storm-software/storm-ops/issues/new?assignees=&labels=documentation&template=documentation.yml&title=Documentation Request%3A+">Request Documentation</a> | <a href="https://github.com/storm-software/storm-ops/discussions">Ask a Question</a>
10
+ <b>
11
+ <a href="https://stormsoftware.com" target="_blank">Website</a> •
12
+ <a href="https://github.com/storm-software/storm-ops" target="_blank">GitHub</a> •
13
+ <a href="https://discord.gg/MQ6YVzakM5">Discord</a> • <a href="https://stormstack.github.io/stormstack/" target="_blank">Docs</a> • <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> •
14
+ <a href="https://github.com/storm-software/storm-ops/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a>
15
+ </b>
11
16
  </div>
12
17
 
13
18
  <br />
@@ -16,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
16
21
 
17
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
18
23
 
19
- [![Version](https://img.shields.io/badge/version-1.60.3-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
24
+ [![Version](https://img.shields.io/badge/version-1.61.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
20
25
  [![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
21
26
 
22
27
  > [!IMPORTANT]
@@ -84,6 +89,9 @@ Run `nx test create-storm-workspace` to execute the unit tests via [Jest](https:
84
89
 
85
90
  Storm workspaces are built using <a href="https://nx.dev/" target="_blank">Nx</a>, a set of extensible dev tools for monorepos, which helps you develop like Google, Facebook, and Microsoft. Building on top of Nx, the Open System provides a set of tools and patterns that help you scale your monorepo to many teams while keeping the codebase maintainable.
86
91
 
92
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
93
+ <br />
94
+
87
95
  ## Roadmap
88
96
 
89
97
  See the [open issues](https://github.com/storm-software/storm-ops/issues) for a list of proposed features (and known issues).
@@ -92,6 +100,9 @@ See the [open issues](https://github.com/storm-software/storm-ops/issues) for a
92
100
  - [Top Bugs](https://github.com/storm-software/storm-ops/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc) (Add your votes using the 👍 reaction)
93
101
  - [Newest Bugs](https://github.com/storm-software/storm-ops/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
94
102
 
103
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
104
+ <br />
105
+
95
106
  ## Support
96
107
 
97
108
  Reach out to the maintainer at one of the following places:
@@ -100,16 +111,25 @@ Reach out to the maintainer at one of the following places:
100
111
  - [GitHub discussions](https://github.com/storm-software/storm-ops/discussions)
101
112
  - <support@stormsoftware.com>
102
113
 
114
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
115
+ <br />
116
+
103
117
  ## License
104
118
 
105
119
  This project is licensed under the **Apache License 2.0**. Feel free to edit and distribute this template as you like.
106
120
 
107
121
  See [LICENSE](LICENSE) for more information.
108
122
 
123
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
124
+ <br />
125
+
109
126
  ## Changelog
110
127
 
111
128
  This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Every release, along with the migration instructions, is documented in the [CHANGELOG](CHANGELOG.md) file
112
129
 
130
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
131
+ <br />
132
+
113
133
  ## Contributing
114
134
 
115
135
  First off, thanks for taking the time to contribute! Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are **greatly appreciated**.
@@ -125,6 +145,9 @@ Please adhere to this project's [code of conduct](.github/CODE_OF_CONDUCT.md).
125
145
 
126
146
  You can use [markdownlint-cli](https://github.com/storm-software/storm-ops/markdownlint-cli) to check for common markdown style inconsistency.
127
147
 
148
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
149
+ <br />
150
+
128
151
  ## Contributors
129
152
 
130
153
  Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
@@ -142,7 +165,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
142
165
  <tfoot>
143
166
  <tr>
144
167
  <td align="center" size="13px" colspan="7">
145
- <img src="https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg">
168
+ <img src="https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg" alt="All Contributors">
146
169
  <a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a>
147
170
  </img>
148
171
  </td>
@@ -154,22 +177,40 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
154
177
 
155
178
  This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
156
179
 
180
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
157
181
  <br />
182
+
183
+ <hr />
158
184
  <br />
185
+
159
186
  <div align="center">
160
- <img src="https://pub-e71cff0f90204755bc910518d63cacf8.r2.dev/logo-opengraph.gif" width="100%"/>
187
+ <img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/logo-banner.png" width="100%" alt="Storm Software" />
161
188
  </div>
162
189
  <br />
163
190
 
164
191
  <div align="center">
165
- <a href="https://www.patsullivan.org" target="_blank">Website</a> | <a href="https://www.patsullivan.org/contact" target="_blank">Contact</a> | <a href="https://linkedin.com/in/patrick-sullivan-865526b0" target="_blank">LinkedIn</a> | <a href="https://medium.com/@pat.joseph.sullivan" target="_blank">Medium</a> | <a href="https://github.com/sullivanpj" target="_blank">GitHub</a> | <a href="https://keybase.io/sullivanp" target="_blank">OpenPGP Key</a>
192
+ <b>
193
+ <a href="https://stormsoftware.com" target="_blank">Website</a> • <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> • <a href="https://discord.gg/MQ6YVzakM5">Discord</a> • <a href="https://linkedin.com/in/pat-sullivan-dev" target="_blank">LinkedIn</a> • <a href="https://medium.com/@pat.joseph.sullivan" target="_blank">Medium</a> • <a href="https://github.com/storm-software" target="_blank">GitHub</a> • <a href="https://keybase.io/sullivanp" target="_blank">OpenPGP Key</a>
194
+ </b>
166
195
  </div>
167
196
 
168
197
  <div align="center">
169
- <p><b>Fingerprint:</b> 1BD2 7192 7770 2549 F4C9 F238 E6AD C420 DA5C 4C2D</p>
198
+ <b>Fingerprint:</b> 1BD2 7192 7770 2549 F4C9 F238 E6AD C420 DA5C 4C2D
170
199
  </div>
200
+ <br />
201
+
202
+ Storm Software is an open source software development organization and creator of Acidic, StormStack and StormCloud.
203
+
204
+ Our mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
171
205
 
172
- <h3 align="center">💻 Visit <a href="https://www.patsullivan.org" target="_blank">patsullivan.org</a> to stay up to date with this developer</h3><br /><br />
206
+ If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our website!
207
+
208
+ <br />
209
+ <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3>
210
+
211
+ <br />
212
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
213
+ <br />
173
214
 
174
215
 
175
216
  <!-- markdownlint-restore -->
package/bin/index.ts CHANGED
@@ -1,17 +1,23 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- /* eslint-disable @typescript-eslint/no-explicit-any */
4
-
5
3
  import { getNpmPackageVersion } from "@nx/workspace/src/generators/utils/get-npm-package-version";
6
- import type { NxClientMode, PresetGeneratorSchema } from "@storm-software/workspace-tools";
4
+ import type {
5
+ NxClientMode,
6
+ PresetGeneratorSchema
7
+ } from "@storm-software/workspace-tools";
7
8
  import { createWorkspace } from "create-nx-workspace";
8
9
  import { prompt } from "enquirer";
9
10
 
10
11
  async function main() {
12
+ const { getStopwatch, writeFatal, writeInfo, writeSuccess, loadStormConfig } =
13
+ await import("@storm-software/config-tools");
14
+
15
+ const stopwatch = getStopwatch("create-storm-workspace");
16
+ const config = await loadStormConfig();
11
17
  try {
12
- console.log("⚡ Collecting required info to creating a Storm Workspace");
18
+ writeInfo("⚡ Preparing to create the Storm Workspace", config);
13
19
 
14
- ["SIGTERM", "SIGINT", "SIGUSR2"].map((type) => {
20
+ ["SIGTERM", "SIGINT", "SIGUSR2"].map(type => {
15
21
  process.once(type, () => {
16
22
  try {
17
23
  console.info(`process.on ${type}`);
@@ -57,7 +63,10 @@ async function main() {
57
63
  namespace = response.namespace;
58
64
  }
59
65
 
60
- let includeApps = process.argv.length > 5 && process.argv[5] ? Boolean(process.argv[5]) : null;
66
+ let includeApps =
67
+ process.argv.length > 5 && process.argv[5]
68
+ ? Boolean(process.argv[5])
69
+ : null;
61
70
  if (!includeApps && typeof includeApps !== "boolean") {
62
71
  const response = await prompt<{ includeApps: boolean }>({
63
72
  type: "confirm",
@@ -69,7 +78,22 @@ async function main() {
69
78
  includeApps = response.includeApps;
70
79
  }
71
80
 
72
- let description = process.argv.length > 6 ? process.argv[6] : null;
81
+ let includeRust =
82
+ process.argv.length > 6 && process.argv[6]
83
+ ? Boolean(process.argv[6])
84
+ : null;
85
+ if (!includeRust && typeof includeRust !== "boolean") {
86
+ const response = await prompt<{ includeRust: boolean }>({
87
+ type: "confirm",
88
+ name: "includeRust",
89
+ message:
90
+ "Should Rust be included in the workspace (adds a `rust` folder with a `Cargo.toml` file)?",
91
+ initial: false
92
+ });
93
+ includeRust = response.includeRust;
94
+ }
95
+
96
+ let description = process.argv.length > 7 ? process.argv[7] : null;
73
97
  if (!description) {
74
98
  const response = await prompt<{ description: string }>({
75
99
  type: "input",
@@ -83,7 +107,7 @@ async function main() {
83
107
  description = response.description;
84
108
  }
85
109
 
86
- let repositoryUrl = process.argv.length > 7 ? process.argv[7] : null;
110
+ let repositoryUrl = process.argv.length > 8 ? process.argv[8] : null;
87
111
  if (!repositoryUrl) {
88
112
  const response = await prompt<{ repositoryUrl: string }>({
89
113
  type: "input",
@@ -94,7 +118,10 @@ async function main() {
94
118
  repositoryUrl = response.repositoryUrl;
95
119
  }
96
120
 
97
- let nxCloud = process.argv.length > 8 && process.argv[8] ? Boolean(process.argv[8]) : null;
121
+ let nxCloud =
122
+ process.argv.length > 9 && process.argv[9]
123
+ ? Boolean(process.argv[9])
124
+ : null;
98
125
  if (!nxCloud && typeof nxCloud !== "boolean") {
99
126
  const response = await prompt<{ nxCloud: boolean }>({
100
127
  type: "confirm",
@@ -106,7 +133,9 @@ async function main() {
106
133
  nxCloud = response.nxCloud;
107
134
  }
108
135
 
109
- let mode: NxClientMode = (process.argv.length > 9 ? process.argv[9] : null) as NxClientMode;
136
+ let mode: NxClientMode = (
137
+ process.argv.length > 9 ? process.argv[9] : null
138
+ ) as NxClientMode;
110
139
  if (!mode) {
111
140
  mode = (
112
141
  await prompt<{ mode: "light" | "dark" }>({
@@ -122,32 +151,38 @@ async function main() {
122
151
  ).mode;
123
152
  }
124
153
 
125
- console.log(`⚡ Creating the Storm Workspace: ${name}`);
154
+ writeInfo(`⚡ Creating the Storm Workspace: ${name}`, config);
126
155
 
127
156
  const version = getNpmPackageVersion("@storm-software/workspace-tools");
128
- const { directory } = await createWorkspace<PresetGeneratorSchema & { interactive: boolean }>(
129
- `@storm-software/workspace-tools@${version ? version : "latest"}`,
130
- {
131
- name,
132
- organization,
133
- namespace,
134
- description,
135
- includeApps,
136
- repositoryUrl,
137
- nxCloud: "skip",
138
- packageManager: "pnpm",
139
- mode: "dark",
140
- interactive: false
141
- }
142
- );
157
+ const { directory } = await createWorkspace<
158
+ PresetGeneratorSchema & { interactive: boolean }
159
+ >(`@storm-software/workspace-tools@${version ? version : "latest"}`, {
160
+ name,
161
+ organization,
162
+ namespace,
163
+ description,
164
+ includeApps,
165
+ includeRust,
166
+ repositoryUrl,
167
+ nxCloud: "skip",
168
+ packageManager: "pnpm",
169
+ mode: "dark",
170
+ interactive: false
171
+ });
143
172
 
144
- console.log(`⚡ Successfully created the workspace: ${directory}.`);
173
+ writeSuccess(
174
+ `⚡ Successfully created the workspace: ${directory}.`,
175
+ config
176
+ );
145
177
  } catch (error) {
146
- console.log(
147
- "❌ An error occurred while creating the workspace. Please correct the below issue:"
178
+ writeFatal(
179
+ "❌ An error occurred while creating the workspace. Please correct the below issue:",
180
+ config
148
181
  );
149
182
  console.error(error);
150
183
  process.exit(1);
184
+ } finally {
185
+ stopwatch();
151
186
  }
152
187
  }
153
188