@eljs/release
Version:
Release npm package easily.
103 lines (101 loc) • 2.25 kB
JavaScript
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/default.ts
var default_exports = {};
__export(default_exports, {
defaultConfig: () => defaultConfig
});
module.exports = __toCommonJS(default_exports);
var defaultConfig = {
/**
* 当前工作目录
*/
cwd: process.cwd(),
/**
* git 相关配置项
*/
git: {
/**
* 是否检查工作区干净
*/
requireClean: true,
/**
* 更新日志
*/
changelog: {
/**
* 文件名
*/
filename: "CHANGELOG.md",
/**
* 没有变更时的占位符
*/
placeholder: "**Note:** No changes, only version bump."
},
/**
* 是否生成独立的 git tag
*/
independent: false,
/**
* 是否提交 commit
*/
commit: true,
/**
* commit 信息
*/
commitMessage: "chore: bump version v${version}",
/**
* 是否推送到远端
*/
push: true,
/**
* git push 参数
*/
pushArgs: ["--follow-tags"]
},
/**
* npm 相关配置项
*/
npm: {
/**
* 是否检查用户
*/
requireOwner: true,
/**
* 是否发布金丝雀版本
*/
canary: false,
/**
* 是否确认版本
*/
confirm: true
},
/**
* github 相关配置项
*/
github: {
/**
* 是否创建 github 变更
*/
release: true
}
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
defaultConfig
});