@releasekit/notes 0.2.0-next.9 → 0.3.0-next.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/LICENSE +21 -0
- package/README.md +1 -1
- package/dist/aggregator-BDTUZWOA.js +13 -0
- package/dist/chunk-H7G2HRHI.js +134 -0
- package/dist/chunk-O4VCGEZT.js +147 -0
- package/dist/{chunk-BLWJTLRD.js → chunk-X4LY5WGG.js} +289 -394
- package/dist/cli.cjs +542 -369
- package/dist/cli.js +6 -27
- package/dist/index.cjs +544 -350
- package/dist/index.d.cts +41 -8
- package/dist/index.d.ts +41 -8
- package/dist/index.js +12 -6
- package/package.json +42 -31
package/dist/cli.js
CHANGED
|
@@ -2,16 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
EXIT_CODES,
|
|
4
4
|
NotesError,
|
|
5
|
-
createTemplateContext,
|
|
6
|
-
detectMonorepo,
|
|
7
5
|
getDefaultConfig,
|
|
8
6
|
getExitCode,
|
|
9
7
|
loadConfig,
|
|
10
8
|
parsePackageVersioner,
|
|
11
9
|
runPipeline,
|
|
12
|
-
saveAuth
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
saveAuth
|
|
11
|
+
} from "./chunk-X4LY5WGG.js";
|
|
12
|
+
import "./chunk-H7G2HRHI.js";
|
|
15
13
|
|
|
16
14
|
// src/cli.ts
|
|
17
15
|
import * as fs from "fs";
|
|
@@ -82,29 +80,10 @@ program.command("generate", { isDefault: true }).description("Generate changelog
|
|
|
82
80
|
}
|
|
83
81
|
info(`Filtered to package: ${options.target}`);
|
|
84
82
|
}
|
|
85
|
-
if (options.monorepo
|
|
86
|
-
|
|
87
|
-
const detected = detectMonorepo(process.cwd());
|
|
88
|
-
if (!detected.isMonorepo) {
|
|
89
|
-
info("No monorepo detected, using single package mode");
|
|
90
|
-
await runPipeline(input, config, options.dryRun ?? false);
|
|
91
|
-
} else {
|
|
92
|
-
info(`Monorepo detected with packages at ${detected.packagesPath}`);
|
|
93
|
-
const contexts = input.packages.map(createTemplateContext);
|
|
94
|
-
writeMonorepoChangelogs(
|
|
95
|
-
contexts,
|
|
96
|
-
{
|
|
97
|
-
rootPath: config.monorepo?.rootPath ?? process.cwd(),
|
|
98
|
-
packagesPath: config.monorepo?.packagesPath ?? detected.packagesPath,
|
|
99
|
-
mode: monorepoMode
|
|
100
|
-
},
|
|
101
|
-
config,
|
|
102
|
-
options.dryRun ?? false
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
} else {
|
|
106
|
-
await runPipeline(input, config, options.dryRun ?? false);
|
|
83
|
+
if (options.monorepo) {
|
|
84
|
+
config.monorepo = { ...config.monorepo, mode: options.monorepo };
|
|
107
85
|
}
|
|
86
|
+
await runPipeline(input, config, options.dryRun ?? false);
|
|
108
87
|
if (options.dryRun) {
|
|
109
88
|
info("Dry run complete - no files were written");
|
|
110
89
|
} else {
|