@storm-software/workspace-tools 1.294.38 → 1.294.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 +27 -0
- package/README.md +1 -1
- package/dist/{chunk-7KSP37MJ.mjs → chunk-253SGFZD.mjs} +1 -1
- package/dist/{chunk-CEM3HM3B.mjs → chunk-2SCDO4SB.mjs} +1 -1
- package/dist/{chunk-E7FF7KFZ.mjs → chunk-3DVMTFVU.mjs} +1 -1
- package/dist/chunk-54MA4WSQ.mjs +32 -0
- package/dist/chunk-652HZZQ6.mjs +82 -0
- package/dist/chunk-BLSUQ4AI.mjs +32 -0
- package/dist/chunk-CFGJEIMQ.js +31 -0
- package/dist/{chunk-CEC4FZYL.mjs → chunk-CX42PCEC.mjs} +5 -5
- package/dist/chunk-DGX22JSK.js +32 -0
- package/dist/chunk-EFCYTQCA.js +93 -0
- package/dist/chunk-FUI4YPOR.js +41 -0
- package/dist/chunk-G3ETC7F5.mjs +41 -0
- package/dist/chunk-GBESJVYG.mjs +32 -0
- package/dist/chunk-GGYEFCAI.mjs +116 -0
- package/dist/{chunk-LNV6TE5T.mjs → chunk-GX3NWVA7.mjs} +1 -1
- package/dist/chunk-HUC5CYJB.mjs +31 -0
- package/dist/chunk-JBRRO6VB.js +548 -0
- package/dist/chunk-JMKTY5ZQ.js +32 -0
- package/dist/chunk-KMDUHEVQ.js +79 -0
- package/dist/{chunk-OBA5LSVN.js → chunk-MLI55MFR.js} +3 -3
- package/dist/chunk-MORI7YVO.js +32 -0
- package/dist/chunk-NJLZBEYW.mjs +93 -0
- package/dist/chunk-OUFCTM3O.js +250 -0
- package/dist/chunk-RPQZ234N.js +116 -0
- package/dist/chunk-VWKETDBY.mjs +548 -0
- package/dist/chunk-XMDK4R7M.mjs +253 -0
- package/dist/executors.mjs +1 -1
- package/dist/generators.js +2 -2
- package/dist/generators.mjs +5 -5
- package/dist/index.js +2 -2
- package/dist/index.mjs +5 -5
- package/dist/src/base/base-executor.mjs +1 -1
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/base/base-generator.mjs +1 -1
- package/dist/src/base/base-generator.untyped.mjs +1 -1
- package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
- package/dist/src/base/index.mjs +1 -1
- package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
- package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
- package/dist/src/executors/cargo-build/executor.mjs +1 -1
- package/dist/src/executors/cargo-build/untyped.mjs +1 -1
- package/dist/src/executors/cargo-check/executor.mjs +1 -1
- package/dist/src/executors/cargo-check/untyped.mjs +1 -1
- package/dist/src/executors/cargo-clippy/executor.mjs +1 -1
- package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
- package/dist/src/executors/cargo-doc/executor.mjs +1 -1
- package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
- package/dist/src/executors/cargo-format/executor.mjs +1 -1
- package/dist/src/executors/cargo-format/untyped.mjs +1 -1
- package/dist/src/executors/cargo-publish/executor.mjs +1 -1
- package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
- package/dist/src/executors/clean-package/executor.mjs +1 -1
- package/dist/src/executors/clean-package/untyped.mjs +1 -1
- package/dist/src/executors/esbuild/executor.mjs +1 -1
- package/dist/src/executors/esbuild/untyped.mjs +1 -1
- package/dist/src/executors/napi/executor.mjs +1 -1
- package/dist/src/executors/napi/untyped.mjs +1 -1
- package/dist/src/executors/npm-publish/executor.mjs +1 -1
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- package/dist/src/executors/size-limit/executor.mjs +1 -1
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- package/dist/src/executors/tsdown/executor.mjs +1 -1
- package/dist/src/executors/tsdown/untyped.mjs +1 -1
- package/dist/src/executors/typia/executor.mjs +1 -1
- package/dist/src/executors/typia/untyped.mjs +1 -1
- package/dist/src/executors/unbuild/executor.mjs +1 -1
- package/dist/src/executors/unbuild/untyped.mjs +1 -1
- package/dist/src/generators/browser-library/generator.mjs +2 -2
- package/dist/src/generators/browser-library/untyped.mjs +1 -1
- package/dist/src/generators/config-schema/generator.mjs +1 -1
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.mjs +1 -1
- package/dist/src/generators/init/untyped.mjs +1 -1
- package/dist/src/generators/neutral-library/generator.mjs +2 -2
- package/dist/src/generators/neutral-library/untyped.mjs +1 -1
- package/dist/src/generators/node-library/generator.mjs +2 -2
- package/dist/src/generators/node-library/untyped.mjs +1 -1
- package/dist/src/generators/preset/generator.js +2 -2
- package/dist/src/generators/preset/generator.mjs +2 -2
- package/dist/src/generators/preset/untyped.mjs +1 -1
- package/dist/src/plugins/rust/cargo-toml.mjs +1 -1
- package/dist/src/plugins/rust/index.mjs +1 -1
- package/dist/src/plugins/typescript/index.mjs +1 -1
- package/dist/src/plugins/typescript/tsdown.mjs +1 -1
- package/dist/src/plugins/typescript/tsup.mjs +1 -1
- package/dist/src/plugins/typescript/untyped-schema.mjs +1 -1
- package/dist/src/release/index.mjs +1 -1
- package/dist/src/release/js-version-actions.mjs +1 -1
- package/dist/src/release/rust-version-actions.mjs +1 -1
- package/dist/src/types.mjs +1 -1
- package/dist/src/utils/apply-workspace-tokens.mjs +1 -1
- package/dist/src/utils/cargo.mjs +1 -1
- package/dist/src/utils/create-cli-options.mjs +1 -1
- package/dist/src/utils/get-project-configurations.mjs +1 -1
- package/dist/src/utils/index.mjs +1 -1
- package/dist/src/utils/lock-file.mjs +1 -1
- package/dist/src/utils/nx-json.mjs +1 -1
- package/dist/src/utils/package-helpers.mjs +1 -1
- package/dist/src/utils/plugin-helpers.mjs +1 -1
- package/dist/src/utils/project-tags.mjs +1 -1
- package/dist/src/utils/registry-helpers.mjs +1 -1
- package/dist/src/utils/typia-transform.mjs +1 -1
- package/dist/src/utils/versions.mjs +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Workspace Tools
|
|
4
4
|
|
|
5
|
+
## [1.294.39](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.294.39) (02/20/2026)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **pnpm-tools** to **v0.6.90**
|
|
10
|
+
- Updated **esbuild** to **v0.53.88**
|
|
11
|
+
- Updated **unbuild** to **v0.57.88**
|
|
12
|
+
- Updated **tsdown** to **v0.45.88**
|
|
13
|
+
|
|
14
|
+
## [1.294.38](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.294.38) (02/20/2026)
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
- **prettier:** Ensure consistency when formatting package.json files ([2a81896c5](https://github.com/storm-software/storm-ops/commit/2a81896c5))
|
|
19
|
+
|
|
20
|
+
### Updated Dependencies
|
|
21
|
+
|
|
22
|
+
- Updated **testing-tools** to **v1.119.81**
|
|
23
|
+
- Updated **config-tools** to **v1.189.6**
|
|
24
|
+
- Updated **pnpm-tools** to **v0.6.89**
|
|
25
|
+
- Updated **npm-tools** to **v0.6.44**
|
|
26
|
+
- Updated **prettier** to **v0.58.5**
|
|
27
|
+
- Updated **esbuild** to **v0.53.87**
|
|
28
|
+
- Updated **unbuild** to **v0.57.87**
|
|
29
|
+
- Updated **config** to **v1.135.7**
|
|
30
|
+
- Updated **tsdown** to **v0.45.87**
|
|
31
|
+
|
|
5
32
|
## [1.294.37](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.294.37) (02/18/2026)
|
|
6
33
|
|
|
7
34
|
### 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-S3RWO7R6.mjs";
|
|
4
|
+
import {
|
|
5
|
+
buildCargoCommand,
|
|
6
|
+
cargoCommand
|
|
7
|
+
} from "./chunk-ZTN2676G.mjs";
|
|
8
|
+
|
|
9
|
+
// src/executors/cargo-build/executor.ts
|
|
10
|
+
async function cargoBuildExecutor(options, context) {
|
|
11
|
+
const command = buildCargoCommand("build", options, context);
|
|
12
|
+
return await cargoCommand(context.root, ...command);
|
|
13
|
+
}
|
|
14
|
+
var executor_default = withRunExecutor(
|
|
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
|
+
export {
|
|
30
|
+
cargoBuildExecutor,
|
|
31
|
+
executor_default
|
|
32
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import {
|
|
2
|
+
normalizeOptions,
|
|
3
|
+
typeScriptLibraryGeneratorFn
|
|
4
|
+
} from "./chunk-M3YWCYUX.mjs";
|
|
5
|
+
import {
|
|
6
|
+
withRunGenerator
|
|
7
|
+
} from "./chunk-CDEOZ2LA.mjs";
|
|
8
|
+
import {
|
|
9
|
+
typesNodeVersion
|
|
10
|
+
} from "./chunk-QC5ON3X4.mjs";
|
|
11
|
+
import {
|
|
12
|
+
joinPaths
|
|
13
|
+
} from "./chunk-TBW5MCN6.mjs";
|
|
14
|
+
import {
|
|
15
|
+
__dirname
|
|
16
|
+
} from "./chunk-GX3NWVA7.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
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withRunExecutor
|
|
3
|
+
} from "./chunk-S3RWO7R6.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,31 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk2DEV7MTDjs = require('./chunk-2DEV7MTD.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
8
|
+
|
|
9
|
+
// src/executors/cargo-check/executor.ts
|
|
10
|
+
async function cargoCheckExecutor(options, context) {
|
|
11
|
+
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "check", options, context);
|
|
12
|
+
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
13
|
+
}
|
|
14
|
+
var executor_default = _chunk2DEV7MTDjs.withRunExecutor.call(void 0,
|
|
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
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
exports.cargoCheckExecutor = cargoCheckExecutor; exports.executor_default = executor_default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withRunGenerator
|
|
3
|
+
} from "./chunk-CDEOZ2LA.mjs";
|
|
1
4
|
import {
|
|
2
5
|
nodeVersion,
|
|
3
6
|
pnpmVersion
|
|
4
7
|
} from "./chunk-QC5ON3X4.mjs";
|
|
5
|
-
import {
|
|
6
|
-
withRunGenerator
|
|
7
|
-
} from "./chunk-CDEOZ2LA.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__dirname
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GX3NWVA7.mjs";
|
|
11
11
|
|
|
12
12
|
// src/generators/preset/generator.ts
|
|
13
13
|
import {
|
|
@@ -188,7 +188,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
188
188
|
"@storm-software/cspell": "latest",
|
|
189
189
|
"@storm-software/prettier": "latest",
|
|
190
190
|
"@taplo/cli": "0.7.0",
|
|
191
|
-
"@types/node": "^
|
|
191
|
+
"@types/node": "^25.3.0",
|
|
192
192
|
copyfiles: "2.4.1",
|
|
193
193
|
eslint: "9.5.0",
|
|
194
194
|
jest: "29.7.0",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk2DEV7MTDjs = require('./chunk-2DEV7MTD.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 = _chunk2DEV7MTDjs.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,93 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkUHTWNVEZjs = require('./chunk-UHTWNVEZ.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkK2HA4BJNjs = require('./chunk-K2HA4BJN.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
11
|
+
|
|
12
|
+
// src/utils/package-helpers.ts
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
var _devkit = require('@nx/devkit');
|
|
17
|
+
var _child_process = require('child_process');
|
|
18
|
+
var _fs = require('fs');
|
|
19
|
+
var _promises = require('fs/promises');
|
|
20
|
+
var _path = require('path');
|
|
21
|
+
var _prettier = require('prettier');
|
|
22
|
+
var PackageManagerTypes = {
|
|
23
|
+
PackageJson: "package.json",
|
|
24
|
+
CargoToml: "Cargo.toml"
|
|
25
|
+
};
|
|
26
|
+
var getPackageInfo = (project) => {
|
|
27
|
+
if (_chunkUHTWNVEZjs.isEqualProjectTag.call(void 0,
|
|
28
|
+
project,
|
|
29
|
+
_chunkUHTWNVEZjs.ProjectTagConstants.Language.TAG_ID,
|
|
30
|
+
_chunkUHTWNVEZjs.ProjectTagConstants.Language.RUST
|
|
31
|
+
) && _fs.existsSync.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))) {
|
|
32
|
+
return {
|
|
33
|
+
type: "Cargo.toml",
|
|
34
|
+
content: _chunkK2HA4BJNjs.parseCargoToml.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))
|
|
35
|
+
};
|
|
36
|
+
} else if (_chunkUHTWNVEZjs.isEqualProjectTag.call(void 0,
|
|
37
|
+
project,
|
|
38
|
+
_chunkUHTWNVEZjs.ProjectTagConstants.Language.TAG_ID,
|
|
39
|
+
_chunkUHTWNVEZjs.ProjectTagConstants.Language.TYPESCRIPT
|
|
40
|
+
) && _fs.existsSync.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "package.json"))) {
|
|
41
|
+
return {
|
|
42
|
+
type: "package.json",
|
|
43
|
+
content: _devkit.readJsonFile.call(void 0,
|
|
44
|
+
_devkit.joinPathFragments.call(void 0, project.root, "package.json")
|
|
45
|
+
)
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
return null;
|
|
49
|
+
};
|
|
50
|
+
async function addPackageJsonGitHead(packageRoot) {
|
|
51
|
+
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0, packageRoot, "package.json");
|
|
52
|
+
if (!packageJsonPath) {
|
|
53
|
+
throw new Error(
|
|
54
|
+
"No file path provided. Please provide a valid path to the package.json file."
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
const packageJsonValue = JSON.parse(await _promises.readFile.call(void 0, packageJsonPath, "utf8"));
|
|
58
|
+
if (!packageJsonValue || typeof packageJsonValue !== "object") {
|
|
59
|
+
throw new Error(
|
|
60
|
+
`Invalid package.json file at ${packageJsonPath}. Please ensure it is a valid JSON file.`
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
const gitHead = _child_process.execFileSync.call(void 0, "git", ["rev-parse", "HEAD"], {
|
|
64
|
+
cwd: _path.dirname.call(void 0, _path.resolve.call(void 0, packageJsonPath)),
|
|
65
|
+
encoding: "utf8"
|
|
66
|
+
}).trim();
|
|
67
|
+
packageJsonValue.gitHead = gitHead;
|
|
68
|
+
return _promises.writeFile.call(void 0,
|
|
69
|
+
packageJsonPath,
|
|
70
|
+
await _prettier.format.call(void 0, JSON.stringify(packageJsonValue), {
|
|
71
|
+
parser: "json",
|
|
72
|
+
proseWrap: "preserve",
|
|
73
|
+
trailingComma: "none",
|
|
74
|
+
tabWidth: 2,
|
|
75
|
+
semi: true,
|
|
76
|
+
singleQuote: false,
|
|
77
|
+
quoteProps: "as-needed",
|
|
78
|
+
insertPragma: false,
|
|
79
|
+
bracketSameLine: true,
|
|
80
|
+
printWidth: 80,
|
|
81
|
+
bracketSpacing: true,
|
|
82
|
+
arrowParens: "avoid",
|
|
83
|
+
endOfLine: "lf",
|
|
84
|
+
plugins: ["prettier-plugin-packagejson"]
|
|
85
|
+
})
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
exports.PackageManagerTypes = PackageManagerTypes; exports.getPackageInfo = getPackageInfo; exports.addPackageJsonGitHead = addPackageJsonGitHead;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk2DEV7MTDjs = require('./chunk-2DEV7MTD.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 = _chunk2DEV7MTDjs.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,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withRunExecutor
|
|
3
|
+
} from "./chunk-S3RWO7R6.mjs";
|
|
4
|
+
import {
|
|
5
|
+
buildCargoCommand,
|
|
6
|
+
cargoCommand
|
|
7
|
+
} from "./chunk-ZTN2676G.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-S3RWO7R6.mjs";
|
|
4
|
+
import {
|
|
5
|
+
buildCargoCommand,
|
|
6
|
+
cargoCommand
|
|
7
|
+
} from "./chunk-ZTN2676G.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,116 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withRunExecutor
|
|
3
|
+
} from "./chunk-S3RWO7R6.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
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
1
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b6bd222c060aae86b6bb83779b69956f/node_modules/tsup/assets/esm_shims.js
|
|
2
2
|
import { fileURLToPath } from "url";
|
|
3
3
|
import path from "path";
|
|
4
4
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withRunExecutor
|
|
3
|
+
} from "./chunk-S3RWO7R6.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
|
+
};
|