@modern-js/plugin-changeset 2.21.2-alpha.2 → 2.22.0

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/commands/bump.js +3 -1
  3. package/dist/cjs/commands/change.js +3 -1
  4. package/dist/cjs/commands/pre.js +3 -1
  5. package/dist/cjs/commands/release.js +3 -1
  6. package/dist/cjs/commands/releaseNote.js +27 -9
  7. package/dist/cjs/commands/status.js +3 -1
  8. package/dist/cjs/index.js +3 -1
  9. package/dist/cjs/locale/en.js +3 -1
  10. package/dist/cjs/locale/index.js +6 -2
  11. package/dist/cjs/locale/zh.js +3 -1
  12. package/dist/cjs/utils/changeset.js +6 -2
  13. package/package.json +7 -7
  14. package/dist/js/modern/commands/bump.js +0 -66
  15. package/dist/js/modern/commands/change.js +0 -57
  16. package/dist/js/modern/commands/index.js +0 -6
  17. package/dist/js/modern/commands/pre.js +0 -33
  18. package/dist/js/modern/commands/release-note.js +0 -162
  19. package/dist/js/modern/commands/release.js +0 -76
  20. package/dist/js/modern/commands/status.js +0 -42
  21. package/dist/js/modern/index.js +0 -53
  22. package/dist/js/modern/locale/en.js +0 -41
  23. package/dist/js/modern/locale/index.js +0 -9
  24. package/dist/js/modern/locale/zh.js +0 -41
  25. package/dist/js/modern/utils/changeset.js +0 -14
  26. package/dist/js/modern/utils/index.js +0 -2
  27. package/dist/js/modern/utils/language.js +0 -8
  28. package/dist/js/node/commands/bump.js +0 -89
  29. package/dist/js/node/commands/change.js +0 -75
  30. package/dist/js/node/commands/index.js +0 -22
  31. package/dist/js/node/commands/pre.js +0 -56
  32. package/dist/js/node/commands/release-note.js +0 -193
  33. package/dist/js/node/commands/release.js +0 -100
  34. package/dist/js/node/commands/status.js +0 -65
  35. package/dist/js/node/index.js +0 -75
  36. package/dist/js/node/locale/en.js +0 -64
  37. package/dist/js/node/locale/index.js +0 -33
  38. package/dist/js/node/locale/zh.js +0 -64
  39. package/dist/js/node/utils/changeset.js +0 -44
  40. package/dist/js/node/utils/index.js +0 -18
  41. package/dist/js/node/utils/language.js +0 -31
@@ -1,100 +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 __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
- var release_exports = {};
45
- __export(release_exports, {
46
- release: () => release
47
- });
48
- module.exports = __toCommonJS(release_exports);
49
- var import_path = __toESM(require("path"));
50
- var import_utils = require("@modern-js/utils");
51
- var import_git = require("@changesets/git");
52
- var import_utils2 = require("../utils");
53
- function release(options) {
54
- return __async(this, null, function* () {
55
- const appDir = process.cwd();
56
- const packageManager = yield (0, import_utils.getPackageManager)(process.cwd());
57
- const params = ["publish"];
58
- const { tag, otp, ignoreScripts, gitChecks } = options;
59
- if (tag) {
60
- params.push("--tag");
61
- params.push(tag);
62
- }
63
- if (otp) {
64
- params.push("--otp");
65
- params.push(otp);
66
- }
67
- if (!(0, import_utils.isMonorepo)(appDir) || packageManager === "yarn" || packageManager === "npm") {
68
- yield (0, import_utils2.execaWithStreamLog)(process.execPath, [import_utils2.CHANGESET_PATH, ...params]);
69
- return;
70
- }
71
- params.push("-r");
72
- params.push("--filter");
73
- const pnpmVersion = yield (0, import_utils.getPnpmVersion)();
74
- if (pnpmVersion.startsWith("6")) {
75
- params.push("./packages/");
76
- } else {
77
- params.push("{./packages/**}");
78
- }
79
- params.push("--report-summary");
80
- if (ignoreScripts) {
81
- params.push("--ignore-scripts");
82
- }
83
- if (!gitChecks) {
84
- params.push("--no-git-checks");
85
- }
86
- yield (0, import_utils2.execaWithStreamLog)(packageManager, params);
87
- const pnpmPublishSummaryFile = import_path.default.join(appDir, "pnpm-publish-summary.json");
88
- const publishInfo = yield import_utils.fs.readJSON(pnpmPublishSummaryFile, "utf-8");
89
- yield Promise.all(
90
- (publishInfo.publishedPackages || []).map(
91
- (pkg) => (0, import_git.tag)(`${pkg.name}@${pkg.version}`, appDir)
92
- )
93
- );
94
- yield import_utils.fs.remove(pnpmPublishSummaryFile);
95
- });
96
- }
97
- // Annotate the CommonJS export names for ESM import in node:
98
- 0 && (module.exports = {
99
- release
100
- });
@@ -1,65 +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 __async = (__this, __arguments, generator) => {
19
- return new Promise((resolve, reject) => {
20
- var fulfilled = (value) => {
21
- try {
22
- step(generator.next(value));
23
- } catch (e) {
24
- reject(e);
25
- }
26
- };
27
- var rejected = (value) => {
28
- try {
29
- step(generator.throw(value));
30
- } catch (e) {
31
- reject(e);
32
- }
33
- };
34
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35
- step((generator = generator.apply(__this, __arguments)).next());
36
- });
37
- };
38
- var status_exports = {};
39
- __export(status_exports, {
40
- status: () => status
41
- });
42
- module.exports = __toCommonJS(status_exports);
43
- var import_utils = require("../utils");
44
- function status(options) {
45
- return __async(this, null, function* () {
46
- const params = [import_utils.CHANGESET_PATH, "status"];
47
- const { verbose, output, since } = options;
48
- if (verbose) {
49
- params.push("--verbose");
50
- }
51
- if (output) {
52
- params.push("--output");
53
- params.push(output);
54
- }
55
- if (since) {
56
- params.push("--since");
57
- params.push(since);
58
- }
59
- yield (0, import_utils.execaWithStreamLog)(process.execPath, params);
60
- });
61
- }
62
- // Annotate the CommonJS export names for ESM import in node:
63
- 0 && (module.exports = {
64
- status
65
- });
@@ -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
- });