@modern-js/plugin-changeset 2.0.0-beta.4 → 2.0.0-beta.6
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.
- package/CHANGELOG.md +32 -0
- package/dist/js/node/commands/bump.js +10 -6
- package/dist/js/node/commands/change.js +12 -8
- package/dist/js/node/commands/index.js +8 -8
- package/dist/js/node/commands/pre.js +10 -6
- package/dist/js/node/commands/release-note.js +17 -11
- package/dist/js/node/commands/release.js +13 -9
- package/dist/js/node/commands/status.js +10 -6
- package/dist/js/node/index.js +6 -4
- package/dist/js/node/locale/en.js +7 -3
- package/dist/js/node/locale/index.js +8 -3
- package/dist/js/node/locale/zh.js +7 -3
- package/dist/js/node/utils/changeset.js +8 -3
- package/dist/js/node/utils/index.js +4 -4
- package/dist/js/node/utils/language.js +7 -3
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @modern-js/plugin-changeset
|
|
2
2
|
|
|
3
|
+
## 2.0.0-beta.6
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- dda38c9c3e: chore: v2
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [7879e8f711]
|
|
12
|
+
- Updated dependencies [6aca875011]
|
|
13
|
+
- Updated dependencies [2e6031955e]
|
|
14
|
+
- Updated dependencies [7b7d12cf8f]
|
|
15
|
+
- Updated dependencies [7efeed4]
|
|
16
|
+
- Updated dependencies [92f0eade39]
|
|
17
|
+
- Updated dependencies [edd1cfb1af]
|
|
18
|
+
- Updated dependencies [cc971eabfc]
|
|
19
|
+
- Updated dependencies [5b9049f2e9]
|
|
20
|
+
- Updated dependencies [92004d1906]
|
|
21
|
+
- Updated dependencies [b8bbe036c7]
|
|
22
|
+
- Updated dependencies [d5a31df781]
|
|
23
|
+
- Updated dependencies [dda38c9c3e]
|
|
24
|
+
- Updated dependencies [3bbea92b2a]
|
|
25
|
+
- Updated dependencies [b710adb843]
|
|
26
|
+
- Updated dependencies [ea7cf06257]
|
|
27
|
+
- Updated dependencies [bbe4c4ab64]
|
|
28
|
+
- Updated dependencies [e4558a0bc4]
|
|
29
|
+
- Updated dependencies [abf3421a75]
|
|
30
|
+
- Updated dependencies [543be9558e]
|
|
31
|
+
- Updated dependencies [14b712da84]
|
|
32
|
+
- @modern-js/utils@2.0.0-beta.6
|
|
33
|
+
- @modern-js/plugin-i18n@2.0.0-beta.6
|
|
34
|
+
|
|
3
35
|
## 2.0.0-beta.4
|
|
4
36
|
|
|
5
37
|
### Major Changes
|
|
@@ -15,12 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var stdin_exports = {};
|
|
19
|
-
__export(stdin_exports, {
|
|
20
|
-
bump: () => bump
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(stdin_exports);
|
|
23
|
-
var import_utils = require("../utils");
|
|
24
18
|
var __async = (__this, __arguments, generator) => {
|
|
25
19
|
return new Promise((resolve, reject) => {
|
|
26
20
|
var fulfilled = (value) => {
|
|
@@ -41,6 +35,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
41
35
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
42
36
|
});
|
|
43
37
|
};
|
|
38
|
+
var bump_exports = {};
|
|
39
|
+
__export(bump_exports, {
|
|
40
|
+
bump: () => bump
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(bump_exports);
|
|
43
|
+
var import_utils = require("../utils");
|
|
44
44
|
function bump(options) {
|
|
45
45
|
return __async(this, null, function* () {
|
|
46
46
|
const { snapshot, canary, preid, ignore } = options;
|
|
@@ -83,3 +83,7 @@ function bump(options) {
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
87
|
+
0 && (module.exports = {
|
|
88
|
+
bump
|
|
89
|
+
});
|
|
@@ -15,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var stdin_exports = {};
|
|
19
|
-
__export(stdin_exports, {
|
|
20
|
-
change: () => change
|
|
21
|
-
});
|
|
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
18
|
var __async = (__this, __arguments, generator) => {
|
|
27
19
|
return new Promise((resolve, reject) => {
|
|
28
20
|
var fulfilled = (value) => {
|
|
@@ -43,6 +35,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43
35
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
44
36
|
});
|
|
45
37
|
};
|
|
38
|
+
var change_exports = {};
|
|
39
|
+
__export(change_exports, {
|
|
40
|
+
change: () => change
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(change_exports);
|
|
43
|
+
var import_utils = require("@modern-js/utils");
|
|
44
|
+
var import_utils2 = require("../utils");
|
|
45
|
+
var import_locale = require("../locale");
|
|
46
46
|
function change(options) {
|
|
47
47
|
return __async(this, null, function* () {
|
|
48
48
|
const appDir = process.cwd();
|
|
@@ -69,3 +69,7 @@ function change(options) {
|
|
|
69
69
|
yield (0, import_utils2.execaWithStreamLog)(process.execPath, params);
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
73
|
+
0 && (module.exports = {
|
|
74
|
+
change
|
|
75
|
+
});
|
|
@@ -12,11 +12,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
12
12
|
};
|
|
13
13
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var
|
|
16
|
-
module.exports = __toCommonJS(
|
|
17
|
-
__reExport(
|
|
18
|
-
__reExport(
|
|
19
|
-
__reExport(
|
|
20
|
-
__reExport(
|
|
21
|
-
__reExport(
|
|
22
|
-
__reExport(
|
|
15
|
+
var commands_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(commands_exports);
|
|
17
|
+
__reExport(commands_exports, require("./change"), module.exports);
|
|
18
|
+
__reExport(commands_exports, require("./bump"), module.exports);
|
|
19
|
+
__reExport(commands_exports, require("./pre"), module.exports);
|
|
20
|
+
__reExport(commands_exports, require("./release"), module.exports);
|
|
21
|
+
__reExport(commands_exports, require("./status"), module.exports);
|
|
22
|
+
__reExport(commands_exports, require("./release-note"), module.exports);
|
|
@@ -15,12 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var stdin_exports = {};
|
|
19
|
-
__export(stdin_exports, {
|
|
20
|
-
pre: () => pre
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(stdin_exports);
|
|
23
|
-
var import_utils = require("../utils");
|
|
24
18
|
var __async = (__this, __arguments, generator) => {
|
|
25
19
|
return new Promise((resolve, reject) => {
|
|
26
20
|
var fulfilled = (value) => {
|
|
@@ -41,6 +35,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
41
35
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
42
36
|
});
|
|
43
37
|
};
|
|
38
|
+
var pre_exports = {};
|
|
39
|
+
__export(pre_exports, {
|
|
40
|
+
pre: () => pre
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(pre_exports);
|
|
43
|
+
var import_utils = require("../utils");
|
|
44
44
|
function pre(type, tag = "next") {
|
|
45
45
|
return __async(this, null, function* () {
|
|
46
46
|
const params = [import_utils.CHANGESET_PATH, "pre", type];
|
|
@@ -50,3 +50,7 @@ function pre(type, tag = "next") {
|
|
|
50
50
|
yield (0, import_utils.execaWithStreamLog)(process.execPath, params);
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
55
|
+
pre
|
|
56
|
+
});
|
|
@@ -21,17 +21,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
mod
|
|
22
22
|
));
|
|
23
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
-
var stdin_exports = {};
|
|
25
|
-
__export(stdin_exports, {
|
|
26
|
-
genReleaseNote: () => genReleaseNote,
|
|
27
|
-
getReleaseInfo: () => getReleaseInfo,
|
|
28
|
-
getReleaseNoteLine: () => getReleaseNoteLine
|
|
29
|
-
});
|
|
30
|
-
module.exports = __toCommonJS(stdin_exports);
|
|
31
|
-
var import_path = __toESM(require("path"));
|
|
32
|
-
var import_resolve_from = __toESM(require("resolve-from"));
|
|
33
|
-
var import_utils = require("@modern-js/utils");
|
|
34
|
-
var import_read = __toESM(require("@changesets/read"));
|
|
35
24
|
var __async = (__this, __arguments, generator) => {
|
|
36
25
|
return new Promise((resolve, reject) => {
|
|
37
26
|
var fulfilled = (value) => {
|
|
@@ -52,6 +41,17 @@ var __async = (__this, __arguments, generator) => {
|
|
|
52
41
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
53
42
|
});
|
|
54
43
|
};
|
|
44
|
+
var release_note_exports = {};
|
|
45
|
+
__export(release_note_exports, {
|
|
46
|
+
genReleaseNote: () => genReleaseNote,
|
|
47
|
+
getReleaseInfo: () => getReleaseInfo,
|
|
48
|
+
getReleaseNoteLine: () => getReleaseNoteLine
|
|
49
|
+
});
|
|
50
|
+
module.exports = __toCommonJS(release_note_exports);
|
|
51
|
+
var import_path = __toESM(require("path"));
|
|
52
|
+
var import_resolve_from = __toESM(require("resolve-from"));
|
|
53
|
+
var import_utils = require("@modern-js/utils");
|
|
54
|
+
var import_read = __toESM(require("@changesets/read"));
|
|
55
55
|
function getReleaseInfo(commit, commitObj) {
|
|
56
56
|
const commitRegex = /(.*)\(#(\d*)\)/;
|
|
57
57
|
const [, message, author] = commit.split("--");
|
|
@@ -185,3 +185,9 @@ function genReleaseNote(options) {
|
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
189
|
+
0 && (module.exports = {
|
|
190
|
+
genReleaseNote,
|
|
191
|
+
getReleaseInfo,
|
|
192
|
+
getReleaseNoteLine
|
|
193
|
+
});
|
|
@@ -21,15 +21,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
mod
|
|
22
22
|
));
|
|
23
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
-
var stdin_exports = {};
|
|
25
|
-
__export(stdin_exports, {
|
|
26
|
-
release: () => release
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(stdin_exports);
|
|
29
|
-
var import_path = __toESM(require("path"));
|
|
30
|
-
var import_utils = require("@modern-js/utils");
|
|
31
|
-
var import_git = require("@changesets/git");
|
|
32
|
-
var import_utils2 = require("../utils");
|
|
33
24
|
var __async = (__this, __arguments, generator) => {
|
|
34
25
|
return new Promise((resolve, reject) => {
|
|
35
26
|
var fulfilled = (value) => {
|
|
@@ -50,6 +41,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
50
41
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
51
42
|
});
|
|
52
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
53
|
function release(options) {
|
|
54
54
|
return __async(this, null, function* () {
|
|
55
55
|
const appDir = process.cwd();
|
|
@@ -94,3 +94,7 @@ function release(options) {
|
|
|
94
94
|
yield import_utils.fs.remove(pnpmPublishSummaryFile);
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
98
|
+
0 && (module.exports = {
|
|
99
|
+
release
|
|
100
|
+
});
|
|
@@ -15,12 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var stdin_exports = {};
|
|
19
|
-
__export(stdin_exports, {
|
|
20
|
-
status: () => status
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(stdin_exports);
|
|
23
|
-
var import_utils = require("../utils");
|
|
24
18
|
var __async = (__this, __arguments, generator) => {
|
|
25
19
|
return new Promise((resolve, reject) => {
|
|
26
20
|
var fulfilled = (value) => {
|
|
@@ -41,6 +35,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
41
35
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
42
36
|
});
|
|
43
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
44
|
function status(options) {
|
|
45
45
|
return __async(this, null, function* () {
|
|
46
46
|
const params = [import_utils.CHANGESET_PATH, "status"];
|
|
@@ -59,3 +59,7 @@ function status(options) {
|
|
|
59
59
|
yield (0, import_utils.execaWithStreamLog)(process.execPath, params);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
63
|
+
0 && (module.exports = {
|
|
64
|
+
status
|
|
65
|
+
});
|
package/dist/js/node/index.js
CHANGED
|
@@ -16,15 +16,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var src_exports = {};
|
|
20
|
+
__export(src_exports, {
|
|
21
21
|
default: () => src_default
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(src_exports);
|
|
24
24
|
var import_commands = require("./commands");
|
|
25
25
|
var import_locale = require("./locale");
|
|
26
26
|
var import_utils = require("./utils");
|
|
27
|
-
__reExport(
|
|
27
|
+
__reExport(src_exports, require("./commands"), module.exports);
|
|
28
28
|
var src_default = () => ({
|
|
29
29
|
name: "@modern-js/plugin-changeset",
|
|
30
30
|
setup: () => {
|
|
@@ -71,3 +71,5 @@ var src_default = () => ({
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
75
|
+
0 && (module.exports = {});
|
|
@@ -15,11 +15,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var
|
|
19
|
-
__export(
|
|
18
|
+
var en_exports = {};
|
|
19
|
+
__export(en_exports, {
|
|
20
20
|
EN_LOCALE: () => EN_LOCALE
|
|
21
21
|
});
|
|
22
|
-
module.exports = __toCommonJS(
|
|
22
|
+
module.exports = __toCommonJS(en_exports);
|
|
23
23
|
const EN_LOCALE = {
|
|
24
24
|
command: {
|
|
25
25
|
change: {
|
|
@@ -58,3 +58,7 @@ const EN_LOCALE = {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
62
|
+
0 && (module.exports = {
|
|
63
|
+
EN_LOCALE
|
|
64
|
+
});
|
|
@@ -15,14 +15,19 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var
|
|
19
|
-
__export(
|
|
18
|
+
var locale_exports = {};
|
|
19
|
+
__export(locale_exports, {
|
|
20
20
|
i18n: () => i18n,
|
|
21
21
|
localeKeys: () => localeKeys
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(locale_exports);
|
|
24
24
|
var import_plugin_i18n = require("@modern-js/plugin-i18n");
|
|
25
25
|
var import_zh = require("./zh");
|
|
26
26
|
var import_en = require("./en");
|
|
27
27
|
const i18n = new import_plugin_i18n.I18n();
|
|
28
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
|
+
});
|
|
@@ -15,11 +15,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var
|
|
19
|
-
__export(
|
|
18
|
+
var zh_exports = {};
|
|
19
|
+
__export(zh_exports, {
|
|
20
20
|
ZH_LOCALE: () => ZH_LOCALE
|
|
21
21
|
});
|
|
22
|
-
module.exports = __toCommonJS(
|
|
22
|
+
module.exports = __toCommonJS(zh_exports);
|
|
23
23
|
const ZH_LOCALE = {
|
|
24
24
|
command: {
|
|
25
25
|
change: {
|
|
@@ -58,3 +58,7 @@ const ZH_LOCALE = {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
62
|
+
0 && (module.exports = {
|
|
63
|
+
ZH_LOCALE
|
|
64
|
+
});
|
|
@@ -21,12 +21,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
mod
|
|
22
22
|
));
|
|
23
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
-
var
|
|
25
|
-
__export(
|
|
24
|
+
var changeset_exports = {};
|
|
25
|
+
__export(changeset_exports, {
|
|
26
26
|
CHANGESET_PATH: () => CHANGESET_PATH,
|
|
27
27
|
execaWithStreamLog: () => execaWithStreamLog
|
|
28
28
|
});
|
|
29
|
-
module.exports = __toCommonJS(
|
|
29
|
+
module.exports = __toCommonJS(changeset_exports);
|
|
30
30
|
var import_utils = require("@modern-js/utils");
|
|
31
31
|
const CHANGESET_PATH = require.resolve("@changesets/cli");
|
|
32
32
|
function execaWithStreamLog(command, args) {
|
|
@@ -37,3 +37,8 @@ function execaWithStreamLog(command, args) {
|
|
|
37
37
|
});
|
|
38
38
|
return promise;
|
|
39
39
|
}
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
CHANGESET_PATH,
|
|
43
|
+
execaWithStreamLog
|
|
44
|
+
});
|
|
@@ -12,7 +12,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
12
12
|
};
|
|
13
13
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var
|
|
16
|
-
module.exports = __toCommonJS(
|
|
17
|
-
__reExport(
|
|
18
|
-
__reExport(
|
|
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);
|
|
@@ -15,13 +15,17 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var
|
|
19
|
-
__export(
|
|
18
|
+
var language_exports = {};
|
|
19
|
+
__export(language_exports, {
|
|
20
20
|
getLocaleLanguage: () => getLocaleLanguage
|
|
21
21
|
});
|
|
22
|
-
module.exports = __toCommonJS(
|
|
22
|
+
module.exports = __toCommonJS(language_exports);
|
|
23
23
|
var import_language_detector = require("@modern-js/plugin-i18n/language-detector");
|
|
24
24
|
function getLocaleLanguage() {
|
|
25
25
|
const detector = new import_language_detector.I18CLILanguageDetector();
|
|
26
26
|
return detector.detect();
|
|
27
27
|
}
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
getLocaleLanguage
|
|
31
|
+
});
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.0.0-beta.
|
|
14
|
+
"version": "2.0.0-beta.6",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"@changesets/read": "^0.5.5",
|
|
38
38
|
"execa": "^5.1.1",
|
|
39
39
|
"resolve-from": "^5.0.0",
|
|
40
|
-
"@modern-js/plugin-i18n": "2.0.0-beta.
|
|
41
|
-
"@modern-js/utils": "2.0.0-beta.
|
|
40
|
+
"@modern-js/plugin-i18n": "2.0.0-beta.6",
|
|
41
|
+
"@modern-js/utils": "2.0.0-beta.6"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/jest": "^27",
|
|
45
45
|
"@types/node": "^14",
|
|
46
46
|
"typescript": "^4",
|
|
47
47
|
"jest": "^27",
|
|
48
|
-
"@modern-js/core": "2.0.0-beta.
|
|
49
|
-
"@scripts/
|
|
50
|
-
"@scripts/
|
|
48
|
+
"@modern-js/core": "2.0.0-beta.6",
|
|
49
|
+
"@scripts/jest-config": "2.0.0-beta.6",
|
|
50
|
+
"@scripts/build": "2.0.0-beta.6"
|
|
51
51
|
},
|
|
52
52
|
"sideEffects": false,
|
|
53
53
|
"publishConfig": {
|