@releasekit/release 0.7.11 → 0.7.12

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/dist/cli.js CHANGED
@@ -2,12 +2,16 @@
2
2
  import {
3
3
  createPreviewCommand,
4
4
  createReleaseCommand
5
- } from "./chunk-ALHJU3KL.js";
5
+ } from "./chunk-FEMWVXXM.js";
6
6
  import {
7
7
  readPackageVersion
8
- } from "./chunk-D6HRZXZZ.js";
8
+ } from "./chunk-6UI4L62T.js";
9
+ import {
10
+ init_esm_shims
11
+ } from "./chunk-NOZSTVTV.js";
9
12
 
10
13
  // src/cli.ts
14
+ init_esm_shims();
11
15
  import { realpathSync } from "fs";
12
16
  import { fileURLToPath } from "url";
13
17
  import { Command } from "commander";
@@ -0,0 +1,14 @@
1
+ import {
2
+ execAsync,
3
+ execSync
4
+ } from "./chunk-TC44YA6X.js";
5
+ import {
6
+ init_esm_shims
7
+ } from "./chunk-NOZSTVTV.js";
8
+
9
+ // ../version/dist/commandExecutor-E44ID5U4.js
10
+ init_esm_shims();
11
+ export {
12
+ execAsync,
13
+ execSync
14
+ };
@@ -1,27 +1,43 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ createNotesCommand
4
+ } from "./chunk-QUY54CTL.js";
5
+ import {
6
+ detectMonorepo
7
+ } from "./chunk-275AVVZE.js";
8
+ import {
9
+ createPublishCommand
10
+ } from "./chunk-YG3UFSB6.js";
2
11
  import {
3
12
  createPreviewCommand,
4
13
  createReleaseCommand
5
- } from "./chunk-ALHJU3KL.js";
14
+ } from "./chunk-FEMWVXXM.js";
6
15
  import {
7
16
  EXIT_CODES,
8
17
  error,
9
18
  info,
10
19
  readPackageVersion,
11
20
  success
12
- } from "./chunk-D6HRZXZZ.js";
21
+ } from "./chunk-6UI4L62T.js";
22
+ import {
23
+ createVersionCommand
24
+ } from "./chunk-TJ2FXMEO.js";
25
+ import "./chunk-QDGNHERK.js";
26
+ import "./chunk-TC44YA6X.js";
27
+ import "./chunk-3AKDKIIQ.js";
28
+ import {
29
+ init_esm_shims
30
+ } from "./chunk-NOZSTVTV.js";
13
31
 
14
32
  // src/dispatcher.ts
33
+ init_esm_shims();
15
34
  import { realpathSync } from "fs";
16
35
  import { fileURLToPath } from "url";
17
- import { createNotesCommand } from "@releasekit/notes/cli";
18
- import { createPublishCommand } from "@releasekit/publish/cli";
19
- import { createVersionCommand } from "@releasekit/version/cli";
20
36
  import { Command as Command2 } from "commander";
21
37
 
22
38
  // src/init-command.ts
39
+ init_esm_shims();
23
40
  import * as fs from "fs";
24
- import { detectMonorepo } from "@releasekit/notes";
25
41
  import { Command } from "commander";
26
42
  function createInitCommand() {
27
43
  return new Command("init").description("Create a default releasekit.config.json").option("-f, --force", "Overwrite existing config").action((options) => {
@@ -0,0 +1,42 @@
1
+ import {
2
+ BasePublishError,
3
+ PipelineError,
4
+ PublishError,
5
+ PublishErrorCode,
6
+ createPublishCommand,
7
+ createPublishError,
8
+ detectNpmAuth,
9
+ detectPackageManager,
10
+ extractPathDeps,
11
+ getDefaultConfig2,
12
+ getDistTag,
13
+ hasCargoAuth,
14
+ isPrerelease,
15
+ loadConfig2,
16
+ parseCargoToml,
17
+ parseInput,
18
+ runPipeline,
19
+ updateCargoVersion
20
+ } from "./chunk-YG3UFSB6.js";
21
+ import "./chunk-QDGNHERK.js";
22
+ import "./chunk-NOZSTVTV.js";
23
+ export {
24
+ BasePublishError,
25
+ PipelineError,
26
+ PublishError,
27
+ PublishErrorCode,
28
+ createPublishCommand,
29
+ createPublishError,
30
+ detectNpmAuth,
31
+ detectPackageManager,
32
+ extractPathDeps,
33
+ getDefaultConfig2 as getDefaultConfig,
34
+ getDistTag,
35
+ hasCargoAuth,
36
+ isPrerelease,
37
+ loadConfig2 as loadConfig,
38
+ parseCargoToml,
39
+ parseInput,
40
+ runPipeline,
41
+ updateCargoVersion
42
+ };
@@ -0,0 +1,37 @@
1
+ import {
2
+ PackageProcessor,
3
+ VersionEngine,
4
+ VersionErrorCode,
5
+ calculateVersion,
6
+ createAsyncStrategy,
7
+ createSingleStrategy,
8
+ createSyncStrategy,
9
+ createVersionCommand,
10
+ createVersionError,
11
+ enableJsonOutput,
12
+ flushPendingWrites,
13
+ getJsonData,
14
+ loadConfig2
15
+ } from "./chunk-TJ2FXMEO.js";
16
+ import "./chunk-QDGNHERK.js";
17
+ import "./chunk-TC44YA6X.js";
18
+ import {
19
+ BaseVersionError
20
+ } from "./chunk-3AKDKIIQ.js";
21
+ import "./chunk-NOZSTVTV.js";
22
+ export {
23
+ BaseVersionError,
24
+ PackageProcessor,
25
+ VersionEngine,
26
+ VersionErrorCode,
27
+ calculateVersion,
28
+ createAsyncStrategy,
29
+ createSingleStrategy,
30
+ createSyncStrategy,
31
+ createVersionCommand,
32
+ createVersionError,
33
+ enableJsonOutput,
34
+ flushPendingWrites,
35
+ getJsonData,
36
+ loadConfig2 as loadConfig
37
+ };
@@ -0,0 +1,59 @@
1
+ import {
2
+ ConfigError2,
3
+ GitHubError,
4
+ InputParseError,
5
+ LLMError,
6
+ NotesError,
7
+ TemplateError,
8
+ createNotesCommand,
9
+ createTemplateContext,
10
+ getDefaultConfig,
11
+ getExitCode,
12
+ loadAuth,
13
+ loadConfig2,
14
+ parseVersionOutput,
15
+ parseVersionOutputFile,
16
+ parseVersionOutputStdin,
17
+ processInput,
18
+ renderJson,
19
+ runPipeline,
20
+ saveAuth,
21
+ writeJson
22
+ } from "./chunk-QUY54CTL.js";
23
+ import {
24
+ aggregateToRoot,
25
+ detectMonorepo,
26
+ formatVersion,
27
+ renderMarkdown,
28
+ writeMarkdown,
29
+ writeMonorepoChangelogs
30
+ } from "./chunk-275AVVZE.js";
31
+ import "./chunk-NOZSTVTV.js";
32
+ export {
33
+ ConfigError2 as ConfigError,
34
+ GitHubError,
35
+ InputParseError,
36
+ LLMError,
37
+ NotesError,
38
+ TemplateError,
39
+ aggregateToRoot,
40
+ createNotesCommand,
41
+ createTemplateContext,
42
+ detectMonorepo,
43
+ formatVersion,
44
+ getDefaultConfig,
45
+ getExitCode,
46
+ loadAuth,
47
+ loadConfig2 as loadConfig,
48
+ parseVersionOutput,
49
+ parseVersionOutputFile,
50
+ parseVersionOutputStdin,
51
+ processInput,
52
+ renderJson,
53
+ renderMarkdown,
54
+ runPipeline,
55
+ saveAuth,
56
+ writeJson,
57
+ writeMarkdown,
58
+ writeMonorepoChangelogs
59
+ };
@@ -0,0 +1,114 @@
1
+ import {
2
+ init_esm_shims
3
+ } from "./chunk-NOZSTVTV.js";
4
+
5
+ // ../../node_modules/.pnpm/conventional-commits-filter@5.0.0/node_modules/conventional-commits-filter/dist/index.js
6
+ init_esm_shims();
7
+
8
+ // ../../node_modules/.pnpm/conventional-commits-filter@5.0.0/node_modules/conventional-commits-filter/dist/RevertedCommitsFilter.js
9
+ init_esm_shims();
10
+
11
+ // ../../node_modules/.pnpm/conventional-commits-filter@5.0.0/node_modules/conventional-commits-filter/dist/utils.js
12
+ init_esm_shims();
13
+ function isMatch(object, source) {
14
+ let aValue;
15
+ let bValue;
16
+ for (const key in source) {
17
+ aValue = object[key];
18
+ bValue = source[key];
19
+ if (typeof aValue === "string") {
20
+ aValue = aValue.trim();
21
+ }
22
+ if (typeof bValue === "string") {
23
+ bValue = bValue.trim();
24
+ }
25
+ if (aValue !== bValue) {
26
+ return false;
27
+ }
28
+ }
29
+ return true;
30
+ }
31
+ function findRevertCommit(commit, reverts) {
32
+ if (!reverts.size) {
33
+ return null;
34
+ }
35
+ const rawCommit = commit.raw || commit;
36
+ for (const revertCommit of reverts) {
37
+ if (revertCommit.revert && isMatch(rawCommit, revertCommit.revert)) {
38
+ return revertCommit;
39
+ }
40
+ }
41
+ return null;
42
+ }
43
+
44
+ // ../../node_modules/.pnpm/conventional-commits-filter@5.0.0/node_modules/conventional-commits-filter/dist/RevertedCommitsFilter.js
45
+ var RevertedCommitsFilter = class {
46
+ hold = /* @__PURE__ */ new Set();
47
+ holdRevertsCount = 0;
48
+ /**
49
+ * Process commit to filter reverted commits
50
+ * @param commit
51
+ * @yields Commit
52
+ */
53
+ *process(commit) {
54
+ const { hold } = this;
55
+ const revertCommit = findRevertCommit(commit, hold);
56
+ if (revertCommit) {
57
+ hold.delete(revertCommit);
58
+ this.holdRevertsCount--;
59
+ return;
60
+ }
61
+ if (commit.revert) {
62
+ hold.add(commit);
63
+ this.holdRevertsCount++;
64
+ return;
65
+ }
66
+ if (this.holdRevertsCount > 0) {
67
+ hold.add(commit);
68
+ } else {
69
+ if (hold.size) {
70
+ yield* hold;
71
+ hold.clear();
72
+ }
73
+ yield commit;
74
+ }
75
+ }
76
+ /**
77
+ * Flush all held commits
78
+ * @yields Held commits
79
+ */
80
+ *flush() {
81
+ const { hold } = this;
82
+ if (hold.size) {
83
+ yield* hold;
84
+ hold.clear();
85
+ }
86
+ }
87
+ };
88
+
89
+ // ../../node_modules/.pnpm/conventional-commits-filter@5.0.0/node_modules/conventional-commits-filter/dist/filters.js
90
+ init_esm_shims();
91
+ import { Transform } from "stream";
92
+ async function* filterRevertedCommits(commits) {
93
+ const filter = new RevertedCommitsFilter();
94
+ for await (const commit of commits) {
95
+ yield* filter.process(commit);
96
+ }
97
+ yield* filter.flush();
98
+ }
99
+ function* filterRevertedCommitsSync(commits) {
100
+ const filter = new RevertedCommitsFilter();
101
+ for (const commit of commits) {
102
+ yield* filter.process(commit);
103
+ }
104
+ yield* filter.flush();
105
+ }
106
+ function filterRevertedCommitsStream() {
107
+ return Transform.from(filterRevertedCommits);
108
+ }
109
+ export {
110
+ RevertedCommitsFilter,
111
+ filterRevertedCommits,
112
+ filterRevertedCommitsStream,
113
+ filterRevertedCommitsSync
114
+ };