@git.zone/cli 12.2.0 → 12.3.0
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/assets/templates/npm/.package.json +1 -1
- package/assets/templates/service/.package.json +1 -1
- package/assets/templates/wcc/.package.json +1 -1
- package/assets/templates/website/.package.json +1 -1
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/helpers.versionsource.d.ts +23 -5
- package/dist_ts/helpers.versionsource.js +115 -37
- package/dist_ts/helpers.workflow.d.ts +60 -17
- package/dist_ts/helpers.workflow.js +156 -51
- package/dist_ts/mod_config/index.js +98 -31
- package/dist_ts/mod_release/classes.releasejournal.d.ts +63 -8
- package/dist_ts/mod_release/classes.releasejournal.js +283 -124
- package/dist_ts/mod_release/helpers.cargorelease.d.ts +4 -3
- package/dist_ts/mod_release/helpers.cargorelease.js +5 -4
- package/dist_ts/mod_release/helpers.fossglobalassets.d.ts +61 -0
- package/dist_ts/mod_release/helpers.fossglobalassets.js +580 -0
- package/dist_ts/mod_release/helpers.giteaassets.d.ts +15 -51
- package/dist_ts/mod_release/helpers.giteaassets.js +40 -507
- package/dist_ts/mod_release/helpers.releaseassets.d.ts +40 -0
- package/dist_ts/mod_release/helpers.releaseassets.js +349 -0
- package/dist_ts/mod_release/helpers.releaseassettransfer.d.ts +67 -0
- package/dist_ts/mod_release/helpers.releaseassettransfer.js +239 -0
- package/dist_ts/mod_release/helpers.releasecheck.js +3 -2
- package/dist_ts/mod_release/helpers.releasepreparation.d.ts +7 -6
- package/dist_ts/mod_release/helpers.releasepreparation.js +34 -7
- package/dist_ts/mod_release/helpers.releasepublication.d.ts +8 -2
- package/dist_ts/mod_release/helpers.releasepublication.js +218 -54
- package/dist_ts/mod_release/helpers.releaseversionsource.d.ts +7 -5
- package/dist_ts/mod_release/helpers.releaseversionsource.js +9 -7
- package/dist_ts/mod_release/index.d.ts +1 -1
- package/dist_ts/mod_release/index.js +109 -68
- package/dist_ts/mod_release/interfaces.fossglobalassets.d.ts +108 -0
- package/dist_ts/mod_release/interfaces.fossglobalassets.js +2 -0
- package/dist_ts/mod_release/interfaces.giteaassets.d.ts +9 -43
- package/dist_ts/mod_release/interfaces.releaseassets.d.ts +68 -0
- package/dist_ts/mod_release/interfaces.releaseassets.js +2 -0
- package/dist_ts/plugins.d.ts +1 -0
- package/dist_ts/plugins.js +1 -1
- package/package.json +3 -2
- package/readme.md +338 -40
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/helpers.versionsource.ts +176 -45
- package/ts/helpers.workflow.ts +288 -78
- package/ts/mod_config/index.ts +130 -38
- package/ts/mod_release/classes.releasejournal.ts +499 -180
- package/ts/mod_release/helpers.cargorelease.ts +8 -3
- package/ts/mod_release/helpers.fossglobalassets.ts +886 -0
- package/ts/mod_release/helpers.giteaassets.ts +127 -694
- package/ts/mod_release/helpers.releaseassets.ts +516 -0
- package/ts/mod_release/helpers.releaseassettransfer.ts +339 -0
- package/ts/mod_release/helpers.releasecheck.ts +3 -1
- package/ts/mod_release/helpers.releasepreparation.ts +55 -12
- package/ts/mod_release/helpers.releasepublication.ts +351 -69
- package/ts/mod_release/helpers.releaseversionsource.ts +11 -7
- package/ts/mod_release/index.ts +151 -90
- package/ts/mod_release/interfaces.fossglobalassets.ts +127 -0
- package/ts/mod_release/interfaces.giteaassets.ts +14 -47
- package/ts/mod_release/interfaces.releaseassets.ts +96 -0
- package/ts/plugins.ts +3 -0
|
@@ -2,9 +2,11 @@ import * as plugins from "./mod.plugins.js";
|
|
|
2
2
|
import type { IResolvedReleaseWorkflow } from "../helpers.workflow.js";
|
|
3
3
|
import { type IVersionSource } from "../helpers.versionsource.js";
|
|
4
4
|
/**
|
|
5
|
-
* The version source of the release in `cwdArg`: package.json,
|
|
6
|
-
* workspace of projectType "rust"
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* The version source of the release in `cwdArg`: package.json, the Cargo
|
|
6
|
+
* workspace of projectType "rust", or package.json together with the internal
|
|
7
|
+
* Cargo workspace of a TypeScript project that configures the cargo target;
|
|
8
|
+
* every Cargo workspace through the project's rsrepo engine. `gitzone
|
|
9
|
+
* release`, its plan and `gitzone release check` all open it here, so they
|
|
10
|
+
* refuse the same projects with the same message.
|
|
9
11
|
*/
|
|
10
|
-
export declare const openReleaseVersionSource: (smartshellArg: plugins.smartshell.Smartshell, workflowArg: Pick<IResolvedReleaseWorkflow, "
|
|
12
|
+
export declare const openReleaseVersionSource: (smartshellArg: plugins.smartshell.Smartshell, workflowArg: Pick<IResolvedReleaseWorkflow, "cargoWorkspace">, cwdArg: string) => Promise<IVersionSource>;
|
|
@@ -2,17 +2,19 @@ import * as plugins from "./mod.plugins.js";
|
|
|
2
2
|
import { detectVersionSourceKind, openVersionSource, } from "../helpers.versionsource.js";
|
|
3
3
|
import { RsrepoEngineClient } from "./helpers.rsrepoengine.js";
|
|
4
4
|
/**
|
|
5
|
-
* The version source of the release in `cwdArg`: package.json,
|
|
6
|
-
* workspace of projectType "rust"
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* The version source of the release in `cwdArg`: package.json, the Cargo
|
|
6
|
+
* workspace of projectType "rust", or package.json together with the internal
|
|
7
|
+
* Cargo workspace of a TypeScript project that configures the cargo target;
|
|
8
|
+
* every Cargo workspace through the project's rsrepo engine. `gitzone
|
|
9
|
+
* release`, its plan and `gitzone release check` all open it here, so they
|
|
10
|
+
* refuse the same projects with the same message.
|
|
9
11
|
*/
|
|
10
12
|
export const openReleaseVersionSource = async (smartshellArg, workflowArg, cwdArg) => {
|
|
11
|
-
const kind = await detectVersionSourceKind(cwdArg, workflowArg.
|
|
12
|
-
if (kind !== "cargo")
|
|
13
|
+
const kind = await detectVersionSourceKind(cwdArg, workflowArg.cargoWorkspace === "root" ? "rust" : undefined, workflowArg.cargoWorkspace === "internal");
|
|
14
|
+
if (kind !== "cargo" && kind !== "npm+cargo")
|
|
13
15
|
return openVersionSource(kind, cwdArg);
|
|
14
16
|
const engine = await RsrepoEngineClient.forProject(smartshellArg, cwdArg);
|
|
15
17
|
await engine.assertCapabilities(["plan", "set-version"]);
|
|
16
18
|
return openVersionSource(kind, cwdArg, engine);
|
|
17
19
|
};
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVscGVycy5yZWxlYXNldmVyc2lvbnNvdXJjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3RzL21vZF9yZWxlYXNlL2hlbHBlcnMucmVsZWFzZXZlcnNpb25zb3VyY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE9BQU8sTUFBTSxrQkFBa0IsQ0FBQztBQUU1QyxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLGlCQUFpQixHQUVsQixNQUFNLDZCQUE2QixDQUFDO0FBQ3JDLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBRS9EOzs7Ozs7O0dBT0c7QUFDSCxNQUFNLENBQUMsTUFBTSx3QkFBd0IsR0FBRyxLQUFLLEVBQzNDLGFBQTRDLEVBQzVDLFdBQTZELEVBQzdELE1BQWMsRUFDVyxFQUFFO0lBQzNCLE1BQU0sSUFBSSxHQUFHLE1BQU0sdUJBQXVCLENBQ3hDLE1BQU0sRUFDTixXQUFXLENBQUMsY0FBYyxLQUFLLE1BQU0sQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxTQUFTLEVBQzFELFdBQVcsQ0FBQyxjQUFjLEtBQUssVUFBVSxDQUMxQyxDQUFDO0lBQ0YsSUFBSSxJQUFJLEtBQUssT0FBTyxJQUFJLElBQUksS0FBSyxXQUFXO1FBQzFDLE9BQU8saUJBQWlCLENBQUMsSUFBSSxFQUFFLE1BQU0sQ0FBQyxDQUFDO0lBQ3pDLE1BQU0sTUFBTSxHQUFHLE1BQU0sa0JBQWtCLENBQUMsVUFBVSxDQUFDLGFBQWEsRUFBRSxNQUFNLENBQUMsQ0FBQztJQUMxRSxNQUFNLE1BQU0sQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDLE1BQU0sRUFBRSxhQUFhLENBQUMsQ0FBQyxDQUFDO0lBQ3pELE9BQU8saUJBQWlCLENBQUMsSUFBSSxFQUFFLE1BQU0sRUFBRSxNQUFNLENBQUMsQ0FBQztBQUNqRCxDQUFDLENBQUMifQ==
|
|
@@ -38,7 +38,7 @@ interface ICreateReleaseJournalOptions {
|
|
|
38
38
|
releaseCwd: string;
|
|
39
39
|
/**
|
|
40
40
|
* Exact disposable checkout of the release commit that every build output,
|
|
41
|
-
* npm tarball, and frozen
|
|
41
|
+
* npm tarball, and frozen release asset is taken from.
|
|
42
42
|
*/
|
|
43
43
|
npmSourceCwd?: string;
|
|
44
44
|
/**
|