@storm-software/workspace-tools 1.292.16 → 1.292.19
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 +48 -0
- package/README.md +4 -35
- 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 +40 -35
- 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
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkW4IH547Ojs = require('../../chunk-W4IH547O.js');
|
|
4
|
+
require('../../chunk-DSDE2UL5.js');
|
|
5
|
+
require('../../chunk-2CDSXWFA.js');
|
|
6
|
+
require('../../chunk-IVAHNQZP.js');
|
|
7
|
+
require('../../chunk-G2L3EEEO.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.default = _chunkW4IH547Ojs.StormJsVersionActions;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StormJsVersionActions
|
|
3
|
+
} from "../../chunk-TJRQRM4Z.mjs";
|
|
4
|
+
import "../../chunk-NOTQLVZP.mjs";
|
|
5
|
+
import "../../chunk-V44DYGWX.mjs";
|
|
6
|
+
import "../../chunk-VGJEUOUN.mjs";
|
|
7
|
+
import "../../chunk-C26A6BXG.mjs";
|
|
8
|
+
import "../../chunk-IPWUJVZZ.mjs";
|
|
9
|
+
export {
|
|
10
|
+
StormJsVersionActions as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ProjectGraphProjectNode, Tree, ProjectGraph } from '@nx/devkit';
|
|
2
|
+
import { S as StormWorkspaceConfig } from '../../types-DeaeRt7S.mjs';
|
|
3
|
+
import { VersionActions } from 'nx/release';
|
|
4
|
+
import { ReleaseGroupWithName } from 'nx/src/command-line/release/config/filter-release-groups';
|
|
5
|
+
import { FinalConfigForProject } from 'nx/src/command-line/release/utils/release-graph';
|
|
6
|
+
import { NxReleaseVersionConfiguration } from 'nx/src/config/nx-json';
|
|
7
|
+
import 'zod';
|
|
8
|
+
import 'zod/mini';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Custom Rust version actions for crates inside a Storm workspace.
|
|
12
|
+
*/
|
|
13
|
+
declare class StormRustVersionActions extends VersionActions {
|
|
14
|
+
validManifestFilenames: string[];
|
|
15
|
+
/**
|
|
16
|
+
* The Storm workspace configuration object, which is loaded from the `storm-workspace.json` file.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* This member variable is populated during the {@link init} method.
|
|
20
|
+
*/
|
|
21
|
+
protected workspaceConfig: StormWorkspaceConfig | null;
|
|
22
|
+
constructor(releaseGroup: ReleaseGroupWithName, projectGraphNode: ProjectGraphProjectNode, finalConfigForProject: FinalConfigForProject);
|
|
23
|
+
/**
|
|
24
|
+
* Asynchronous initialization of the version actions and resolution of manifest paths.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* This does NOT validate that manifest files exist - that happens later in validate().
|
|
28
|
+
*
|
|
29
|
+
* @params tree - The file system tree to read from.
|
|
30
|
+
*/
|
|
31
|
+
init(tree: Tree): Promise<void>;
|
|
32
|
+
readCurrentVersionFromSourceManifest(tree: Tree): Promise<{
|
|
33
|
+
currentVersion: string;
|
|
34
|
+
manifestPath: string;
|
|
35
|
+
}>;
|
|
36
|
+
readCurrentVersionFromRegistry(tree: Tree, currentVersionResolverMetadata: NxReleaseVersionConfiguration["currentVersionResolverMetadata"]): Promise<{
|
|
37
|
+
currentVersion: string;
|
|
38
|
+
logText: string;
|
|
39
|
+
}>;
|
|
40
|
+
readCurrentVersionOfDependency(tree: Tree, projectGraph: ProjectGraph, dependencyProjectName: string): Promise<{
|
|
41
|
+
currentVersion: string | null;
|
|
42
|
+
dependencyCollection: string | null;
|
|
43
|
+
}>;
|
|
44
|
+
updateProjectVersion(tree: Tree, newVersion: string): Promise<string[]>;
|
|
45
|
+
/**
|
|
46
|
+
* Updates the dependencies of the project in the specified Cargo.toml files.
|
|
47
|
+
*
|
|
48
|
+
* @param tree - The file system tree to read from and write to.
|
|
49
|
+
* @param projectGraph - The project graph to use for resolving dependencies.
|
|
50
|
+
* @param dependenciesToUpdate - A mapping of dependency names to their new versions.
|
|
51
|
+
* @returns An array of log messages indicating the results of the updates.
|
|
52
|
+
*/
|
|
53
|
+
updateProjectDependencies(tree: Tree, projectGraph: ProjectGraph, dependenciesToUpdate?: Record<string, string>): Promise<string[]>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { StormRustVersionActions as default };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ProjectGraphProjectNode, Tree, ProjectGraph } from '@nx/devkit';
|
|
2
|
+
import { S as StormWorkspaceConfig } from '../../types-DeaeRt7S.js';
|
|
3
|
+
import { VersionActions } from 'nx/release';
|
|
4
|
+
import { ReleaseGroupWithName } from 'nx/src/command-line/release/config/filter-release-groups';
|
|
5
|
+
import { FinalConfigForProject } from 'nx/src/command-line/release/utils/release-graph';
|
|
6
|
+
import { NxReleaseVersionConfiguration } from 'nx/src/config/nx-json';
|
|
7
|
+
import 'zod';
|
|
8
|
+
import 'zod/mini';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Custom Rust version actions for crates inside a Storm workspace.
|
|
12
|
+
*/
|
|
13
|
+
declare class StormRustVersionActions extends VersionActions {
|
|
14
|
+
validManifestFilenames: string[];
|
|
15
|
+
/**
|
|
16
|
+
* The Storm workspace configuration object, which is loaded from the `storm-workspace.json` file.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* This member variable is populated during the {@link init} method.
|
|
20
|
+
*/
|
|
21
|
+
protected workspaceConfig: StormWorkspaceConfig | null;
|
|
22
|
+
constructor(releaseGroup: ReleaseGroupWithName, projectGraphNode: ProjectGraphProjectNode, finalConfigForProject: FinalConfigForProject);
|
|
23
|
+
/**
|
|
24
|
+
* Asynchronous initialization of the version actions and resolution of manifest paths.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* This does NOT validate that manifest files exist - that happens later in validate().
|
|
28
|
+
*
|
|
29
|
+
* @params tree - The file system tree to read from.
|
|
30
|
+
*/
|
|
31
|
+
init(tree: Tree): Promise<void>;
|
|
32
|
+
readCurrentVersionFromSourceManifest(tree: Tree): Promise<{
|
|
33
|
+
currentVersion: string;
|
|
34
|
+
manifestPath: string;
|
|
35
|
+
}>;
|
|
36
|
+
readCurrentVersionFromRegistry(tree: Tree, currentVersionResolverMetadata: NxReleaseVersionConfiguration["currentVersionResolverMetadata"]): Promise<{
|
|
37
|
+
currentVersion: string;
|
|
38
|
+
logText: string;
|
|
39
|
+
}>;
|
|
40
|
+
readCurrentVersionOfDependency(tree: Tree, projectGraph: ProjectGraph, dependencyProjectName: string): Promise<{
|
|
41
|
+
currentVersion: string | null;
|
|
42
|
+
dependencyCollection: string | null;
|
|
43
|
+
}>;
|
|
44
|
+
updateProjectVersion(tree: Tree, newVersion: string): Promise<string[]>;
|
|
45
|
+
/**
|
|
46
|
+
* Updates the dependencies of the project in the specified Cargo.toml files.
|
|
47
|
+
*
|
|
48
|
+
* @param tree - The file system tree to read from and write to.
|
|
49
|
+
* @param projectGraph - The project graph to use for resolving dependencies.
|
|
50
|
+
* @param dependenciesToUpdate - A mapping of dependency names to their new versions.
|
|
51
|
+
* @returns An array of log messages indicating the results of the updates.
|
|
52
|
+
*/
|
|
53
|
+
updateProjectDependencies(tree: Tree, projectGraph: ProjectGraph, dependenciesToUpdate?: Record<string, string>): Promise<string[]>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { StormRustVersionActions as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkTCGF4GS7js = require('../../chunk-TCGF4GS7.js');
|
|
4
|
+
require('../../chunk-ANHKV7HZ.js');
|
|
5
|
+
require('../../chunk-JWFGGMYQ.js');
|
|
6
|
+
require('../../chunk-DSDE2UL5.js');
|
|
7
|
+
require('../../chunk-2CDSXWFA.js');
|
|
8
|
+
require('../../chunk-IVAHNQZP.js');
|
|
9
|
+
require('../../chunk-G2L3EEEO.js');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.default = _chunkTCGF4GS7js.StormRustVersionActions;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StormRustVersionActions
|
|
3
|
+
} from "../../chunk-EYRX4NM6.mjs";
|
|
4
|
+
import "../../chunk-EGI64HQ2.mjs";
|
|
5
|
+
import "../../chunk-X2SLQ73Q.mjs";
|
|
6
|
+
import "../../chunk-NOTQLVZP.mjs";
|
|
7
|
+
import "../../chunk-V44DYGWX.mjs";
|
|
8
|
+
import "../../chunk-VGJEUOUN.mjs";
|
|
9
|
+
import "../../chunk-C26A6BXG.mjs";
|
|
10
|
+
import "../../chunk-IPWUJVZZ.mjs";
|
|
11
|
+
export {
|
|
12
|
+
StormRustVersionActions as default
|
|
13
|
+
};
|
package/dist/src/types.mjs
CHANGED
package/dist/src/utils/cargo.mjs
CHANGED
package/dist/src/utils/index.js
CHANGED
|
@@ -1,58 +1,59 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-JGP4YWZY.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
var _chunk6EMYX25Vjs = require('../../chunk-6EMYX25V.js');
|
|
4
5
|
|
|
5
6
|
|
|
7
|
+
var _chunkQVYCDINGjs = require('../../chunk-QVYCDING.js');
|
|
6
8
|
|
|
7
9
|
|
|
8
10
|
|
|
11
|
+
var _chunk3Q7VPB75js = require('../../chunk-3Q7VPB75.js');
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
|
12
15
|
|
|
13
16
|
|
|
14
|
-
var _chunkXZSS3YABjs = require('../../chunk-XZSS3YAB.js');
|
|
15
17
|
|
|
16
18
|
|
|
17
19
|
|
|
18
20
|
|
|
19
|
-
var _chunkIBTPJDV6js = require('../../chunk-IBTPJDV6.js');
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
|
|
24
|
+
var _chunkXZSS3YABjs = require('../../chunk-XZSS3YAB.js');
|
|
23
25
|
|
|
24
26
|
|
|
25
27
|
|
|
26
|
-
var _chunkJ6F3WHRBjs = require('../../chunk-J6F3WHRB.js');
|
|
27
28
|
|
|
29
|
+
var _chunkN3YCERS6js = require('../../chunk-N3YCERS6.js');
|
|
28
30
|
|
|
29
|
-
var _chunk6EMYX25Vjs = require('../../chunk-6EMYX25V.js');
|
|
30
31
|
|
|
31
32
|
|
|
32
|
-
var _chunkKLUJ3GE7js = require('../../chunk-KLUJ3GE7.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var _chunkQVYCDINGjs = require('../../chunk-QVYCDING.js');
|
|
36
35
|
|
|
36
|
+
var _chunkJ6F3WHRBjs = require('../../chunk-J6F3WHRB.js');
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkKLUJ3GE7js = require('../../chunk-KLUJ3GE7.js');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var _chunk7QY4X73Cjs = require('../../chunk-7QY4X73C.js');
|
|
45
44
|
|
|
46
45
|
|
|
47
46
|
|
|
48
47
|
|
|
49
48
|
|
|
50
49
|
|
|
50
|
+
var _chunkLJDV7HFTjs = require('../../chunk-LJDV7HFT.js');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
var
|
|
55
|
+
var _chunkZP4B44CQjs = require('../../chunk-ZP4B44CQ.js');
|
|
56
|
+
require('../../chunk-JWFGGMYQ.js');
|
|
56
57
|
|
|
57
58
|
|
|
58
59
|
|
|
@@ -73,7 +74,6 @@ var _chunkLJDV7HFTjs = require('../../chunk-LJDV7HFT.js');
|
|
|
73
74
|
|
|
74
75
|
|
|
75
76
|
var _chunkSZWM7COVjs = require('../../chunk-SZWM7COV.js');
|
|
76
|
-
require('../../chunk-452FQZ3B.js');
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
@@ -150,4 +150,4 @@ require('../../chunk-G2L3EEEO.js');
|
|
|
150
150
|
|
|
151
151
|
|
|
152
152
|
|
|
153
|
-
exports.INVALID_CARGO_ARGS = _chunkLJDV7HFTjs.INVALID_CARGO_ARGS; exports.LOCK_FILES = _chunkXZSS3YABjs.LOCK_FILES; exports.NAMED_INPUTS =
|
|
153
|
+
exports.INVALID_CARGO_ARGS = _chunkLJDV7HFTjs.INVALID_CARGO_ARGS; exports.LOCK_FILES = _chunkXZSS3YABjs.LOCK_FILES; exports.NAMED_INPUTS = _chunkN3YCERS6js.NAMED_INPUTS; exports.NPM_LOCK_FILE = _chunkXZSS3YABjs.NPM_LOCK_FILE; exports.NPM_LOCK_PATH = _chunkXZSS3YABjs.NPM_LOCK_PATH; exports.PNPM_LOCK_FILE = _chunkXZSS3YABjs.PNPM_LOCK_FILE; exports.PNPM_LOCK_PATH = _chunkXZSS3YABjs.PNPM_LOCK_PATH; exports.PackageManagerTypes = _chunkZP4B44CQjs.PackageManagerTypes; exports.ProjectTagConstants = _chunkAX3RSZT7js.ProjectTagConstants; exports.RELEASE = _chunkN3YCERS6js.RELEASE; exports.YARN_LOCK_FILE = _chunkXZSS3YABjs.YARN_LOCK_FILE; exports.YARN_LOCK_PATH = _chunkXZSS3YABjs.YARN_LOCK_PATH; exports.addPackageJsonGitHead = _chunkZP4B44CQjs.addPackageJsonGitHead; exports.addPluginProjectTag = _chunkAX3RSZT7js.addPluginProjectTag; exports.addProjectTag = _chunkAX3RSZT7js.addProjectTag; exports.applyWorkspaceExecutorTokens = _chunkKLUJ3GE7js.applyWorkspaceExecutorTokens; exports.buildCargoCommand = _chunkLJDV7HFTjs.buildCargoCommand; exports.cargoCommand = _chunkLJDV7HFTjs.cargoCommand; exports.cargoCommandSync = _chunkLJDV7HFTjs.cargoCommandSync; exports.cargoMetadata = _chunkLJDV7HFTjs.cargoMetadata; exports.cargoRunCommand = _chunkLJDV7HFTjs.cargoRunCommand; exports.childProcess = _chunkLJDV7HFTjs.childProcess; exports.createCliOptions = _chunkQVYCDINGjs.createCliOptions; exports.eslintVersion = _chunkSZWM7COVjs.eslintVersion; exports.formatProjectTag = _chunkAX3RSZT7js.formatProjectTag; exports.getLockFileDependencies = _chunkXZSS3YABjs.getLockFileDependencies; exports.getLockFileName = _chunkXZSS3YABjs.getLockFileName; exports.getLockFileNodes = _chunkXZSS3YABjs.getLockFileNodes; exports.getPackageInfo = _chunkZP4B44CQjs.getPackageInfo; exports.getProjectConfigFromProjectJsonPath = _chunkJ6F3WHRBjs.getProjectConfigFromProjectJsonPath; exports.getProjectConfigFromProjectRoot = _chunkJ6F3WHRBjs.getProjectConfigFromProjectRoot; exports.getProjectConfiguration = _chunk3Q7VPB75js.getProjectConfiguration; exports.getProjectConfigurations = _chunk3Q7VPB75js.getProjectConfigurations; exports.getProjectPlatform = _chunkJ6F3WHRBjs.getProjectPlatform; exports.getProjectRoot = _chunkJ6F3WHRBjs.getProjectRoot; exports.getProjectTag = _chunkAX3RSZT7js.getProjectTag; exports.getRoot = _chunkJ6F3WHRBjs.getRoot; exports.getTypiaTransform = _chunk6EMYX25Vjs.getTypiaTransform; exports.hasProjectTag = _chunkAX3RSZT7js.hasProjectTag; exports.isEqualProjectTag = _chunkAX3RSZT7js.isEqualProjectTag; exports.isExternal = _chunkLJDV7HFTjs.isExternal; exports.lintStagedVersion = _chunkSZWM7COVjs.lintStagedVersion; exports.lockFileExists = _chunkXZSS3YABjs.lockFileExists; exports.nodeVersion = _chunkSZWM7COVjs.nodeVersion; exports.nxVersion = _chunkSZWM7COVjs.nxVersion; exports.pnpmVersion = _chunkSZWM7COVjs.pnpmVersion; exports.prettierPackageJsonVersion = _chunkSZWM7COVjs.prettierPackageJsonVersion; exports.prettierPrismaVersion = _chunkSZWM7COVjs.prettierPrismaVersion; exports.prettierVersion = _chunkSZWM7COVjs.prettierVersion; exports.runProcess = _chunkLJDV7HFTjs.runProcess; exports.semanticReleaseVersion = _chunkSZWM7COVjs.semanticReleaseVersion; exports.setDefaultProjectTags = _chunkAX3RSZT7js.setDefaultProjectTags; exports.swcCliVersion = _chunkSZWM7COVjs.swcCliVersion; exports.swcCoreVersion = _chunkSZWM7COVjs.swcCoreVersion; exports.swcHelpersVersion = _chunkSZWM7COVjs.swcHelpersVersion; exports.swcNodeVersion = _chunkSZWM7COVjs.swcNodeVersion; exports.tsLibVersion = _chunkSZWM7COVjs.tsLibVersion; exports.tsupVersion = _chunkSZWM7COVjs.tsupVersion; exports.typesNodeVersion = _chunkSZWM7COVjs.typesNodeVersion; exports.typescriptVersion = _chunkSZWM7COVjs.typescriptVersion; exports.verdaccioVersion = _chunkSZWM7COVjs.verdaccioVersion; exports.withNamedInputs = _chunkN3YCERS6js.withNamedInputs;
|
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 };
|