fix(release): correct require path in beta-continue config

This commit is contained in:
Quorafind 2025-12-13 08:28:42 +08:00
parent 62f235ae06
commit c9971b8d9c

View file

@ -1,9 +1,12 @@
// This config is specifically for continuing an existing beta sequence
// It does NOT set preRelease to force a new identifier
const baseConfig = require('.release-it.beta.cjs');
// It keeps preRelease: 'beta' to continue incrementing the beta number
const baseConfig = require("./.release-it.beta.cjs");
// Destructure to remove properties we want to override
const { preRelease, ...rest } = baseConfig;
module.exports = {
...baseConfig,
// Remove the preRelease setting to allow continuing the existing sequence
preRelease: undefined
...rest,
// Keep preRelease as 'beta' to continue the sequence (e.g., beta.0 -> beta.1)
preRelease: "beta",
};