@modern-js/plugin-changeset 2.22.1-beta.5 → 2.22.1

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.
@@ -1,75 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var src_exports = {};
20
- __export(src_exports, {
21
- default: () => src_default
22
- });
23
- module.exports = __toCommonJS(src_exports);
24
- var import_commands = require("./commands");
25
- var import_locale = require("./locale");
26
- var import_utils = require("./utils");
27
- __reExport(src_exports, require("./commands"), module.exports);
28
- var src_default = () => ({
29
- name: "@modern-js/plugin-changeset",
30
- setup: () => {
31
- import_locale.i18n.changeLanguage({ locale: (0, import_utils.getLocaleLanguage)() });
32
- return {
33
- commands({ program }) {
34
- program.command("change").description(import_locale.i18n.t(import_locale.localeKeys.command.change.describe)).option("--empty", import_locale.i18n.t(import_locale.localeKeys.command.change.empty), false).option("--open", import_locale.i18n.t(import_locale.localeKeys.command.change.open), false).action((options) => (0, import_commands.change)(options));
35
- program.command("bump").description(import_locale.i18n.t(import_locale.localeKeys.command.bump.describe)).option("--canary", import_locale.i18n.t(import_locale.localeKeys.command.bump.canary), false).option(
36
- "--ignore <package>",
37
- import_locale.i18n.t(import_locale.localeKeys.command.bump.ignore),
38
- (val, memo) => {
39
- memo.push(val);
40
- return memo;
41
- },
42
- []
43
- ).option(
44
- "--preid <tag>",
45
- import_locale.i18n.t(import_locale.localeKeys.command.bump.preid),
46
- "next"
47
- ).option(
48
- "--snapshot [snapshot]",
49
- import_locale.i18n.t(import_locale.localeKeys.command.bump.snapshot),
50
- false
51
- ).action((options) => (0, import_commands.bump)(options));
52
- program.command("pre <enter|exit> [tag]").description(import_locale.i18n.t(import_locale.localeKeys.command.pre.describe)).action((type, tag) => (0, import_commands.pre)(type, tag));
53
- program.command("release").description(import_locale.i18n.t(import_locale.localeKeys.command.release.describe)).option("--tag <tag>", import_locale.i18n.t(import_locale.localeKeys.command.release.tag), "").option("--otp <token>", import_locale.i18n.t(import_locale.localeKeys.command.release.otp), "").option(
54
- "--ignore-scripts",
55
- import_locale.i18n.t(import_locale.localeKeys.command.release.ignore_scripts),
56
- ""
57
- ).option(
58
- "--no-git-checks",
59
- import_locale.i18n.t(import_locale.localeKeys.command.release.no_git_checks),
60
- ""
61
- ).action((options) => (0, import_commands.release)(options));
62
- program.command("change-status").description(import_locale.i18n.t(import_locale.localeKeys.command.status.describe)).option("--verbose", import_locale.i18n.t(import_locale.localeKeys.command.status.verbose)).option("--output <file>", import_locale.i18n.t(import_locale.localeKeys.command.status.output)).option("--since <ref>", import_locale.i18n.t(import_locale.localeKeys.command.status.since)).action((options) => (0, import_commands.status)(options));
63
- program.command("gen-release-note").description(import_locale.i18n.t(import_locale.localeKeys.command.gen_release_note.describe)).option(
64
- "--repo <repo>",
65
- import_locale.i18n.t(import_locale.localeKeys.command.gen_release_note.repo)
66
- ).option(
67
- "--custom <cumtom>",
68
- import_locale.i18n.t(import_locale.localeKeys.command.gen_release_note.custom)
69
- ).action((options) => (0, import_commands.genReleaseNote)(options));
70
- }
71
- };
72
- }
73
- });
74
- // Annotate the CommonJS export names for ESM import in node:
75
- 0 && (module.exports = {});
@@ -1,64 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var en_exports = {};
19
- __export(en_exports, {
20
- EN_LOCALE: () => EN_LOCALE
21
- });
22
- module.exports = __toCommonJS(en_exports);
23
- const EN_LOCALE = {
24
- command: {
25
- change: {
26
- describe: "create changeset",
27
- empty: "create an empty changeset",
28
- open: "opens the created changeset in an external editor",
29
- no_packages: "not find sub-project,please use `{packageManager} new` to create sub-project"
30
- },
31
- bump: {
32
- describe: "auto update publish version and changelog using changeset",
33
- canary: "create a prerelease version of publishing for testing",
34
- preid: "specify the identifier when versioning a prerelease",
35
- snapshot: "create a snapshot version of publishing for testing",
36
- ignore: "skip packages from being published"
37
- },
38
- pre: {
39
- describe: "enters and exits pre mode"
40
- },
41
- release: {
42
- describe: "publish changes to npm",
43
- tag: "publish use special tag",
44
- otp: "publish package use one-time password, if you have auth and writes enabled on npm ",
45
- ignore_scripts: "publish command ignore npm scripts, only can use in pnpm monorepo",
46
- no_git_checks: "publish command ignore checking if current branch is your publish branch, clean, and up-to-date, only can use in pnpm monorepo"
47
- },
48
- status: {
49
- describe: "provides information about the changesets that currently exist",
50
- verbose: "provides detail information about the changesets that currently exist with table",
51
- output: "write the information about the changesets that currently exist to json file",
52
- since: "only display information about changesets since a specific branch or git tag"
53
- },
54
- gen_release_note: {
55
- describe: "generator release note info from changesets",
56
- repo: "reponame to generator pull request link, like modern-js-dev/modern.js",
57
- custom: "custom release note render rules"
58
- }
59
- }
60
- };
61
- // Annotate the CommonJS export names for ESM import in node:
62
- 0 && (module.exports = {
63
- EN_LOCALE
64
- });
@@ -1,33 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var locale_exports = {};
19
- __export(locale_exports, {
20
- i18n: () => i18n,
21
- localeKeys: () => localeKeys
22
- });
23
- module.exports = __toCommonJS(locale_exports);
24
- var import_plugin_i18n = require("@modern-js/plugin-i18n");
25
- var import_zh = require("./zh");
26
- var import_en = require("./en");
27
- const i18n = new import_plugin_i18n.I18n();
28
- const localeKeys = i18n.init("zh", { zh: import_zh.ZH_LOCALE, en: import_en.EN_LOCALE });
29
- // Annotate the CommonJS export names for ESM import in node:
30
- 0 && (module.exports = {
31
- i18n,
32
- localeKeys
33
- });
@@ -1,64 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var zh_exports = {};
19
- __export(zh_exports, {
20
- ZH_LOCALE: () => ZH_LOCALE
21
- });
22
- module.exports = __toCommonJS(zh_exports);
23
- const ZH_LOCALE = {
24
- command: {
25
- change: {
26
- describe: "创建变更集",
27
- empty: "创建空变更集",
28
- open: "使用编辑器中打开创建的变更集",
29
- no_packages: "未找到子项目,请先执行 「{packageManager} new」 命令创建子项目"
30
- },
31
- bump: {
32
- describe: "使用变更集自动更新发布版本和变更日志",
33
- canary: "创建一个预发布版本进行测试",
34
- preid: "在对预发布版本进行版本控制时指定标识符",
35
- snapshot: "创建一个快照版本进行测试",
36
- ignore: "跳过部分包发布版本"
37
- },
38
- pre: {
39
- describe: "进入和退出预发布模式"
40
- },
41
- release: {
42
- describe: "发布 npm 包",
43
- tag: "发布 npm 包使用特定的 tag",
44
- otp: "发布 npm 包的一次性 token,该 token 需要写权限",
45
- ignore_scripts: "发布时忽略 package.json 中的 scripts 命令,仅支持在 pnpm monorepo 中使用",
46
- no_git_checks: "发布命令忽略检查当前分支是否是发布分支,干净且最新,仅支持在 pnpm monorepo 中使用"
47
- },
48
- status: {
49
- describe: "展示当前存在的变更集的状态信息",
50
- verbose: "使用表格展示当前存在的变更集状态信息,包含变更集文件名称",
51
- output: "将当前存在的变更集状态信息导出为 JSON 文件",
52
- since: "展示基于指定分支或者 tag 的变更集状态信息"
53
- },
54
- gen_release_note: {
55
- describe: "根据当前仓库 changeset 文件生成 Release Note",
56
- repo: "仓库名称,用于生成 Pull Request 链接, 例如: modern-js-dev/modern.js",
57
- custom: "自定义 Release Note 生成函数"
58
- }
59
- }
60
- };
61
- // Annotate the CommonJS export names for ESM import in node:
62
- 0 && (module.exports = {
63
- ZH_LOCALE
64
- });
@@ -1,44 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
- mod
22
- ));
23
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
- var changeset_exports = {};
25
- __export(changeset_exports, {
26
- CHANGESET_PATH: () => CHANGESET_PATH,
27
- execaWithStreamLog: () => execaWithStreamLog
28
- });
29
- module.exports = __toCommonJS(changeset_exports);
30
- var import_utils = require("@modern-js/utils");
31
- const CHANGESET_PATH = require.resolve("@changesets/cli");
32
- function execaWithStreamLog(command, args) {
33
- const promise = (0, import_utils.execa)(command, args, {
34
- stdin: "inherit",
35
- stdout: "inherit",
36
- stderr: "inherit"
37
- });
38
- return promise;
39
- }
40
- // Annotate the CommonJS export names for ESM import in node:
41
- 0 && (module.exports = {
42
- CHANGESET_PATH,
43
- execaWithStreamLog
44
- });
@@ -1,18 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from))
8
- if (!__hasOwnProp.call(to, key) && key !== except)
9
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- }
11
- return to;
12
- };
13
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
- var utils_exports = {};
16
- module.exports = __toCommonJS(utils_exports);
17
- __reExport(utils_exports, require("./changeset"), module.exports);
18
- __reExport(utils_exports, require("./language"), module.exports);
@@ -1,31 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var language_exports = {};
19
- __export(language_exports, {
20
- getLocaleLanguage: () => getLocaleLanguage
21
- });
22
- module.exports = __toCommonJS(language_exports);
23
- var import_language_detector = require("@modern-js/plugin-i18n/language-detector");
24
- function getLocaleLanguage() {
25
- const detector = new import_language_detector.I18CLILanguageDetector();
26
- return detector.detect();
27
- }
28
- // Annotate the CommonJS export names for ESM import in node:
29
- 0 && (module.exports = {
30
- getLocaleLanguage
31
- });