@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
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
isEqualProjectTag,
|
|
9
9
|
setDefaultProjectTags
|
|
10
10
|
} from "../../../chunk-F66XEAID.mjs";
|
|
11
|
-
import "../../../chunk-
|
|
11
|
+
import "../../../chunk-IPWUJVZZ.mjs";
|
|
12
12
|
|
|
13
13
|
// src/plugins/typescript/index.ts
|
|
14
14
|
import {
|
|
@@ -37,24 +37,24 @@ var createNodesV2 = [
|
|
|
37
37
|
if (!tsconfig) {
|
|
38
38
|
return {};
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const project = createProjectFromPackageJsonNextToProjectJson(
|
|
41
41
|
file,
|
|
42
42
|
packageJson
|
|
43
43
|
);
|
|
44
|
-
if (options2?.includeApps === false &&
|
|
44
|
+
if (options2?.includeApps === false && project.projectType === "application") {
|
|
45
45
|
return {};
|
|
46
46
|
}
|
|
47
|
-
const root = getRoot(
|
|
47
|
+
const root = getRoot(project.root, context2);
|
|
48
48
|
const enableMarkdownlint = options2?.enableMarkdownlint !== false;
|
|
49
49
|
const enableEslint = options2?.enableEslint !== false;
|
|
50
50
|
const enableTypeCheck = options2?.enableTypeCheck !== false;
|
|
51
51
|
const targets = readTargetsFromPackageJson(
|
|
52
52
|
packageJson,
|
|
53
53
|
nxJson,
|
|
54
|
-
|
|
54
|
+
project.root,
|
|
55
55
|
context2.workspaceRoot
|
|
56
56
|
);
|
|
57
|
-
if (join(context2.workspaceRoot,
|
|
57
|
+
if (join(context2.workspaceRoot, project.root).startsWith(
|
|
58
58
|
join(context2.workspaceRoot, "tools")
|
|
59
59
|
) && options2?.lintInternalTools !== true) {
|
|
60
60
|
targets.lint ??= {
|
|
@@ -104,14 +104,14 @@ var createNodesV2 = [
|
|
|
104
104
|
],
|
|
105
105
|
options: {
|
|
106
106
|
command: `pnpm exec ${options2?.useTsGo ? "tsgo" : "tsc"} --noEmit --skipLibCheck --pretty --project ./${join(
|
|
107
|
-
|
|
107
|
+
project.root,
|
|
108
108
|
"tsconfig.json"
|
|
109
109
|
)}`
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
if (enableEslint) {
|
|
114
|
-
let eslintConfig = checkEslintConfigAtPath(
|
|
114
|
+
let eslintConfig = checkEslintConfigAtPath(project.root);
|
|
115
115
|
if (!eslintConfig) {
|
|
116
116
|
eslintConfig = checkEslintConfigAtPath(context2.workspaceRoot);
|
|
117
117
|
}
|
|
@@ -207,10 +207,10 @@ var createNodesV2 = [
|
|
|
207
207
|
inputs: ["typescript", "^production"],
|
|
208
208
|
outputs: [`{workspaceRoot}/dist/${root}`],
|
|
209
209
|
options: {
|
|
210
|
-
command: `pnpm exec nx run ${
|
|
210
|
+
command: `pnpm exec nx run ${project.name}:build`
|
|
211
211
|
}
|
|
212
212
|
};
|
|
213
|
-
if (checkJestConfigAtPath(
|
|
213
|
+
if (checkJestConfigAtPath(project.root)) {
|
|
214
214
|
targets.test ??= {
|
|
215
215
|
cache: true,
|
|
216
216
|
executor: "@nx/jest:jest",
|
|
@@ -250,7 +250,7 @@ var createNodesV2 = [
|
|
|
250
250
|
const isPrivate = packageJson.private ?? false;
|
|
251
251
|
if (!isPrivate) {
|
|
252
252
|
addProjectTag(
|
|
253
|
-
|
|
253
|
+
project,
|
|
254
254
|
ProjectTagConstants.Registry.TAG_ID,
|
|
255
255
|
ProjectTagConstants.Registry.NPM,
|
|
256
256
|
{ overwrite: true }
|
|
@@ -261,12 +261,12 @@ var createNodesV2 = [
|
|
|
261
261
|
executor: "@storm-software/workspace-tools:npm-publish",
|
|
262
262
|
options: {}
|
|
263
263
|
};
|
|
264
|
-
if (
|
|
265
|
-
|
|
264
|
+
if (project.projectType === "application" || isEqualProjectTag(
|
|
265
|
+
project,
|
|
266
266
|
ProjectTagConstants.ProjectType.TAG_ID,
|
|
267
267
|
ProjectTagConstants.ProjectType.APPLICATION
|
|
268
268
|
) || isEqualProjectTag(
|
|
269
|
-
|
|
269
|
+
project,
|
|
270
270
|
ProjectTagConstants.DistStyle.TAG_ID,
|
|
271
271
|
ProjectTagConstants.DistStyle.CLEAN
|
|
272
272
|
)) {
|
|
@@ -286,16 +286,16 @@ var createNodesV2 = [
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
addProjectTag(
|
|
289
|
-
|
|
289
|
+
project,
|
|
290
290
|
ProjectTagConstants.Language.TAG_ID,
|
|
291
291
|
ProjectTagConstants.Language.TYPESCRIPT,
|
|
292
292
|
{ overwrite: true }
|
|
293
293
|
);
|
|
294
|
-
const platform = getProjectPlatform(
|
|
294
|
+
const platform = getProjectPlatform(project);
|
|
295
295
|
switch (platform) {
|
|
296
296
|
case "worker":
|
|
297
297
|
addProjectTag(
|
|
298
|
-
|
|
298
|
+
project,
|
|
299
299
|
ProjectTagConstants.Platform.TAG_ID,
|
|
300
300
|
ProjectTagConstants.Platform.WORKER,
|
|
301
301
|
{ overwrite: true }
|
|
@@ -303,7 +303,7 @@ var createNodesV2 = [
|
|
|
303
303
|
break;
|
|
304
304
|
case "node":
|
|
305
305
|
addProjectTag(
|
|
306
|
-
|
|
306
|
+
project,
|
|
307
307
|
ProjectTagConstants.Platform.TAG_ID,
|
|
308
308
|
ProjectTagConstants.Platform.NODE,
|
|
309
309
|
{ overwrite: true }
|
|
@@ -311,7 +311,7 @@ var createNodesV2 = [
|
|
|
311
311
|
break;
|
|
312
312
|
case "browser":
|
|
313
313
|
addProjectTag(
|
|
314
|
-
|
|
314
|
+
project,
|
|
315
315
|
ProjectTagConstants.Platform.TAG_ID,
|
|
316
316
|
ProjectTagConstants.Platform.BROWSER,
|
|
317
317
|
{ overwrite: true }
|
|
@@ -319,14 +319,14 @@ var createNodesV2 = [
|
|
|
319
319
|
break;
|
|
320
320
|
default:
|
|
321
321
|
addProjectTag(
|
|
322
|
-
|
|
322
|
+
project,
|
|
323
323
|
ProjectTagConstants.Platform.TAG_ID,
|
|
324
324
|
ProjectTagConstants.Platform.NEUTRAL,
|
|
325
325
|
{ overwrite: true }
|
|
326
326
|
);
|
|
327
327
|
break;
|
|
328
328
|
}
|
|
329
|
-
setDefaultProjectTags(
|
|
329
|
+
setDefaultProjectTags(project, name);
|
|
330
330
|
return {
|
|
331
331
|
projects: {
|
|
332
332
|
[root]: defu(
|
|
@@ -335,11 +335,11 @@ var createNodesV2 = [
|
|
|
335
335
|
targets,
|
|
336
336
|
release: {
|
|
337
337
|
version: {
|
|
338
|
-
|
|
338
|
+
versionActions: "@storm-software/workspace-tools/release/js-version-actions"
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
},
|
|
342
|
-
|
|
342
|
+
project
|
|
343
343
|
)
|
|
344
344
|
}
|
|
345
345
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { default as StormJsVersionActions } from './js-version-actions.mjs';
|
|
2
|
+
export { default as StormRustVersionActions } from './rust-version-actions.mjs';
|
|
3
|
+
import '@nx/devkit';
|
|
4
|
+
import '@nx/js/src/release/version-actions.js';
|
|
5
|
+
import '../../types-DeaeRt7S.mjs';
|
|
6
|
+
import 'zod';
|
|
7
|
+
import 'zod/mini';
|
|
8
|
+
import 'nx/src/command-line/release/config/filter-release-groups';
|
|
9
|
+
import 'nx/src/command-line/release/utils/release-graph';
|
|
10
|
+
import 'nx/src/config/nx-json';
|
|
11
|
+
import 'nx/release';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { default as StormJsVersionActions } from './js-version-actions.js';
|
|
2
|
+
export { default as StormRustVersionActions } from './rust-version-actions.js';
|
|
3
|
+
import '@nx/devkit';
|
|
4
|
+
import '@nx/js/src/release/version-actions.js';
|
|
5
|
+
import '../../types-DeaeRt7S.js';
|
|
6
|
+
import 'zod';
|
|
7
|
+
import 'zod/mini';
|
|
8
|
+
import 'nx/src/command-line/release/config/filter-release-groups';
|
|
9
|
+
import 'nx/src/command-line/release/utils/release-graph';
|
|
10
|
+
import 'nx/src/config/nx-json';
|
|
11
|
+
import 'nx/release';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-YYLV7UA6.js');
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkW4IH547Ojs = require('../../chunk-W4IH547O.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkTCGF4GS7js = require('../../chunk-TCGF4GS7.js');
|
|
8
|
+
require('../../chunk-ANHKV7HZ.js');
|
|
9
|
+
require('../../chunk-JWFGGMYQ.js');
|
|
10
|
+
require('../../chunk-DSDE2UL5.js');
|
|
11
|
+
require('../../chunk-2CDSXWFA.js');
|
|
12
|
+
require('../../chunk-IVAHNQZP.js');
|
|
13
|
+
require('../../chunk-G2L3EEEO.js');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
exports.StormJsVersionActions = _chunkW4IH547Ojs.StormJsVersionActions; exports.StormRustVersionActions = _chunkTCGF4GS7js.StormRustVersionActions;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "../../chunk-5GZC2PF6.mjs";
|
|
2
|
+
import {
|
|
3
|
+
StormJsVersionActions
|
|
4
|
+
} from "../../chunk-TJRQRM4Z.mjs";
|
|
5
|
+
import {
|
|
6
|
+
StormRustVersionActions
|
|
7
|
+
} from "../../chunk-EYRX4NM6.mjs";
|
|
8
|
+
import "../../chunk-EGI64HQ2.mjs";
|
|
9
|
+
import "../../chunk-X2SLQ73Q.mjs";
|
|
10
|
+
import "../../chunk-NOTQLVZP.mjs";
|
|
11
|
+
import "../../chunk-V44DYGWX.mjs";
|
|
12
|
+
import "../../chunk-VGJEUOUN.mjs";
|
|
13
|
+
import "../../chunk-C26A6BXG.mjs";
|
|
14
|
+
import "../../chunk-IPWUJVZZ.mjs";
|
|
15
|
+
export {
|
|
16
|
+
StormJsVersionActions,
|
|
17
|
+
StormRustVersionActions
|
|
18
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ProjectGraphProjectNode, Tree } from '@nx/devkit';
|
|
2
|
+
import JsVersionActions from '@nx/js/src/release/version-actions.js';
|
|
3
|
+
import { S as StormWorkspaceConfig } from '../../types-DeaeRt7S.mjs';
|
|
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 JavaScript/TypeScript version actions for packages inside a Storm workspace.
|
|
12
|
+
*/
|
|
13
|
+
declare class StormJsVersionActions extends JsVersionActions {
|
|
14
|
+
/**
|
|
15
|
+
* The Storm workspace configuration object, which is loaded from the `storm-workspace.json` file.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* This member variable is populated during the {@link init} method.
|
|
19
|
+
*/
|
|
20
|
+
protected workspaceConfig: StormWorkspaceConfig | null;
|
|
21
|
+
constructor(releaseGroup: ReleaseGroupWithName, projectGraphNode: ProjectGraphProjectNode, finalConfigForProject: FinalConfigForProject);
|
|
22
|
+
/**
|
|
23
|
+
* Asynchronous initialization of the version actions and resolution of manifest paths.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* This does NOT validate that manifest files exist - that happens later in validate().
|
|
27
|
+
*
|
|
28
|
+
* @params tree - The file system tree to read from.
|
|
29
|
+
*/
|
|
30
|
+
init(tree: Tree): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Reads the current version of a package from the registry.
|
|
33
|
+
*
|
|
34
|
+
* @param tree - The file system tree to read from.
|
|
35
|
+
* @param currentVersionResolverMetadata - Metadata for resolving the current version.
|
|
36
|
+
* @returns The current version and log text.
|
|
37
|
+
*/
|
|
38
|
+
readCurrentVersionFromRegistry(tree: Tree, currentVersionResolverMetadata: NxReleaseVersionConfiguration["currentVersionResolverMetadata"]): Promise<{
|
|
39
|
+
currentVersion: string;
|
|
40
|
+
logText: string;
|
|
41
|
+
}>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { StormJsVersionActions as default };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ProjectGraphProjectNode, Tree } from '@nx/devkit';
|
|
2
|
+
import JsVersionActions from '@nx/js/src/release/version-actions.js';
|
|
3
|
+
import { S as StormWorkspaceConfig } from '../../types-DeaeRt7S.js';
|
|
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 JavaScript/TypeScript version actions for packages inside a Storm workspace.
|
|
12
|
+
*/
|
|
13
|
+
declare class StormJsVersionActions extends JsVersionActions {
|
|
14
|
+
/**
|
|
15
|
+
* The Storm workspace configuration object, which is loaded from the `storm-workspace.json` file.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* This member variable is populated during the {@link init} method.
|
|
19
|
+
*/
|
|
20
|
+
protected workspaceConfig: StormWorkspaceConfig | null;
|
|
21
|
+
constructor(releaseGroup: ReleaseGroupWithName, projectGraphNode: ProjectGraphProjectNode, finalConfigForProject: FinalConfigForProject);
|
|
22
|
+
/**
|
|
23
|
+
* Asynchronous initialization of the version actions and resolution of manifest paths.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* This does NOT validate that manifest files exist - that happens later in validate().
|
|
27
|
+
*
|
|
28
|
+
* @params tree - The file system tree to read from.
|
|
29
|
+
*/
|
|
30
|
+
init(tree: Tree): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Reads the current version of a package from the registry.
|
|
33
|
+
*
|
|
34
|
+
* @param tree - The file system tree to read from.
|
|
35
|
+
* @param currentVersionResolverMetadata - Metadata for resolving the current version.
|
|
36
|
+
* @returns The current version and log text.
|
|
37
|
+
*/
|
|
38
|
+
readCurrentVersionFromRegistry(tree: Tree, currentVersionResolverMetadata: NxReleaseVersionConfiguration["currentVersionResolverMetadata"]): Promise<{
|
|
39
|
+
currentVersion: string;
|
|
40
|
+
logText: string;
|
|
41
|
+
}>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { StormJsVersionActions as default };
|
|
@@ -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;
|