cullit 1.4.0 → 1.5.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/dist/index.js +11 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -124,9 +124,19 @@ async function main() {
|
|
|
124
124
|
process.exit(1);
|
|
125
125
|
}
|
|
126
126
|
async function runGenerate(from, to, opts) {
|
|
127
|
+
const configInput = opts.config || opts.c;
|
|
128
|
+
if (configInput) {
|
|
129
|
+
const resolvedConfig = resolve(configInput);
|
|
130
|
+
const projectRoot = resolve(process.cwd());
|
|
131
|
+
if (!resolvedConfig.startsWith(projectRoot)) {
|
|
132
|
+
console.error("\n\u2717 Config error: config file must be within the current project directory");
|
|
133
|
+
process.exitCode = 1;
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
127
137
|
let config;
|
|
128
138
|
try {
|
|
129
|
-
config = loadConfig(
|
|
139
|
+
config = loadConfig(configInput || process.cwd());
|
|
130
140
|
} catch (err) {
|
|
131
141
|
console.error(`
|
|
132
142
|
\u2717 Config error: ${err.message}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cullit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Cull the noise from your releases. AI-powered release notes from the CLI.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"node": ">=18"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cullit/
|
|
33
|
-
"@cullit/
|
|
32
|
+
"@cullit/config": "1.5.0",
|
|
33
|
+
"@cullit/core": "1.5.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsup src/index.ts --format esm --clean",
|