create-storm-workspace 1.97.241 → 1.97.243

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/CHANGELOG.md CHANGED
@@ -2,6 +2,30 @@
2
2
 
3
3
  # Changelog for Storm Ops - Create Storm Workspace
4
4
 
5
+ ## [1.97.242](https://github.com/storm-software/storm-ops/releases/tag/create-storm-workspace%401.97.242) (06/30/2026)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Update repository packages' dependencies ([6f81fb5b5](https://github.com/storm-software/storm-ops/commit/6f81fb5b5))
10
+
11
+ ### Bug Fixes
12
+
13
+ - **monorepo:** Resolve typing issues resulting from Nx upgrade ([82b59fcc9](https://github.com/storm-software/storm-ops/commit/82b59fcc9))
14
+
15
+ ### Updated Dependencies
16
+
17
+ - Updated **config-tools** to **v1.190.82**
18
+
19
+ ## [1.97.241](https://github.com/storm-software/storm-ops/releases/tag/create-storm-workspace%401.97.241) (06/29/2026)
20
+
21
+ ### Bug Fixes
22
+
23
+ - **workspace-tools:** Resolve issue applying the cargo project name parameter ([f927214be](https://github.com/storm-software/storm-ops/commit/f927214be))
24
+
25
+ ### Updated Dependencies
26
+
27
+ - Updated **config-tools** to **v1.190.81**
28
+
5
29
  ## [1.97.240](https://github.com/storm-software/storm-ops/releases/tag/create-storm-workspace%401.97.240) (06/28/2026)
6
30
 
7
31
  ### Miscellaneous
package/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-1.97.239-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![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 Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&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)
30
+ [![Version](https://img.shields.io/badge/version-1.97.242-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![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 Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&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)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
package/bin/index.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { getNpmPackageVersion } from "@nx/workspace/src/generators/utils/get-npm-package-version";
4
3
  import { getConfig } from "@storm-software/config-tools";
5
4
  import {
6
5
  brandIcon,
@@ -11,6 +10,37 @@ import {
11
10
  } from "@storm-software/config-tools/logger/console";
12
11
  import { createWorkspace } from "create-nx-workspace";
13
12
  import { prompt } from "enquirer";
13
+ import { execFileSync } from "node:child_process";
14
+
15
+ function getNpmPackageVersion(
16
+ packageName: string,
17
+ packageVersion?: string
18
+ ): string | null {
19
+ try {
20
+ const packageSpec = packageVersion
21
+ ? `${packageName}@${packageVersion}`
22
+ : packageName;
23
+ const npmBin = process.platform === "win32" ? "npm.cmd" : "npm";
24
+ const version = execFileSync(
25
+ npmBin,
26
+ ["view", packageSpec, "version", "--json"],
27
+ { stdio: ["pipe", "pipe", "ignore"], windowsHide: true }
28
+ );
29
+
30
+ if (version) {
31
+ const versionOrArray = JSON.parse(version.toString()) as
32
+ string | string[];
33
+ if (typeof versionOrArray === "string") {
34
+ return versionOrArray;
35
+ }
36
+ return versionOrArray.at(-1) ?? null;
37
+ }
38
+ } catch {
39
+ // npm view failed; fall back to the provided version tag if any
40
+ }
41
+
42
+ return packageVersion ?? null;
43
+ }
14
44
 
15
45
  async function main() {
16
46
  const stopwatch = getStopwatch("create-storm-workspace");