@storm-software/workspace-tools 1.295.39 → 1.295.40
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 +18 -0
- package/README.md +1 -1
- package/dist/chunk-2SRFINBN.mjs +32 -0
- package/dist/chunk-4RQ25E7U.js +32 -0
- package/dist/chunk-FJJD4XQQ.js +41 -0
- package/dist/chunk-FYWTWKA5.mjs +116 -0
- package/dist/chunk-GVNAKGP4.mjs +31 -0
- package/dist/chunk-H4MADHCO.js +32 -0
- package/dist/chunk-LWYN4MTV.js +79 -0
- package/dist/chunk-MCQCIP4X.mjs +548 -0
- package/dist/chunk-NNQPSEZU.js +31 -0
- package/dist/chunk-NQHO4D7T.js +250 -0
- package/dist/chunk-OTKWSGS5.mjs +32 -0
- package/dist/chunk-OZQ7BMMQ.js +93 -0
- package/dist/chunk-P5KUQQTV.mjs +93 -0
- package/dist/chunk-QWOCJPHV.mjs +82 -0
- package/dist/chunk-QYWP6FSH.js +548 -0
- package/dist/chunk-RVMTVA24.mjs +253 -0
- package/dist/chunk-SGNQWNB4.js +116 -0
- package/dist/chunk-T7O5BE2A.mjs +32 -0
- package/dist/chunk-UTIKWDU3.mjs +41 -0
- package/dist/chunk-WLCY3GMY.js +32 -0
- package/dist/executors.js +4 -4
- package/dist/executors.mjs +6 -6
- package/dist/index.js +4 -4
- package/dist/index.mjs +6 -6
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Workspace Tools
|
|
4
4
|
|
|
5
|
+
## [1.295.39](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.295.39) (03/31/2026)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate workspace files ([241e519f6](https://github.com/storm-software/storm-ops/commit/241e519f6))
|
|
10
|
+
|
|
11
|
+
### Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated **testing-tools** to **v1.119.138**
|
|
14
|
+
- Updated **config-tools** to **v1.189.63**
|
|
15
|
+
- Updated **pnpm-tools** to **v0.6.148**
|
|
16
|
+
- Updated **npm-tools** to **v0.6.101**
|
|
17
|
+
- Updated **prettier** to **v0.59.37**
|
|
18
|
+
- Updated **esbuild** to **v0.53.145**
|
|
19
|
+
- Updated **unbuild** to **v0.57.145**
|
|
20
|
+
- Updated **config** to **v1.137.17**
|
|
21
|
+
- Updated **tsdown** to **v0.45.145**
|
|
22
|
+
|
|
5
23
|
## [1.295.38](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.295.38) (03/31/2026)
|
|
6
24
|
|
|
7
25
|
### 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 -->
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withRunExecutor
|
|
3
|
+
} from "./chunk-QOQ7ZZDR.mjs";
|
|
4
|
+
import {
|
|
5
|
+
buildCargoCommand,
|
|
6
|
+
cargoCommand
|
|
7
|
+
} from "./chunk-ZTN2676G.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
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkRO2CCHL3js = require('./chunk-RO2CCHL3.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
8
|
+
|
|
9
|
+
// src/executors/cargo-format/executor.ts
|
|
10
|
+
async function cargoFormatExecutor(options, context) {
|
|
11
|
+
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "fmt", options, context);
|
|
12
|
+
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
13
|
+
}
|
|
14
|
+
var executor_default = _chunkRO2CCHL3js.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,41 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkRO2CCHL3js = require('./chunk-RO2CCHL3.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
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 = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "doc", options, context);
|
|
15
|
+
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
16
|
+
}
|
|
17
|
+
var executor_default = _chunkRO2CCHL3js.withRunExecutor.call(void 0,
|
|
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
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
exports.cargoDocExecutor = cargoDocExecutor; exports.executor_default = executor_default;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withRunExecutor
|
|
3
|
+
} from "./chunk-QOQ7ZZDR.mjs";
|
|
4
|
+
import {
|
|
5
|
+
cargoMetadata
|
|
6
|
+
} from "./chunk-ZTN2676G.mjs";
|
|
7
|
+
import {
|
|
8
|
+
correctPaths,
|
|
9
|
+
isAbsolute,
|
|
10
|
+
joinPaths,
|
|
11
|
+
relative
|
|
12
|
+
} from "./chunk-TBW5MCN6.mjs";
|
|
13
|
+
|
|
14
|
+
// src/executors/napi/executor.ts
|
|
15
|
+
import { createJiti } from "jiti";
|
|
16
|
+
import { fileExists } from "nx/src/utils/fileutils";
|
|
17
|
+
async function napiExecutor(options, context, config) {
|
|
18
|
+
const jiti = createJiti(config.workspaceRoot, {
|
|
19
|
+
fsCache: config.skipCache ? false : joinPaths(
|
|
20
|
+
config.workspaceRoot,
|
|
21
|
+
config.directories.cache || "node_modules/.cache/storm",
|
|
22
|
+
"jiti"
|
|
23
|
+
),
|
|
24
|
+
interopDefault: true
|
|
25
|
+
});
|
|
26
|
+
const { NapiCli } = await jiti.import(
|
|
27
|
+
jiti.esmResolve("@napi-rs/cli")
|
|
28
|
+
);
|
|
29
|
+
if (!context.projectGraph?.nodes[context.projectName ?? ""]) {
|
|
30
|
+
throw new Error(
|
|
31
|
+
"The Napi Build process failed because the project could not be found in the project graph. Please run this command from a workspace root directory."
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
const projectRoot = context.projectGraph?.nodes[context.projectName ?? ""].data.root;
|
|
35
|
+
const packageJson = joinPaths(projectRoot ?? ".", "package.json");
|
|
36
|
+
if (!fileExists(packageJson)) {
|
|
37
|
+
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
38
|
+
}
|
|
39
|
+
const napi = new NapiCli();
|
|
40
|
+
const normalizedOptions = { ...options };
|
|
41
|
+
const metadata = cargoMetadata();
|
|
42
|
+
normalizedOptions.targetDir = options.targetDir || metadata?.target_directory || joinPaths(config.workspaceRoot, "dist", "target");
|
|
43
|
+
normalizedOptions.outputDir = options.outputPath;
|
|
44
|
+
normalizedOptions.packageJsonPath = options.packageJsonPath || packageJson;
|
|
45
|
+
if (options.cwd) {
|
|
46
|
+
normalizedOptions.cwd = correctPaths(options.cwd);
|
|
47
|
+
} else {
|
|
48
|
+
normalizedOptions.cwd = correctPaths(projectRoot);
|
|
49
|
+
const absoluteProjectRoot = joinPaths(
|
|
50
|
+
config.workspaceRoot,
|
|
51
|
+
projectRoot || "."
|
|
52
|
+
);
|
|
53
|
+
if (normalizedOptions.outputDir) {
|
|
54
|
+
normalizedOptions.outputDir = relative(
|
|
55
|
+
absoluteProjectRoot,
|
|
56
|
+
correctPaths(
|
|
57
|
+
isAbsolute(normalizedOptions.outputDir) ? normalizedOptions.outputDir : joinPaths(config.workspaceRoot, normalizedOptions.outputDir)
|
|
58
|
+
)
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
if (normalizedOptions.packageJsonPath) {
|
|
62
|
+
normalizedOptions.packageJsonPath = relative(
|
|
63
|
+
absoluteProjectRoot,
|
|
64
|
+
correctPaths(
|
|
65
|
+
isAbsolute(normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : joinPaths(config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
66
|
+
)
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
if (normalizedOptions.configPath) {
|
|
70
|
+
normalizedOptions.configPath = relative(
|
|
71
|
+
absoluteProjectRoot,
|
|
72
|
+
correctPaths(
|
|
73
|
+
isAbsolute(normalizedOptions.configPath) ? normalizedOptions.configPath : joinPaths(config.workspaceRoot, normalizedOptions.configPath)
|
|
74
|
+
)
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
if (normalizedOptions.manifestPath) {
|
|
78
|
+
normalizedOptions.manifestPath = relative(
|
|
79
|
+
absoluteProjectRoot,
|
|
80
|
+
correctPaths(
|
|
81
|
+
isAbsolute(normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : joinPaths(config.workspaceRoot, normalizedOptions.manifestPath)
|
|
82
|
+
)
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if (process.env.VERCEL) {
|
|
87
|
+
return { success: true };
|
|
88
|
+
}
|
|
89
|
+
const { task } = await napi.build(normalizedOptions);
|
|
90
|
+
return { success: true, terminalOutput: await task };
|
|
91
|
+
}
|
|
92
|
+
var executor_default = withRunExecutor(
|
|
93
|
+
"Napi - Build Bindings",
|
|
94
|
+
napiExecutor,
|
|
95
|
+
{
|
|
96
|
+
skipReadingConfig: false,
|
|
97
|
+
hooks: {
|
|
98
|
+
applyDefaultOptions: (options) => {
|
|
99
|
+
options.outputPath ??= "{sourceRoot}";
|
|
100
|
+
options.toolchain ??= "stable";
|
|
101
|
+
options.dtsCache ??= true;
|
|
102
|
+
options.platform ??= true;
|
|
103
|
+
options.constEnum ??= false;
|
|
104
|
+
options.verbose ??= false;
|
|
105
|
+
options.jsBinding ??= "binding.js";
|
|
106
|
+
options.dts ??= "binding.d.ts";
|
|
107
|
+
return options;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
|
|
113
|
+
export {
|
|
114
|
+
napiExecutor,
|
|
115
|
+
executor_default
|
|
116
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withRunExecutor
|
|
3
|
+
} from "./chunk-QOQ7ZZDR.mjs";
|
|
4
|
+
import {
|
|
5
|
+
buildCargoCommand,
|
|
6
|
+
cargoCommand
|
|
7
|
+
} from "./chunk-ZTN2676G.mjs";
|
|
8
|
+
|
|
9
|
+
// src/executors/cargo-check/executor.ts
|
|
10
|
+
async function cargoCheckExecutor(options, context) {
|
|
11
|
+
const command = buildCargoCommand("check", options, context);
|
|
12
|
+
return await cargoCommand(context.root, ...command);
|
|
13
|
+
}
|
|
14
|
+
var executor_default = withRunExecutor(
|
|
15
|
+
"Cargo - Check",
|
|
16
|
+
cargoCheckExecutor,
|
|
17
|
+
{
|
|
18
|
+
skipReadingConfig: false,
|
|
19
|
+
hooks: {
|
|
20
|
+
applyDefaultOptions: (options) => {
|
|
21
|
+
options.toolchain ??= "stable";
|
|
22
|
+
return options;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
cargoCheckExecutor,
|
|
30
|
+
executor_default
|
|
31
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkRO2CCHL3js = require('./chunk-RO2CCHL3.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
8
|
+
|
|
9
|
+
// src/executors/cargo-clippy/executor.ts
|
|
10
|
+
async function cargoClippyExecutor(options, context) {
|
|
11
|
+
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "clippy", options, context);
|
|
12
|
+
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
13
|
+
}
|
|
14
|
+
var executor_default = _chunkRO2CCHL3js.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;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkBZMYB75Mjs = require('./chunk-BZMYB75M.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkFR2SIPZVjs = require('./chunk-FR2SIPZV.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkSZWM7COVjs = require('./chunk-SZWM7COV.js');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
14
|
+
|
|
15
|
+
// src/generators/node-library/generator.ts
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _devkit = require('@nx/devkit');
|
|
22
|
+
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
23
|
+
const filesDir = _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
24
|
+
__dirname,
|
|
25
|
+
"src",
|
|
26
|
+
"generators",
|
|
27
|
+
"node-library",
|
|
28
|
+
"files"
|
|
29
|
+
);
|
|
30
|
+
const tsLibraryGeneratorOptions = {
|
|
31
|
+
platform: "node",
|
|
32
|
+
devDependencies: {
|
|
33
|
+
"@types/node": _chunkSZWM7COVjs.typesNodeVersion
|
|
34
|
+
},
|
|
35
|
+
buildExecutor: "@storm-software/workspace-tools:unbuild",
|
|
36
|
+
...schema,
|
|
37
|
+
directory: schema.directory,
|
|
38
|
+
description: schema.description
|
|
39
|
+
};
|
|
40
|
+
const options = await _chunkBZMYB75Mjs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
|
|
41
|
+
const { className, name, propertyName } = _devkit.names.call(void 0, options.name);
|
|
42
|
+
_devkit.generateFiles.call(void 0, tree, filesDir, options.projectRoot, {
|
|
43
|
+
...schema,
|
|
44
|
+
dot: ".",
|
|
45
|
+
className,
|
|
46
|
+
name,
|
|
47
|
+
namespace: _nullishCoalesce(process.env.STORM_NAMESPACE, () => ( "storm-software")),
|
|
48
|
+
description: _nullishCoalesce(schema.description, () => ( "")),
|
|
49
|
+
propertyName,
|
|
50
|
+
js: !!options.js,
|
|
51
|
+
cliCommand: "nx",
|
|
52
|
+
strict: void 0,
|
|
53
|
+
tmpl: "",
|
|
54
|
+
offsetFromRoot: _devkit.offsetFromRoot.call(void 0, options.projectRoot),
|
|
55
|
+
buildable: options.bundler && options.bundler !== "none",
|
|
56
|
+
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
57
|
+
});
|
|
58
|
+
await _chunkBZMYB75Mjs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
|
|
59
|
+
await _devkit.formatFiles.call(void 0, tree);
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
var generator_default = _chunkFR2SIPZVjs.withRunGenerator.call(void 0,
|
|
63
|
+
"TypeScript Library Creator (NodeJs Platform)",
|
|
64
|
+
nodeLibraryGeneratorFn,
|
|
65
|
+
{
|
|
66
|
+
hooks: {
|
|
67
|
+
applyDefaultOptions: (options) => {
|
|
68
|
+
options.description ??= "A library used by Storm Software to support NodeJs applications";
|
|
69
|
+
options.platform ??= "node";
|
|
70
|
+
return options;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
exports.nodeLibraryGeneratorFn = nodeLibraryGeneratorFn; exports.generator_default = generator_default;
|