@modern-js/create 2.22.0 → 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.
- package/dist/index.js +44 -33
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -15512,9 +15512,9 @@ var require_ms = __commonJS({
|
|
|
15512
15512
|
}
|
|
15513
15513
|
});
|
|
15514
15514
|
|
|
15515
|
-
// ../../../node_modules/.pnpm/debug@4.3.
|
|
15515
|
+
// ../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/common.js
|
|
15516
15516
|
var require_common = __commonJS({
|
|
15517
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
|
15517
|
+
"../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/common.js"(exports, module2) {
|
|
15518
15518
|
function setup(env) {
|
|
15519
15519
|
createDebug.debug = createDebug;
|
|
15520
15520
|
createDebug.default = createDebug;
|
|
@@ -15675,9 +15675,9 @@ var require_common = __commonJS({
|
|
|
15675
15675
|
}
|
|
15676
15676
|
});
|
|
15677
15677
|
|
|
15678
|
-
// ../../../node_modules/.pnpm/debug@4.3.
|
|
15678
|
+
// ../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/browser.js
|
|
15679
15679
|
var require_browser = __commonJS({
|
|
15680
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
|
15680
|
+
"../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/browser.js"(exports, module2) {
|
|
15681
15681
|
exports.formatArgs = formatArgs;
|
|
15682
15682
|
exports.save = save;
|
|
15683
15683
|
exports.load = load;
|
|
@@ -15857,27 +15857,29 @@ var require_has_flag = __commonJS({
|
|
|
15857
15857
|
}
|
|
15858
15858
|
});
|
|
15859
15859
|
|
|
15860
|
-
// ../../../node_modules/.pnpm/supports-color@
|
|
15860
|
+
// ../../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js
|
|
15861
15861
|
var require_supports_color = __commonJS({
|
|
15862
|
-
"../../../node_modules/.pnpm/supports-color@
|
|
15862
|
+
"../../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports, module2) {
|
|
15863
15863
|
"use strict";
|
|
15864
15864
|
var os3 = require("os");
|
|
15865
15865
|
var tty = require("tty");
|
|
15866
15866
|
var hasFlag = require_has_flag();
|
|
15867
15867
|
var { env } = process;
|
|
15868
|
-
var
|
|
15868
|
+
var flagForceColor;
|
|
15869
15869
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
15870
|
-
|
|
15870
|
+
flagForceColor = 0;
|
|
15871
15871
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
15872
|
-
|
|
15872
|
+
flagForceColor = 1;
|
|
15873
15873
|
}
|
|
15874
|
-
|
|
15875
|
-
if (
|
|
15876
|
-
|
|
15877
|
-
|
|
15878
|
-
|
|
15879
|
-
|
|
15880
|
-
|
|
15874
|
+
function envForceColor() {
|
|
15875
|
+
if ("FORCE_COLOR" in env) {
|
|
15876
|
+
if (env.FORCE_COLOR === "true") {
|
|
15877
|
+
return 1;
|
|
15878
|
+
}
|
|
15879
|
+
if (env.FORCE_COLOR === "false") {
|
|
15880
|
+
return 0;
|
|
15881
|
+
}
|
|
15882
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
15881
15883
|
}
|
|
15882
15884
|
}
|
|
15883
15885
|
function translateLevel(level) {
|
|
@@ -15891,15 +15893,22 @@ var require_supports_color = __commonJS({
|
|
|
15891
15893
|
has16m: level >= 3
|
|
15892
15894
|
};
|
|
15893
15895
|
}
|
|
15894
|
-
function supportsColor(haveStream, streamIsTTY) {
|
|
15896
|
+
function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
15897
|
+
const noFlagForceColor = envForceColor();
|
|
15898
|
+
if (noFlagForceColor !== void 0) {
|
|
15899
|
+
flagForceColor = noFlagForceColor;
|
|
15900
|
+
}
|
|
15901
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
15895
15902
|
if (forceColor === 0) {
|
|
15896
15903
|
return 0;
|
|
15897
15904
|
}
|
|
15898
|
-
if (
|
|
15899
|
-
|
|
15900
|
-
|
|
15901
|
-
|
|
15902
|
-
|
|
15905
|
+
if (sniffFlags) {
|
|
15906
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
15907
|
+
return 3;
|
|
15908
|
+
}
|
|
15909
|
+
if (hasFlag("color=256")) {
|
|
15910
|
+
return 2;
|
|
15911
|
+
}
|
|
15903
15912
|
}
|
|
15904
15913
|
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
15905
15914
|
return 0;
|
|
@@ -15916,7 +15925,7 @@ var require_supports_color = __commonJS({
|
|
|
15916
15925
|
return 1;
|
|
15917
15926
|
}
|
|
15918
15927
|
if ("CI" in env) {
|
|
15919
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
15928
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
15920
15929
|
return 1;
|
|
15921
15930
|
}
|
|
15922
15931
|
return min;
|
|
@@ -15928,7 +15937,7 @@ var require_supports_color = __commonJS({
|
|
|
15928
15937
|
return 3;
|
|
15929
15938
|
}
|
|
15930
15939
|
if ("TERM_PROGRAM" in env) {
|
|
15931
|
-
const version2 = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
15940
|
+
const version2 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
15932
15941
|
switch (env.TERM_PROGRAM) {
|
|
15933
15942
|
case "iTerm.app":
|
|
15934
15943
|
return version2 >= 3 ? 3 : 2;
|
|
@@ -15947,21 +15956,23 @@ var require_supports_color = __commonJS({
|
|
|
15947
15956
|
}
|
|
15948
15957
|
return min;
|
|
15949
15958
|
}
|
|
15950
|
-
function getSupportLevel(stream) {
|
|
15951
|
-
const level = supportsColor(stream,
|
|
15959
|
+
function getSupportLevel(stream, options = {}) {
|
|
15960
|
+
const level = supportsColor(stream, __spreadValues({
|
|
15961
|
+
streamIsTTY: stream && stream.isTTY
|
|
15962
|
+
}, options));
|
|
15952
15963
|
return translateLevel(level);
|
|
15953
15964
|
}
|
|
15954
15965
|
module2.exports = {
|
|
15955
15966
|
supportsColor: getSupportLevel,
|
|
15956
|
-
stdout:
|
|
15957
|
-
stderr:
|
|
15967
|
+
stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
|
|
15968
|
+
stderr: getSupportLevel({ isTTY: tty.isatty(2) })
|
|
15958
15969
|
};
|
|
15959
15970
|
}
|
|
15960
15971
|
});
|
|
15961
15972
|
|
|
15962
|
-
// ../../../node_modules/.pnpm/debug@4.3.
|
|
15973
|
+
// ../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/node.js
|
|
15963
15974
|
var require_node = __commonJS({
|
|
15964
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
|
15975
|
+
"../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/node.js"(exports, module2) {
|
|
15965
15976
|
var tty = require("tty");
|
|
15966
15977
|
var util = require("util");
|
|
15967
15978
|
exports.init = init;
|
|
@@ -16133,9 +16144,9 @@ var require_node = __commonJS({
|
|
|
16133
16144
|
}
|
|
16134
16145
|
});
|
|
16135
16146
|
|
|
16136
|
-
// ../../../node_modules/.pnpm/debug@4.3.
|
|
16147
|
+
// ../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/index.js
|
|
16137
16148
|
var require_src = __commonJS({
|
|
16138
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
|
16149
|
+
"../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/index.js"(exports, module2) {
|
|
16139
16150
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
16140
16151
|
module2.exports = require_browser();
|
|
16141
16152
|
} else {
|
|
@@ -39925,7 +39936,7 @@ var CodeSmith = /* @__PURE__ */ function() {
|
|
|
39925
39936
|
}();
|
|
39926
39937
|
|
|
39927
39938
|
// package.json
|
|
39928
|
-
var version = "2.22.
|
|
39939
|
+
var version = "2.22.1";
|
|
39929
39940
|
|
|
39930
39941
|
// ../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/esm/_define_property.js
|
|
39931
39942
|
function _define_property7(obj, key, value) {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.22.
|
|
18
|
+
"version": "2.22.1",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/index.js",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"jest": "^29",
|
|
44
44
|
"ts-node": "^10.9.1",
|
|
45
45
|
"typescript": "^5",
|
|
46
|
-
"@modern-js/
|
|
47
|
-
"@modern-js/plugin-
|
|
48
|
-
"@modern-js/
|
|
49
|
-
"@modern-js/
|
|
50
|
-
"@scripts/build": "2.22.
|
|
51
|
-
"@scripts/jest-config": "2.22.
|
|
46
|
+
"@modern-js/plugin-i18n": "2.22.1",
|
|
47
|
+
"@modern-js/generator-plugin-plugin": "3.1.21",
|
|
48
|
+
"@modern-js/repo-generator": "3.1.21",
|
|
49
|
+
"@modern-js/utils": "2.22.1",
|
|
50
|
+
"@scripts/build": "2.22.1",
|
|
51
|
+
"@scripts/jest-config": "2.22.1"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"registry": "https://registry.npmjs.org/",
|