@modern-js/plugin-changeset 2.0.0-beta.2 → 2.0.0-beta.4

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,21 +1,42 @@
1
+ var __async = (__this, __arguments, generator) => {
2
+ return new Promise((resolve, reject) => {
3
+ var fulfilled = (value) => {
4
+ try {
5
+ step(generator.next(value));
6
+ } catch (e) {
7
+ reject(e);
8
+ }
9
+ };
10
+ var rejected = (value) => {
11
+ try {
12
+ step(generator.throw(value));
13
+ } catch (e) {
14
+ reject(e);
15
+ }
16
+ };
17
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
18
+ step((generator = generator.apply(__this, __arguments)).next());
19
+ });
20
+ };
1
21
  import { CHANGESET_PATH, execaWithStreamLog } from "../utils";
2
- export async function status(options) {
3
- const params = [CHANGESET_PATH, 'status'];
4
- const {
5
- verbose,
6
- output,
7
- since
8
- } = options;
9
- if (verbose) {
10
- params.push('--verbose');
11
- }
12
- if (output) {
13
- params.push('--output');
14
- params.push(output);
15
- }
16
- if (since) {
17
- params.push('--since');
18
- params.push(since);
19
- }
20
- await execaWithStreamLog(process.execPath, params);
21
- }
22
+ function status(options) {
23
+ return __async(this, null, function* () {
24
+ const params = [CHANGESET_PATH, "status"];
25
+ const { verbose, output, since } = options;
26
+ if (verbose) {
27
+ params.push("--verbose");
28
+ }
29
+ if (output) {
30
+ params.push("--output");
31
+ params.push(output);
32
+ }
33
+ if (since) {
34
+ params.push("--since");
35
+ params.push(since);
36
+ }
37
+ yield execaWithStreamLog(process.execPath, params);
38
+ });
39
+ }
40
+ export {
41
+ status
42
+ };
@@ -2,27 +2,52 @@ import { change, bump, pre, release, status, genReleaseNote } from "./commands";
2
2
  import { i18n, localeKeys } from "./locale";
3
3
  import { getLocaleLanguage } from "./utils";
4
4
  export * from "./commands";
5
- export default (() => ({
6
- name: '@modern-js/plugin-changeset',
5
+ var src_default = () => ({
6
+ name: "@modern-js/plugin-changeset",
7
7
  setup: () => {
8
- // initial cli language
9
- i18n.changeLanguage({
10
- locale: getLocaleLanguage()
11
- });
8
+ i18n.changeLanguage({ locale: getLocaleLanguage() });
12
9
  return {
13
- commands({
14
- program
15
- }) {
16
- program.command('change').description(i18n.t(localeKeys.command.change.describe)).option('--empty', i18n.t(localeKeys.command.change.empty), false).option('--open', i18n.t(localeKeys.command.change.open), false).action(options => change(options));
17
- program.command('bump').description(i18n.t(localeKeys.command.bump.describe)).option('--canary', i18n.t(localeKeys.command.bump.canary), false).option('--ignore <package>', i18n.t(localeKeys.command.bump.ignore), (val, memo) => {
18
- memo.push(val);
19
- return memo;
20
- }, []).option('--preid <tag>', i18n.t(localeKeys.command.bump.preid), 'next').option('--snapshot [snapshot]', i18n.t(localeKeys.command.bump.snapshot), false).action(options => bump(options));
21
- program.command('pre <enter|exit> [tag]').description(i18n.t(localeKeys.command.pre.describe)).action((type, tag) => pre(type, tag));
22
- program.command('release').description(i18n.t(localeKeys.command.release.describe)).option('--tag <tag>', i18n.t(localeKeys.command.release.tag), '').option('--otp <token>', i18n.t(localeKeys.command.release.otp), '').option('--ignore-scripts', i18n.t(localeKeys.command.release.ignore_scripts), '').option('--no-git-checks', i18n.t(localeKeys.command.release.no_git_checks), '').action(options => release(options));
23
- program.command('change-status').description(i18n.t(localeKeys.command.status.describe)).option('--verbose', i18n.t(localeKeys.command.status.verbose)).option('--output <file>', i18n.t(localeKeys.command.status.output)).option('--since <ref>', i18n.t(localeKeys.command.status.since)).action(options => status(options));
24
- program.command('gen-release-note').description(i18n.t(localeKeys.command.gen_release_note.describe)).option('--repo <repo>', i18n.t(localeKeys.command.gen_release_note.repo)).option('--custom <cumtom>', i18n.t(localeKeys.command.gen_release_note.custom)).action(options => genReleaseNote(options));
10
+ commands({ program }) {
11
+ program.command("change").description(i18n.t(localeKeys.command.change.describe)).option("--empty", i18n.t(localeKeys.command.change.empty), false).option("--open", i18n.t(localeKeys.command.change.open), false).action((options) => change(options));
12
+ program.command("bump").description(i18n.t(localeKeys.command.bump.describe)).option("--canary", i18n.t(localeKeys.command.bump.canary), false).option(
13
+ "--ignore <package>",
14
+ i18n.t(localeKeys.command.bump.ignore),
15
+ (val, memo) => {
16
+ memo.push(val);
17
+ return memo;
18
+ },
19
+ []
20
+ ).option(
21
+ "--preid <tag>",
22
+ i18n.t(localeKeys.command.bump.preid),
23
+ "next"
24
+ ).option(
25
+ "--snapshot [snapshot]",
26
+ i18n.t(localeKeys.command.bump.snapshot),
27
+ false
28
+ ).action((options) => bump(options));
29
+ program.command("pre <enter|exit> [tag]").description(i18n.t(localeKeys.command.pre.describe)).action((type, tag) => pre(type, tag));
30
+ program.command("release").description(i18n.t(localeKeys.command.release.describe)).option("--tag <tag>", i18n.t(localeKeys.command.release.tag), "").option("--otp <token>", i18n.t(localeKeys.command.release.otp), "").option(
31
+ "--ignore-scripts",
32
+ i18n.t(localeKeys.command.release.ignore_scripts),
33
+ ""
34
+ ).option(
35
+ "--no-git-checks",
36
+ i18n.t(localeKeys.command.release.no_git_checks),
37
+ ""
38
+ ).action((options) => release(options));
39
+ program.command("change-status").description(i18n.t(localeKeys.command.status.describe)).option("--verbose", i18n.t(localeKeys.command.status.verbose)).option("--output <file>", i18n.t(localeKeys.command.status.output)).option("--since <ref>", i18n.t(localeKeys.command.status.since)).action((options) => status(options));
40
+ program.command("gen-release-note").description(i18n.t(localeKeys.command.gen_release_note.describe)).option(
41
+ "--repo <repo>",
42
+ i18n.t(localeKeys.command.gen_release_note.repo)
43
+ ).option(
44
+ "--custom <cumtom>",
45
+ i18n.t(localeKeys.command.gen_release_note.custom)
46
+ ).action((options) => genReleaseNote(options));
25
47
  }
26
48
  };
27
49
  }
28
- }));
50
+ });
51
+ export {
52
+ src_default as default
53
+ };
@@ -1,38 +1,41 @@
1
- export const EN_LOCALE = {
1
+ const EN_LOCALE = {
2
2
  command: {
3
3
  change: {
4
- describe: 'create changeset',
5
- empty: 'create an empty changeset',
6
- open: 'opens the created changeset in an external editor',
7
- no_packages: 'not find sub-project,please use `{packageManager} new` to create sub-project'
4
+ describe: "create changeset",
5
+ empty: "create an empty changeset",
6
+ open: "opens the created changeset in an external editor",
7
+ no_packages: "not find sub-project,please use `{packageManager} new` to create sub-project"
8
8
  },
9
9
  bump: {
10
- describe: 'auto update publish version and changelog using changeset',
11
- canary: 'create a prerelease version of publishing for testing',
12
- preid: 'specify the identifier when versioning a prerelease',
13
- snapshot: 'create a snapshot version of publishing for testing',
14
- ignore: 'skip packages from being published'
10
+ describe: "auto update publish version and changelog using changeset",
11
+ canary: "create a prerelease version of publishing for testing",
12
+ preid: "specify the identifier when versioning a prerelease",
13
+ snapshot: "create a snapshot version of publishing for testing",
14
+ ignore: "skip packages from being published"
15
15
  },
16
16
  pre: {
17
- describe: 'enters and exits pre mode'
17
+ describe: "enters and exits pre mode"
18
18
  },
19
19
  release: {
20
- describe: 'publish changes to npm',
21
- tag: 'publish use special tag',
22
- otp: 'publish package use one-time password, if you have auth and writes enabled on npm ',
23
- ignore_scripts: 'publish command ignore npm scripts, only can use in pnpm monorepo',
24
- 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'
20
+ describe: "publish changes to npm",
21
+ tag: "publish use special tag",
22
+ otp: "publish package use one-time password, if you have auth and writes enabled on npm ",
23
+ ignore_scripts: "publish command ignore npm scripts, only can use in pnpm monorepo",
24
+ 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"
25
25
  },
26
26
  status: {
27
- describe: 'provides information about the changesets that currently exist',
28
- verbose: 'provides detail information about the changesets that currently exist with table',
29
- output: 'write the information about the changesets that currently exist to json file',
30
- since: 'only display information about changesets since a specific branch or git tag'
27
+ describe: "provides information about the changesets that currently exist",
28
+ verbose: "provides detail information about the changesets that currently exist with table",
29
+ output: "write the information about the changesets that currently exist to json file",
30
+ since: "only display information about changesets since a specific branch or git tag"
31
31
  },
32
32
  gen_release_note: {
33
- describe: 'generator release note info from changesets',
34
- repo: 'reponame to generator pull request link, like modern-js-dev/modern.js',
35
- custom: 'custom release note render rules'
33
+ describe: "generator release note info from changesets",
34
+ repo: "reponame to generator pull request link, like modern-js-dev/modern.js",
35
+ custom: "custom release note render rules"
36
36
  }
37
37
  }
38
- };
38
+ };
39
+ export {
40
+ EN_LOCALE
41
+ };
@@ -1,9 +1,9 @@
1
- import { I18n } from '@modern-js/plugin-i18n';
1
+ import { I18n } from "@modern-js/plugin-i18n";
2
2
  import { ZH_LOCALE } from "./zh";
3
3
  import { EN_LOCALE } from "./en";
4
4
  const i18n = new I18n();
5
- const localeKeys = i18n.init('zh', {
6
- zh: ZH_LOCALE,
7
- en: EN_LOCALE
8
- });
9
- export { i18n, localeKeys };
5
+ const localeKeys = i18n.init("zh", { zh: ZH_LOCALE, en: EN_LOCALE });
6
+ export {
7
+ i18n,
8
+ localeKeys
9
+ };
@@ -1,38 +1,41 @@
1
- export const ZH_LOCALE = {
1
+ const ZH_LOCALE = {
2
2
  command: {
3
3
  change: {
4
- describe: '创建变更集',
5
- empty: '创建空变更集',
6
- open: '使用编辑器中打开创建的变更集',
7
- no_packages: '未找到子项目,请先执行 「{packageManager} new」 命令创建子项目'
4
+ describe: "创建变更集",
5
+ empty: "创建空变更集",
6
+ open: "使用编辑器中打开创建的变更集",
7
+ no_packages: "未找到子项目,请先执行 「{packageManager} new」 命令创建子项目"
8
8
  },
9
9
  bump: {
10
- describe: '使用变更集自动更新发布版本和变更日志',
11
- canary: '创建一个预发布版本进行测试',
12
- preid: '在对预发布版本进行版本控制时指定标识符',
13
- snapshot: '创建一个快照版本进行测试',
14
- ignore: '跳过部分包发布版本'
10
+ describe: "使用变更集自动更新发布版本和变更日志",
11
+ canary: "创建一个预发布版本进行测试",
12
+ preid: "在对预发布版本进行版本控制时指定标识符",
13
+ snapshot: "创建一个快照版本进行测试",
14
+ ignore: "跳过部分包发布版本"
15
15
  },
16
16
  pre: {
17
- describe: '进入和退出预发布模式'
17
+ describe: "进入和退出预发布模式"
18
18
  },
19
19
  release: {
20
- describe: '发布 npm 包',
21
- tag: '发布 npm 包使用特定的 tag',
22
- otp: '发布 npm 包的一次性 token,该 token 需要写权限',
23
- ignore_scripts: '发布时忽略 package.json 中的 scripts 命令,仅支持在 pnpm monorepo 中使用',
24
- no_git_checks: '发布命令忽略检查当前分支是否是发布分支,干净且最新,仅支持在 pnpm monorepo 中使用'
20
+ describe: "发布 npm 包",
21
+ tag: "发布 npm 包使用特定的 tag",
22
+ otp: "发布 npm 包的一次性 token,该 token 需要写权限",
23
+ ignore_scripts: "发布时忽略 package.json 中的 scripts 命令,仅支持在 pnpm monorepo 中使用",
24
+ no_git_checks: "发布命令忽略检查当前分支是否是发布分支,干净且最新,仅支持在 pnpm monorepo 中使用"
25
25
  },
26
26
  status: {
27
- describe: '展示当前存在的变更集的状态信息',
28
- verbose: '使用表格展示当前存在的变更集状态信息,包含变更集文件名称',
29
- output: '将当前存在的变更集状态信息导出为 JSON 文件',
30
- since: '展示基于指定分支或者 tag 的变更集状态信息'
27
+ describe: "展示当前存在的变更集的状态信息",
28
+ verbose: "使用表格展示当前存在的变更集状态信息,包含变更集文件名称",
29
+ output: "将当前存在的变更集状态信息导出为 JSON 文件",
30
+ since: "展示基于指定分支或者 tag 的变更集状态信息"
31
31
  },
32
32
  gen_release_note: {
33
- describe: '根据当前仓库 changeset 文件生成 Release Note',
34
- repo: '仓库名称,用于生成 Pull Request 链接, 例如: modern-js-dev/modern.js',
35
- custom: '自定义 Release Note 生成函数'
33
+ describe: "根据当前仓库 changeset 文件生成 Release Note",
34
+ repo: "仓库名称,用于生成 Pull Request 链接, 例如: modern-js-dev/modern.js",
35
+ custom: "自定义 Release Note 生成函数"
36
36
  }
37
37
  }
38
- };
38
+ };
39
+ export {
40
+ ZH_LOCALE
41
+ };
@@ -1,10 +1,14 @@
1
- import { execa } from '@modern-js/utils';
2
- export const CHANGESET_PATH = require.resolve('@changesets/cli');
3
- export function execaWithStreamLog(command, args) {
1
+ import { execa } from "@modern-js/utils";
2
+ const CHANGESET_PATH = require.resolve("@changesets/cli");
3
+ function execaWithStreamLog(command, args) {
4
4
  const promise = execa(command, args, {
5
- stdin: 'inherit',
6
- stdout: 'inherit',
7
- stderr: 'inherit'
5
+ stdin: "inherit",
6
+ stdout: "inherit",
7
+ stderr: "inherit"
8
8
  });
9
9
  return promise;
10
- }
10
+ }
11
+ export {
12
+ CHANGESET_PATH,
13
+ execaWithStreamLog
14
+ };
@@ -1,2 +1,2 @@
1
1
  export * from "./changeset";
2
- export * from "./language";
2
+ export * from "./language";
@@ -1,5 +1,8 @@
1
- import { I18CLILanguageDetector } from '@modern-js/plugin-i18n/language-detector';
2
- export function getLocaleLanguage() {
1
+ import { I18CLILanguageDetector } from "@modern-js/plugin-i18n/language-detector";
2
+ function getLocaleLanguage() {
3
3
  const detector = new I18CLILanguageDetector();
4
4
  return detector.detect();
5
- }
5
+ }
6
+ export {
7
+ getLocaleLanguage
8
+ };
@@ -1,39 +1,85 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
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 stdin_exports = {};
19
+ __export(stdin_exports, {
20
+ bump: () => bump
5
21
  });
6
- exports.bump = bump;
7
- var _utils = require("../utils");
8
- async function bump(options) {
9
- const {
10
- snapshot,
11
- canary,
12
- preid,
13
- ignore
14
- } = options;
15
- const params = [_utils.CHANGESET_PATH, 'version'];
16
- if (snapshot) {
17
- params.push('--snapshot');
18
- if (typeof snapshot === 'string') {
19
- params.push(snapshot);
22
+ module.exports = __toCommonJS(stdin_exports);
23
+ var import_utils = require("../utils");
24
+ var __async = (__this, __arguments, generator) => {
25
+ return new Promise((resolve, reject) => {
26
+ var fulfilled = (value) => {
27
+ try {
28
+ step(generator.next(value));
29
+ } catch (e) {
30
+ reject(e);
31
+ }
32
+ };
33
+ var rejected = (value) => {
34
+ try {
35
+ step(generator.throw(value));
36
+ } catch (e) {
37
+ reject(e);
38
+ }
39
+ };
40
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
41
+ step((generator = generator.apply(__this, __arguments)).next());
42
+ });
43
+ };
44
+ function bump(options) {
45
+ return __async(this, null, function* () {
46
+ const { snapshot, canary, preid, ignore } = options;
47
+ const params = [import_utils.CHANGESET_PATH, "version"];
48
+ if (snapshot) {
49
+ params.push("--snapshot");
50
+ if (typeof snapshot === "string") {
51
+ params.push(snapshot);
52
+ }
20
53
  }
21
- }
22
- if (ignore) {
23
- ignore.forEach(pkg => {
24
- params.push('--ignore');
25
- params.push(pkg);
26
- });
27
- }
28
- if (canary) {
29
- await (0, _utils.execaWithStreamLog)(process.execPath, [_utils.CHANGESET_PATH, 'pre', 'enter', preid || 'next']);
30
- try {
31
- await (0, _utils.execaWithStreamLog)(process.execPath, params);
32
- await (0, _utils.execaWithStreamLog)(process.execPath, [_utils.CHANGESET_PATH, 'pre', 'exit']);
33
- } catch (e) {
34
- await (0, _utils.execaWithStreamLog)(process.execPath, [_utils.CHANGESET_PATH, 'pre', 'exit']);
54
+ if (ignore) {
55
+ ignore.forEach((pkg) => {
56
+ params.push("--ignore");
57
+ params.push(pkg);
58
+ });
35
59
  }
36
- } else {
37
- await (0, _utils.execaWithStreamLog)(process.execPath, params);
38
- }
39
- }
60
+ if (canary) {
61
+ yield (0, import_utils.execaWithStreamLog)(process.execPath, [
62
+ import_utils.CHANGESET_PATH,
63
+ "pre",
64
+ "enter",
65
+ preid || "next"
66
+ ]);
67
+ try {
68
+ yield (0, import_utils.execaWithStreamLog)(process.execPath, params);
69
+ yield (0, import_utils.execaWithStreamLog)(process.execPath, [
70
+ import_utils.CHANGESET_PATH,
71
+ "pre",
72
+ "exit"
73
+ ]);
74
+ } catch (e) {
75
+ yield (0, import_utils.execaWithStreamLog)(process.execPath, [
76
+ import_utils.CHANGESET_PATH,
77
+ "pre",
78
+ "exit"
79
+ ]);
80
+ }
81
+ } else {
82
+ yield (0, import_utils.execaWithStreamLog)(process.execPath, params);
83
+ }
84
+ });
85
+ }
@@ -1,34 +1,71 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
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 stdin_exports = {};
19
+ __export(stdin_exports, {
20
+ change: () => change
5
21
  });
6
- exports.change = change;
7
- var _utils = require("@modern-js/utils");
8
- var _utils2 = require("../utils");
9
- var _locale = require("../locale");
10
- async function change(options) {
11
- const appDir = process.cwd();
12
- if ((0, _utils.isMonorepo)(appDir)) {
13
- const packages = (0, _utils.getMonorepoPackages)(appDir);
14
- if (packages.length === 0) {
15
- const packageManager = await (0, _utils.getPackageManager)(appDir);
16
- _utils.logger.warn(_locale.i18n.t(_locale.localeKeys.command.change.no_packages, {
17
- packageManager: packageManager === 'yarn' ? 'yarn' : `${packageManager} run`
18
- }));
19
- return;
22
+ module.exports = __toCommonJS(stdin_exports);
23
+ var import_utils = require("@modern-js/utils");
24
+ var import_utils2 = require("../utils");
25
+ var import_locale = require("../locale");
26
+ var __async = (__this, __arguments, generator) => {
27
+ return new Promise((resolve, reject) => {
28
+ var fulfilled = (value) => {
29
+ try {
30
+ step(generator.next(value));
31
+ } catch (e) {
32
+ reject(e);
33
+ }
34
+ };
35
+ var rejected = (value) => {
36
+ try {
37
+ step(generator.throw(value));
38
+ } catch (e) {
39
+ reject(e);
40
+ }
41
+ };
42
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
43
+ step((generator = generator.apply(__this, __arguments)).next());
44
+ });
45
+ };
46
+ function change(options) {
47
+ return __async(this, null, function* () {
48
+ const appDir = process.cwd();
49
+ if ((0, import_utils.isMonorepo)(appDir)) {
50
+ const packages = (0, import_utils.getMonorepoPackages)(appDir);
51
+ if (packages.length === 0) {
52
+ const packageManager = yield (0, import_utils.getPackageManager)(appDir);
53
+ import_utils.logger.warn(
54
+ import_locale.i18n.t(import_locale.localeKeys.command.change.no_packages, {
55
+ packageManager: packageManager === "yarn" ? "yarn" : `${packageManager} run`
56
+ })
57
+ );
58
+ return;
59
+ }
20
60
  }
21
- }
22
- const {
23
- empty,
24
- open
25
- } = options;
26
- const params = [_utils2.CHANGESET_PATH, 'add'];
27
- if (empty) {
28
- params.push('--empty');
29
- }
30
- if (open) {
31
- params.push('--open');
32
- }
33
- await (0, _utils2.execaWithStreamLog)(process.execPath, params);
34
- }
61
+ const { empty, open } = options;
62
+ const params = [import_utils2.CHANGESET_PATH, "add"];
63
+ if (empty) {
64
+ params.push("--empty");
65
+ }
66
+ if (open) {
67
+ params.push("--open");
68
+ }
69
+ yield (0, import_utils2.execaWithStreamLog)(process.execPath, params);
70
+ });
71
+ }
@@ -1,71 +1,22 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _change = require("./change");
7
- Object.keys(_change).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _change[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _change[key];
14
- }
15
- });
16
- });
17
- var _bump = require("./bump");
18
- Object.keys(_bump).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _bump[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function () {
24
- return _bump[key];
25
- }
26
- });
27
- });
28
- var _pre = require("./pre");
29
- Object.keys(_pre).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _pre[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function () {
35
- return _pre[key];
36
- }
37
- });
38
- });
39
- var _release = require("./release");
40
- Object.keys(_release).forEach(function (key) {
41
- if (key === "default" || key === "__esModule") return;
42
- if (key in exports && exports[key] === _release[key]) return;
43
- Object.defineProperty(exports, key, {
44
- enumerable: true,
45
- get: function () {
46
- return _release[key];
47
- }
48
- });
49
- });
50
- var _status = require("./status");
51
- Object.keys(_status).forEach(function (key) {
52
- if (key === "default" || key === "__esModule") return;
53
- if (key in exports && exports[key] === _status[key]) return;
54
- Object.defineProperty(exports, key, {
55
- enumerable: true,
56
- get: function () {
57
- return _status[key];
58
- }
59
- });
60
- });
61
- var _releaseNote = require("./release-note");
62
- Object.keys(_releaseNote).forEach(function (key) {
63
- if (key === "default" || key === "__esModule") return;
64
- if (key in exports && exports[key] === _releaseNote[key]) return;
65
- Object.defineProperty(exports, key, {
66
- enumerable: true,
67
- get: function () {
68
- return _releaseNote[key];
69
- }
70
- });
71
- });
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 stdin_exports = {};
16
+ module.exports = __toCommonJS(stdin_exports);
17
+ __reExport(stdin_exports, require("./change"), module.exports);
18
+ __reExport(stdin_exports, require("./bump"), module.exports);
19
+ __reExport(stdin_exports, require("./pre"), module.exports);
20
+ __reExport(stdin_exports, require("./release"), module.exports);
21
+ __reExport(stdin_exports, require("./status"), module.exports);
22
+ __reExport(stdin_exports, require("./release-note"), module.exports);