@storm-software/workspace-tools 1.292.15 → 1.292.18
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 +66 -0
- package/README.md +4 -36
- package/config/base.json +13 -14
- package/dist/{chunk-UCXAD2SG.mjs → chunk-6PVCCKX4.mjs} +1 -1
- package/dist/chunk-ANHKV7HZ.js +22 -0
- package/dist/{chunk-PUFTJ2BG.mjs → chunk-D2ENLOCH.mjs} +14 -12
- package/dist/{chunk-MGF3DTWM.js → chunk-EECJXHDA.js} +50 -17
- package/dist/chunk-EGI64HQ2.mjs +22 -0
- package/dist/chunk-EYRX4NM6.mjs +213 -0
- package/dist/{chunk-LOFMB5G3.mjs → chunk-IPWUJVZZ.mjs} +1 -1
- package/dist/{chunk-YNLDYAEE.mjs → chunk-JHJLQ2O7.mjs} +1 -1
- package/dist/{chunk-452FQZ3B.js → chunk-JWFGGMYQ.js} +1 -6
- package/dist/{chunk-Q57UD72U.mjs → chunk-KCVIHYZQ.mjs} +1 -1
- package/dist/{chunk-7DLHAWLG.mjs → chunk-MU6OJDOC.mjs} +1 -1
- package/dist/{chunk-IBTPJDV6.js → chunk-N3YCERS6.js} +5 -2
- package/dist/{chunk-WV5SNA37.js → chunk-O2FPRXPD.js} +17 -15
- package/dist/{chunk-FQSIFEMR.mjs → chunk-OOR7HG4P.mjs} +37 -4
- package/dist/{chunk-2LY7DGBH.mjs → chunk-OV33RACH.mjs} +5 -2
- package/dist/{chunk-WRXLSZ6I.js → chunk-POXELQII.js} +2 -2
- package/dist/{chunk-B4RJUBHW.mjs → chunk-QUHBEE5D.mjs} +1 -1
- package/dist/chunk-SAIDGUHG.mjs +0 -0
- package/dist/chunk-TCGF4GS7.js +213 -0
- package/dist/chunk-TJRQRM4Z.mjs +49 -0
- package/dist/chunk-W4IH547O.js +49 -0
- package/dist/{chunk-2ONEZU6V.mjs → chunk-WH72XZPS.mjs} +1 -1
- package/dist/{chunk-SVIG7SR3.mjs → chunk-X2SLQ73Q.mjs} +1 -6
- package/dist/chunk-YYLV7UA6.js +1 -0
- package/dist/{chunk-7QY4X73C.js → chunk-ZP4B44CQ.js} +2 -2
- package/dist/executors.js +16 -17
- package/dist/executors.mjs +19 -20
- package/dist/generators.d.mts +0 -2
- package/dist/generators.d.ts +0 -2
- package/dist/generators.js +8 -14
- package/dist/generators.mjs +13 -19
- package/dist/index.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +39 -34
- package/dist/index.mjs +53 -48
- 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.js +3 -3
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- 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/npm-publish/executor.js +4 -5
- package/dist/src/executors/npm-publish/executor.mjs +4 -5
- 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.mjs +2 -2
- package/dist/src/generators/preset/untyped.mjs +1 -1
- package/dist/src/plugins/rust/cargo-toml.js +2 -2
- package/dist/src/plugins/rust/cargo-toml.mjs +2 -2
- package/dist/src/plugins/rust/index.js +2 -2
- package/dist/src/plugins/rust/index.mjs +2 -2
- package/dist/src/plugins/typescript/index.js +22 -22
- package/dist/src/plugins/typescript/index.mjs +23 -23
- 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.d.mts +11 -0
- package/dist/src/release/index.d.ts +11 -0
- package/dist/src/release/index.js +17 -0
- package/dist/src/release/index.mjs +18 -0
- package/dist/src/release/js-version-actions.d.mts +44 -0
- package/dist/src/release/js-version-actions.d.ts +44 -0
- package/dist/src/release/js-version-actions.js +10 -0
- package/dist/src/release/js-version-actions.mjs +11 -0
- package/dist/src/release/rust-version-actions.d.mts +56 -0
- package/dist/src/release/rust-version-actions.d.ts +56 -0
- package/dist/src/release/rust-version-actions.js +12 -0
- package/dist/src/release/rust-version-actions.mjs +13 -0
- 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.js +11 -11
- package/dist/src/utils/index.mjs +18 -18
- package/dist/src/utils/lock-file.d.mts +2 -2
- package/dist/src/utils/lock-file.d.ts +2 -2
- package/dist/src/utils/lock-file.mjs +1 -1
- package/dist/src/utils/nx-json.d.mts +3 -27
- package/dist/src/utils/nx-json.d.ts +3 -27
- package/dist/src/utils/nx-json.js +2 -2
- package/dist/src/utils/nx-json.mjs +2 -2
- package/dist/src/utils/package-helpers.js +3 -3
- package/dist/src/utils/package-helpers.mjs +3 -3
- package/dist/src/utils/plugin-helpers.d.mts +2 -2
- package/dist/src/utils/plugin-helpers.d.ts +2 -2
- package/dist/src/utils/plugin-helpers.mjs +1 -1
- package/dist/src/utils/project-tags.mjs +1 -1
- package/dist/src/utils/registry-helpers.d.mts +11 -0
- package/dist/src/utils/registry-helpers.d.ts +11 -0
- package/dist/src/utils/registry-helpers.js +6 -0
- package/dist/src/utils/registry-helpers.mjs +7 -0
- package/dist/src/utils/typia-transform.mjs +1 -1
- package/dist/src/utils/versions.mjs +1 -1
- package/package.json +47 -18
- package/dist/chunk-J4I6MJT2.js +0 -73
- package/dist/chunk-JLXBL5BC.mjs +0 -73
- package/dist/chunk-WEL4BVFX.js +0 -1049
- package/dist/chunk-ZZWU35JU.mjs +0 -1049
- package/dist/generator-DLXza9BZ.d.ts +0 -186
- package/dist/generator-DVYJZa5j.d.mts +0 -186
- package/dist/src/generators/release-version/generator.d.mts +0 -6
- package/dist/src/generators/release-version/generator.d.ts +0 -6
- package/dist/src/generators/release-version/generator.js +0 -14
- package/dist/src/generators/release-version/generator.mjs +0 -15
- package/dist/src/generators/release-version/schema.d.ts +0 -180
- package/dist/src/generators/release-version/schema.json +0 -158
- package/dist/src/generators/release-version/untyped.d.mts +0 -5
- package/dist/src/generators/release-version/untyped.d.ts +0 -5
- package/dist/src/generators/release-version/untyped.js +0 -159
- package/dist/src/generators/release-version/untyped.mjs +0 -161
- package/docs/api/generators/release-version/schema.md +0 -160
- /package/dist/{chunk-RLIZVCIN.mjs → chunk-5GZC2PF6.mjs} +0 -0
- /package/dist/{chunk-INERRJ6Q.js → chunk-C3TC7AUW.js} +0 -0
package/dist/src/utils/index.mjs
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import "../../chunk-6YZ3OUJB.mjs";
|
|
2
|
+
import {
|
|
3
|
+
getTypiaTransform
|
|
4
|
+
} from "../../chunk-KR72GKIT.mjs";
|
|
5
|
+
import {
|
|
6
|
+
createCliOptions
|
|
7
|
+
} from "../../chunk-W2C5IGWW.mjs";
|
|
8
|
+
import {
|
|
9
|
+
getProjectConfiguration,
|
|
10
|
+
getProjectConfigurations
|
|
11
|
+
} from "../../chunk-GEP246CJ.mjs";
|
|
2
12
|
import {
|
|
3
13
|
LOCK_FILES,
|
|
4
14
|
NPM_LOCK_FILE,
|
|
@@ -16,7 +26,7 @@ import {
|
|
|
16
26
|
NAMED_INPUTS,
|
|
17
27
|
RELEASE,
|
|
18
28
|
withNamedInputs
|
|
19
|
-
} from "../../chunk-
|
|
29
|
+
} from "../../chunk-OV33RACH.mjs";
|
|
20
30
|
import {
|
|
21
31
|
getProjectConfigFromProjectJsonPath,
|
|
22
32
|
getProjectConfigFromProjectRoot,
|
|
@@ -24,24 +34,9 @@ import {
|
|
|
24
34
|
getProjectRoot,
|
|
25
35
|
getRoot
|
|
26
36
|
} from "../../chunk-4RYLWWPW.mjs";
|
|
27
|
-
import {
|
|
28
|
-
getTypiaTransform
|
|
29
|
-
} from "../../chunk-KR72GKIT.mjs";
|
|
30
37
|
import {
|
|
31
38
|
applyWorkspaceExecutorTokens
|
|
32
39
|
} from "../../chunk-FML2FBSG.mjs";
|
|
33
|
-
import {
|
|
34
|
-
createCliOptions
|
|
35
|
-
} from "../../chunk-W2C5IGWW.mjs";
|
|
36
|
-
import {
|
|
37
|
-
getProjectConfiguration,
|
|
38
|
-
getProjectConfigurations
|
|
39
|
-
} from "../../chunk-GEP246CJ.mjs";
|
|
40
|
-
import {
|
|
41
|
-
PackageManagerTypes,
|
|
42
|
-
addPackageJsonGitHead,
|
|
43
|
-
getPackageInfo
|
|
44
|
-
} from "../../chunk-UCXAD2SG.mjs";
|
|
45
40
|
import {
|
|
46
41
|
INVALID_CARGO_ARGS,
|
|
47
42
|
buildCargoCommand,
|
|
@@ -53,6 +48,12 @@ import {
|
|
|
53
48
|
isExternal,
|
|
54
49
|
runProcess
|
|
55
50
|
} from "../../chunk-6LP3KKXE.mjs";
|
|
51
|
+
import {
|
|
52
|
+
PackageManagerTypes,
|
|
53
|
+
addPackageJsonGitHead,
|
|
54
|
+
getPackageInfo
|
|
55
|
+
} from "../../chunk-6PVCCKX4.mjs";
|
|
56
|
+
import "../../chunk-X2SLQ73Q.mjs";
|
|
56
57
|
import {
|
|
57
58
|
eslintVersion,
|
|
58
59
|
lintStagedVersion,
|
|
@@ -73,7 +74,6 @@ import {
|
|
|
73
74
|
typescriptVersion,
|
|
74
75
|
verdaccioVersion
|
|
75
76
|
} from "../../chunk-QC5ON3X4.mjs";
|
|
76
|
-
import "../../chunk-SVIG7SR3.mjs";
|
|
77
77
|
import {
|
|
78
78
|
ProjectTagConstants,
|
|
79
79
|
addPluginProjectTag,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
import "../../chunk-V44DYGWX.mjs";
|
|
88
88
|
import "../../chunk-VGJEUOUN.mjs";
|
|
89
89
|
import "../../chunk-C26A6BXG.mjs";
|
|
90
|
-
import "../../chunk-
|
|
90
|
+
import "../../chunk-IPWUJVZZ.mjs";
|
|
91
91
|
export {
|
|
92
92
|
INVALID_CARGO_ARGS,
|
|
93
93
|
LOCK_FILES,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PackageManager,
|
|
1
|
+
import { PackageManager, CreateNodesContextV2, ProjectGraphExternalNode, CreateDependenciesContext, RawProjectGraphDependency } from '@nx/devkit';
|
|
2
2
|
|
|
3
3
|
declare const YARN_LOCK_FILE = "yarn.lock";
|
|
4
4
|
declare const NPM_LOCK_FILE = "package-lock.json";
|
|
@@ -10,7 +10,7 @@ declare const PNPM_LOCK_PATH: string;
|
|
|
10
10
|
/**
|
|
11
11
|
* Parses lock file and maps dependencies and metadata to {@link LockFileGraph}
|
|
12
12
|
*/
|
|
13
|
-
declare function getLockFileNodes(packageManager: PackageManager, contents: string, lockFileHash: string, context:
|
|
13
|
+
declare function getLockFileNodes(packageManager: PackageManager, contents: string, lockFileHash: string, context: CreateNodesContextV2): Record<string, ProjectGraphExternalNode>;
|
|
14
14
|
/**
|
|
15
15
|
* Parses lock file and maps dependencies and metadata to {@link LockFileGraph}
|
|
16
16
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PackageManager,
|
|
1
|
+
import { PackageManager, CreateNodesContextV2, ProjectGraphExternalNode, CreateDependenciesContext, RawProjectGraphDependency } from '@nx/devkit';
|
|
2
2
|
|
|
3
3
|
declare const YARN_LOCK_FILE = "yarn.lock";
|
|
4
4
|
declare const NPM_LOCK_FILE = "package-lock.json";
|
|
@@ -10,7 +10,7 @@ declare const PNPM_LOCK_PATH: string;
|
|
|
10
10
|
/**
|
|
11
11
|
* Parses lock file and maps dependencies and metadata to {@link LockFileGraph}
|
|
12
12
|
*/
|
|
13
|
-
declare function getLockFileNodes(packageManager: PackageManager, contents: string, lockFileHash: string, context:
|
|
13
|
+
declare function getLockFileNodes(packageManager: PackageManager, contents: string, lockFileHash: string, context: CreateNodesContextV2): Record<string, ProjectGraphExternalNode>;
|
|
14
14
|
/**
|
|
15
15
|
* Parses lock file and maps dependencies and metadata to {@link LockFileGraph}
|
|
16
16
|
*/
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { NxJsonConfiguration } from '@nx/devkit';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* The values provided in the `base.json` (this package's shared nx.json configuration) file's {@link NxJsonConfiguration.namedInputs} section.
|
|
3
5
|
*/
|
|
@@ -18,33 +20,7 @@ declare const NAMED_INPUTS: {
|
|
|
18
20
|
/**
|
|
19
21
|
* The values provided in the `base.json` (this package's shared nx.json configuration) file's {@link NxJsonConfiguration.release} section.
|
|
20
22
|
*/
|
|
21
|
-
declare const RELEASE:
|
|
22
|
-
readonly groups: {
|
|
23
|
-
readonly packages: {
|
|
24
|
-
readonly projects: readonly ["packages/*", "crates/*"];
|
|
25
|
-
readonly projectsRelationship: "independent";
|
|
26
|
-
readonly releaseTagPattern: "{projectName}@{version}";
|
|
27
|
-
readonly changelog: {
|
|
28
|
-
readonly entryWhenNoChanges: false;
|
|
29
|
-
readonly renderOptions: {
|
|
30
|
-
readonly authors: false;
|
|
31
|
-
readonly commitReferences: true;
|
|
32
|
-
readonly versionTitleDate: true;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
readonly version: {
|
|
36
|
-
readonly groupPreVersionCommand: "pnpm build";
|
|
37
|
-
readonly generator: "@storm-software/workspace-tools:release-version";
|
|
38
|
-
readonly currentVersionResolver: "git-tag";
|
|
39
|
-
readonly specifierSource: "conventional-commits";
|
|
40
|
-
readonly generatorOptions: {
|
|
41
|
-
readonly currentVersionResolver: "git-tag";
|
|
42
|
-
readonly specifierSource: "conventional-commits";
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
};
|
|
23
|
+
declare const RELEASE: NxJsonConfiguration["release"];
|
|
48
24
|
/**
|
|
49
25
|
* Looks up the actual input string using the provided {@link namedInputs}, merges with the {@link currentInputs}, ensures no duplicates and sorts the result alphabetically.
|
|
50
26
|
*
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { NxJsonConfiguration } from '@nx/devkit';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* The values provided in the `base.json` (this package's shared nx.json configuration) file's {@link NxJsonConfiguration.namedInputs} section.
|
|
3
5
|
*/
|
|
@@ -18,33 +20,7 @@ declare const NAMED_INPUTS: {
|
|
|
18
20
|
/**
|
|
19
21
|
* The values provided in the `base.json` (this package's shared nx.json configuration) file's {@link NxJsonConfiguration.release} section.
|
|
20
22
|
*/
|
|
21
|
-
declare const RELEASE:
|
|
22
|
-
readonly groups: {
|
|
23
|
-
readonly packages: {
|
|
24
|
-
readonly projects: readonly ["packages/*", "crates/*"];
|
|
25
|
-
readonly projectsRelationship: "independent";
|
|
26
|
-
readonly releaseTagPattern: "{projectName}@{version}";
|
|
27
|
-
readonly changelog: {
|
|
28
|
-
readonly entryWhenNoChanges: false;
|
|
29
|
-
readonly renderOptions: {
|
|
30
|
-
readonly authors: false;
|
|
31
|
-
readonly commitReferences: true;
|
|
32
|
-
readonly versionTitleDate: true;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
readonly version: {
|
|
36
|
-
readonly groupPreVersionCommand: "pnpm build";
|
|
37
|
-
readonly generator: "@storm-software/workspace-tools:release-version";
|
|
38
|
-
readonly currentVersionResolver: "git-tag";
|
|
39
|
-
readonly specifierSource: "conventional-commits";
|
|
40
|
-
readonly generatorOptions: {
|
|
41
|
-
readonly currentVersionResolver: "git-tag";
|
|
42
|
-
readonly specifierSource: "conventional-commits";
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
};
|
|
23
|
+
declare const RELEASE: NxJsonConfiguration["release"];
|
|
48
24
|
/**
|
|
49
25
|
* Looks up the actual input string using the provided {@link namedInputs}, merges with the {@link currentInputs}, ensures no duplicates and sorts the result alphabetically.
|
|
50
26
|
*
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkN3YCERS6js = require('../../chunk-N3YCERS6.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.NAMED_INPUTS =
|
|
10
|
+
exports.NAMED_INPUTS = _chunkN3YCERS6js.NAMED_INPUTS; exports.RELEASE = _chunkN3YCERS6js.RELEASE; exports.withNamedInputs = _chunkN3YCERS6js.withNamedInputs;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../chunk-
|
|
5
|
+
var _chunkZP4B44CQjs = require('../../chunk-ZP4B44CQ.js');
|
|
6
|
+
require('../../chunk-JWFGGMYQ.js');
|
|
7
7
|
require('../../chunk-AX3RSZT7.js');
|
|
8
8
|
require('../../chunk-2CDSXWFA.js');
|
|
9
9
|
require('../../chunk-G2L3EEEO.js');
|
|
@@ -11,4 +11,4 @@ require('../../chunk-G2L3EEEO.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.PackageManagerTypes =
|
|
14
|
+
exports.PackageManagerTypes = _chunkZP4B44CQjs.PackageManagerTypes; exports.addPackageJsonGitHead = _chunkZP4B44CQjs.addPackageJsonGitHead; exports.getPackageInfo = _chunkZP4B44CQjs.getPackageInfo;
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
PackageManagerTypes,
|
|
3
3
|
addPackageJsonGitHead,
|
|
4
4
|
getPackageInfo
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-6PVCCKX4.mjs";
|
|
6
|
+
import "../../chunk-X2SLQ73Q.mjs";
|
|
7
7
|
import "../../chunk-F66XEAID.mjs";
|
|
8
8
|
import "../../chunk-V44DYGWX.mjs";
|
|
9
9
|
import "../../chunk-C26A6BXG.mjs";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-IPWUJVZZ.mjs";
|
|
11
11
|
export {
|
|
12
12
|
PackageManagerTypes,
|
|
13
13
|
addPackageJsonGitHead,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectConfiguration,
|
|
1
|
+
import { ProjectConfiguration, CreateNodesContextV2 } from '@nx/devkit';
|
|
2
2
|
import { PackageJson } from 'pkg-types';
|
|
3
3
|
|
|
4
4
|
declare function getProjectPlatform(project: ProjectConfiguration, ignoreTags?: boolean): "node" | "neutral" | "browser" | "worker";
|
|
@@ -15,6 +15,6 @@ declare function getProjectConfigFromProjectRoot(projectRoot: string, packageJso
|
|
|
15
15
|
* @returns The project root directory or null if not found.
|
|
16
16
|
*/
|
|
17
17
|
declare function getProjectRoot(configPath: string, workspaceRoot: string): string | null;
|
|
18
|
-
declare function getRoot(projectRoot: string, context:
|
|
18
|
+
declare function getRoot(projectRoot: string, context: CreateNodesContextV2): string;
|
|
19
19
|
|
|
20
20
|
export { getProjectConfigFromProjectJsonPath, getProjectConfigFromProjectRoot, getProjectPlatform, getProjectRoot, getRoot };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectConfiguration,
|
|
1
|
+
import { ProjectConfiguration, CreateNodesContextV2 } from '@nx/devkit';
|
|
2
2
|
import { PackageJson } from 'pkg-types';
|
|
3
3
|
|
|
4
4
|
declare function getProjectPlatform(project: ProjectConfiguration, ignoreTags?: boolean): "node" | "neutral" | "browser" | "worker";
|
|
@@ -15,6 +15,6 @@ declare function getProjectConfigFromProjectRoot(projectRoot: string, packageJso
|
|
|
15
15
|
* @returns The project root directory or null if not found.
|
|
16
16
|
*/
|
|
17
17
|
declare function getProjectRoot(configPath: string, workspaceRoot: string): string | null;
|
|
18
|
-
declare function getRoot(projectRoot: string, context:
|
|
18
|
+
declare function getRoot(projectRoot: string, context: CreateNodesContextV2): string;
|
|
19
19
|
|
|
20
20
|
export { getProjectConfigFromProjectJsonPath, getProjectConfigFromProjectRoot, getProjectPlatform, getProjectRoot, getRoot };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the version of a crate from the registry.
|
|
3
|
+
*
|
|
4
|
+
* @param name - The name of the crate
|
|
5
|
+
* @param tag - The tag of the crate
|
|
6
|
+
* @param registry - The registry URL
|
|
7
|
+
* @returns The version of the crate from the registry
|
|
8
|
+
*/
|
|
9
|
+
declare const getCrateRegistryVersion: (name: string, tag?: string, registry?: string) => Promise<string>;
|
|
10
|
+
|
|
11
|
+
export { getCrateRegistryVersion };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the version of a crate from the registry.
|
|
3
|
+
*
|
|
4
|
+
* @param name - The name of the crate
|
|
5
|
+
* @param tag - The tag of the crate
|
|
6
|
+
* @param registry - The registry URL
|
|
7
|
+
* @returns The version of the crate from the registry
|
|
8
|
+
*/
|
|
9
|
+
declare const getCrateRegistryVersion: (name: string, tag?: string, registry?: string) => Promise<string>;
|
|
10
|
+
|
|
11
|
+
export { getCrateRegistryVersion };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/workspace-tools",
|
|
3
|
-
"version": "1.292.
|
|
3
|
+
"version": "1.292.18",
|
|
4
4
|
"description": "Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "github",
|
|
@@ -143,6 +143,34 @@
|
|
|
143
143
|
"default": "./dist/src/base/*.js"
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
|
+
"./release": {
|
|
147
|
+
"import": {
|
|
148
|
+
"types": "./dist/src/release/index.d.mts",
|
|
149
|
+
"default": "./dist/src/release/index.mjs"
|
|
150
|
+
},
|
|
151
|
+
"require": {
|
|
152
|
+
"types": "./dist/src/release/index.d.ts",
|
|
153
|
+
"default": "./dist/src/release/index.js"
|
|
154
|
+
},
|
|
155
|
+
"default": {
|
|
156
|
+
"types": "./dist/src/release/index.d.ts",
|
|
157
|
+
"default": "./dist/src/release/index.js"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"./release/*": {
|
|
161
|
+
"import": {
|
|
162
|
+
"types": "./dist/src/release/*.d.mts",
|
|
163
|
+
"default": "./dist/src/release/*.mjs"
|
|
164
|
+
},
|
|
165
|
+
"require": {
|
|
166
|
+
"types": "./dist/src/release/*.d.ts",
|
|
167
|
+
"default": "./dist/src/release/*.js"
|
|
168
|
+
},
|
|
169
|
+
"default": {
|
|
170
|
+
"types": "./dist/src/release/*.d.ts",
|
|
171
|
+
"default": "./dist/src/release/*.js"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
146
174
|
"./executors/*/untyped": {
|
|
147
175
|
"import": {
|
|
148
176
|
"types": "./dist/src/executors/*/untyped.d.mts",
|
|
@@ -193,8 +221,8 @@
|
|
|
193
221
|
],
|
|
194
222
|
"peerDependencies": {
|
|
195
223
|
"markdownlint-cli2": "^0.17.2",
|
|
196
|
-
"nx": "^
|
|
197
|
-
"prettier": "^3.
|
|
224
|
+
"nx": "^22.0.2",
|
|
225
|
+
"prettier": "^3.6.2"
|
|
198
226
|
},
|
|
199
227
|
"peerDependenciesMeta": {
|
|
200
228
|
"markdownlint-cli2": { "optional": false },
|
|
@@ -203,35 +231,36 @@
|
|
|
203
231
|
},
|
|
204
232
|
"dependencies": {
|
|
205
233
|
"@ltd/j-toml": "1.38.0",
|
|
206
|
-
"@microsoft/api-extractor": "^7.
|
|
207
|
-
"@nx/devkit": "^
|
|
234
|
+
"@microsoft/api-extractor": "^7.54.0",
|
|
235
|
+
"@nx/devkit": "^22.0.2",
|
|
236
|
+
"@nx/js": "^22.0.2",
|
|
208
237
|
"@samchon/openapi": "^2.5.3",
|
|
209
238
|
"@size-limit/esbuild": "11.1.4",
|
|
210
239
|
"@size-limit/esbuild-why": "11.1.4",
|
|
211
240
|
"@size-limit/file": "11.1.4",
|
|
212
|
-
"@storm-software/esbuild": "^0.53.
|
|
213
|
-
"@storm-software/npm-tools": "^0.5.
|
|
214
|
-
"@storm-software/pnpm-tools": "^0.6.
|
|
215
|
-
"@storm-software/prettier": "^0.57.
|
|
216
|
-
"@storm-software/tsdown": "^0.45.
|
|
217
|
-
"@storm-software/unbuild": "^0.57.
|
|
241
|
+
"@storm-software/esbuild": "^0.53.18",
|
|
242
|
+
"@storm-software/npm-tools": "^0.5.18",
|
|
243
|
+
"@storm-software/pnpm-tools": "^0.6.18",
|
|
244
|
+
"@storm-software/prettier": "^0.57.18",
|
|
245
|
+
"@storm-software/tsdown": "^0.45.18",
|
|
246
|
+
"@storm-software/unbuild": "^0.57.18",
|
|
218
247
|
"fs-extra": "11.2.0",
|
|
219
|
-
"glob": "^11.0.
|
|
220
|
-
"jiti": "
|
|
248
|
+
"glob": "^11.0.3",
|
|
249
|
+
"jiti": "2.4.2",
|
|
221
250
|
"markdownlint-cli2": "^0.17.2",
|
|
222
251
|
"micromatch": "^4.0.8",
|
|
223
252
|
"semver": "7.6.2",
|
|
224
253
|
"size-limit": "11.1.4",
|
|
225
|
-
"typia": "^7.
|
|
254
|
+
"typia": "^7.6.4",
|
|
226
255
|
"untyped": "^1.5.2",
|
|
227
|
-
"zod": "^4.1.
|
|
256
|
+
"zod": "^4.1.12"
|
|
228
257
|
},
|
|
229
258
|
"devDependencies": {
|
|
230
259
|
"@types/micromatch": "^4.0.10",
|
|
231
|
-
"@types/node": "^22.
|
|
260
|
+
"@types/node": "^22.19.0",
|
|
232
261
|
"@types/semver": "7.5.8",
|
|
233
262
|
"defu": "6.1.4",
|
|
234
|
-
"nx": "^
|
|
263
|
+
"nx": "^22.0.2",
|
|
235
264
|
"pkg-types": "^1.3.1",
|
|
236
265
|
"tsup": "8.4.0",
|
|
237
266
|
"typescript": "^5.9.3"
|
|
@@ -239,5 +268,5 @@
|
|
|
239
268
|
"publishConfig": { "access": "public" },
|
|
240
269
|
"executors": "./executors.json",
|
|
241
270
|
"generators": "./generators.json",
|
|
242
|
-
"gitHead": "
|
|
271
|
+
"gitHead": "4ff7ccead93c470ebb8b9ad5fcd7e70f3a122cbf"
|
|
243
272
|
}
|
package/dist/chunk-J4I6MJT2.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
-
|
|
3
|
-
var _chunkDSDE2UL5js = require('./chunk-DSDE2UL5.js');
|
|
4
|
-
|
|
5
|
-
// ../npm-tools/src/constants.ts
|
|
6
|
-
var DEFAULT_NPM_REGISTRY = "https://registry.npmjs.org";
|
|
7
|
-
var DEFAULT_GITHUB_REGISTRY = "https://npm.pkg.github.com";
|
|
8
|
-
var LATEST_NPM_TAG = "latest";
|
|
9
|
-
var DEFAULT_NPM_TAG = LATEST_NPM_TAG;
|
|
10
|
-
|
|
11
|
-
// ../npm-tools/src/helpers/get-registry.ts
|
|
12
|
-
var _child_process = require('child_process');
|
|
13
|
-
async function getRegistry() {
|
|
14
|
-
return new Promise((resolve, reject) => {
|
|
15
|
-
_child_process.exec.call(void 0, "npm config get registry", (error, stdout, stderr) => {
|
|
16
|
-
if (error) {
|
|
17
|
-
return reject(error);
|
|
18
|
-
}
|
|
19
|
-
if (stderr) {
|
|
20
|
-
return reject(stderr);
|
|
21
|
-
}
|
|
22
|
-
return resolve(stdout.trim());
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
async function getNpmRegistry() {
|
|
27
|
-
if (process.env.STORM_REGISTRY_NPM) {
|
|
28
|
-
return process.env.STORM_REGISTRY_NPM;
|
|
29
|
-
}
|
|
30
|
-
const workspaceConfig = await _chunkDSDE2UL5js.getConfig.call(void 0, );
|
|
31
|
-
if (_optionalChain([workspaceConfig, 'optionalAccess', _ => _.registry, 'optionalAccess', _2 => _2.npm])) {
|
|
32
|
-
return _optionalChain([workspaceConfig, 'optionalAccess', _3 => _3.registry, 'optionalAccess', _4 => _4.npm]);
|
|
33
|
-
}
|
|
34
|
-
return DEFAULT_NPM_REGISTRY;
|
|
35
|
-
}
|
|
36
|
-
async function getGitHubRegistry() {
|
|
37
|
-
if (process.env.STORM_REGISTRY_GITHUB) {
|
|
38
|
-
return process.env.STORM_REGISTRY_GITHUB;
|
|
39
|
-
}
|
|
40
|
-
const workspaceConfig = await _chunkDSDE2UL5js.getConfig.call(void 0, );
|
|
41
|
-
if (_optionalChain([workspaceConfig, 'optionalAccess', _5 => _5.registry, 'optionalAccess', _6 => _6.github])) {
|
|
42
|
-
return _optionalChain([workspaceConfig, 'optionalAccess', _7 => _7.registry, 'optionalAccess', _8 => _8.github]);
|
|
43
|
-
}
|
|
44
|
-
return DEFAULT_GITHUB_REGISTRY;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// ../npm-tools/src/helpers/get-version.ts
|
|
48
|
-
|
|
49
|
-
async function getVersion(packageName, tag = DEFAULT_NPM_TAG, options = {}) {
|
|
50
|
-
const { registry = await getRegistry() } = options;
|
|
51
|
-
return new Promise((resolve, reject) => {
|
|
52
|
-
_child_process.exec.call(void 0,
|
|
53
|
-
`npm view ${packageName} version --registry=${registry} --tag=${tag}`,
|
|
54
|
-
(error, stdout, stderr) => {
|
|
55
|
-
if (error) {
|
|
56
|
-
return reject(error);
|
|
57
|
-
}
|
|
58
|
-
if (stderr) {
|
|
59
|
-
return reject(stderr);
|
|
60
|
-
}
|
|
61
|
-
return resolve(stdout.trim());
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
exports.DEFAULT_NPM_TAG = DEFAULT_NPM_TAG; exports.getRegistry = getRegistry; exports.getNpmRegistry = getNpmRegistry; exports.getGitHubRegistry = getGitHubRegistry; exports.getVersion = getVersion;
|
package/dist/chunk-JLXBL5BC.mjs
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getConfig
|
|
3
|
-
} from "./chunk-NOTQLVZP.mjs";
|
|
4
|
-
|
|
5
|
-
// ../npm-tools/src/constants.ts
|
|
6
|
-
var DEFAULT_NPM_REGISTRY = "https://registry.npmjs.org";
|
|
7
|
-
var DEFAULT_GITHUB_REGISTRY = "https://npm.pkg.github.com";
|
|
8
|
-
var LATEST_NPM_TAG = "latest";
|
|
9
|
-
var DEFAULT_NPM_TAG = LATEST_NPM_TAG;
|
|
10
|
-
|
|
11
|
-
// ../npm-tools/src/helpers/get-registry.ts
|
|
12
|
-
import { exec } from "node:child_process";
|
|
13
|
-
async function getRegistry() {
|
|
14
|
-
return new Promise((resolve, reject) => {
|
|
15
|
-
exec("npm config get registry", (error, stdout, stderr) => {
|
|
16
|
-
if (error) {
|
|
17
|
-
return reject(error);
|
|
18
|
-
}
|
|
19
|
-
if (stderr) {
|
|
20
|
-
return reject(stderr);
|
|
21
|
-
}
|
|
22
|
-
return resolve(stdout.trim());
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
async function getNpmRegistry() {
|
|
27
|
-
if (process.env.STORM_REGISTRY_NPM) {
|
|
28
|
-
return process.env.STORM_REGISTRY_NPM;
|
|
29
|
-
}
|
|
30
|
-
const workspaceConfig = await getConfig();
|
|
31
|
-
if (workspaceConfig?.registry?.npm) {
|
|
32
|
-
return workspaceConfig?.registry?.npm;
|
|
33
|
-
}
|
|
34
|
-
return DEFAULT_NPM_REGISTRY;
|
|
35
|
-
}
|
|
36
|
-
async function getGitHubRegistry() {
|
|
37
|
-
if (process.env.STORM_REGISTRY_GITHUB) {
|
|
38
|
-
return process.env.STORM_REGISTRY_GITHUB;
|
|
39
|
-
}
|
|
40
|
-
const workspaceConfig = await getConfig();
|
|
41
|
-
if (workspaceConfig?.registry?.github) {
|
|
42
|
-
return workspaceConfig?.registry?.github;
|
|
43
|
-
}
|
|
44
|
-
return DEFAULT_GITHUB_REGISTRY;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// ../npm-tools/src/helpers/get-version.ts
|
|
48
|
-
import { exec as exec2 } from "node:child_process";
|
|
49
|
-
async function getVersion(packageName, tag = DEFAULT_NPM_TAG, options = {}) {
|
|
50
|
-
const { registry = await getRegistry() } = options;
|
|
51
|
-
return new Promise((resolve, reject) => {
|
|
52
|
-
exec2(
|
|
53
|
-
`npm view ${packageName} version --registry=${registry} --tag=${tag}`,
|
|
54
|
-
(error, stdout, stderr) => {
|
|
55
|
-
if (error) {
|
|
56
|
-
return reject(error);
|
|
57
|
-
}
|
|
58
|
-
if (stderr) {
|
|
59
|
-
return reject(stderr);
|
|
60
|
-
}
|
|
61
|
-
return resolve(stdout.trim());
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export {
|
|
68
|
-
DEFAULT_NPM_TAG,
|
|
69
|
-
getRegistry,
|
|
70
|
-
getNpmRegistry,
|
|
71
|
-
getGitHubRegistry,
|
|
72
|
-
getVersion
|
|
73
|
-
};
|