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 +24 -0
- package/README.md +1 -1
- package/bin/index.ts +31 -1
- package/index.js +153 -153
- package/package.json +5 -5
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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
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");
|