Skip to content

Commit c9971b8

Browse files
committed
fix(release): correct require path in beta-continue config
1 parent 62f235a commit c9971b8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.release-it.beta-continue.cjs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
// This config is specifically for continuing an existing beta sequence
2-
// It does NOT set preRelease to force a new identifier
3-
const baseConfig = require('.release-it.beta.cjs');
2+
// It keeps preRelease: 'beta' to continue incrementing the beta number
3+
const baseConfig = require("./.release-it.beta.cjs");
4+
5+
// Destructure to remove properties we want to override
6+
const { preRelease, ...rest } = baseConfig;
47

58
module.exports = {
6-
...baseConfig,
7-
// Remove the preRelease setting to allow continuing the existing sequence
8-
preRelease: undefined
9+
...rest,
10+
// Keep preRelease as 'beta' to continue the sequence (e.g., beta.0 -> beta.1)
11+
preRelease: "beta",
912
};

0 commit comments

Comments
 (0)