@wix/create-app 0.0.215 → 0.0.217
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/build/{chunk-RQABU6WU.js → chunk-P7PXBK72.js} +8 -5
- package/build/{chunk-RQABU6WU.js.map → chunk-P7PXBK72.js.map} +1 -1
- package/build/{generator-OX754MXD.js → generator-MTY4HUWZ.js} +2 -2
- package/build/index.js +145 -114
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- /package/build/{generator-OX754MXD.js.map → generator-MTY4HUWZ.js.map} +0 -0
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
require_is_git_url,
|
|
15
15
|
require_lib,
|
|
16
16
|
require_semver
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-P7PXBK72.js";
|
|
18
18
|
import {
|
|
19
19
|
__commonJS,
|
|
20
20
|
__require,
|
|
@@ -3986,4 +3986,4 @@ ejs/lib/ejs.js:
|
|
|
3986
3986
|
* @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
|
|
3987
3987
|
*)
|
|
3988
3988
|
*/
|
|
3989
|
-
//# sourceMappingURL=generator-
|
|
3989
|
+
//# sourceMappingURL=generator-MTY4HUWZ.js.map
|
package/build/index.js
CHANGED
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
setupTestEnv,
|
|
101
101
|
writeJson,
|
|
102
102
|
zod_default
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-P7PXBK72.js";
|
|
104
104
|
import {
|
|
105
105
|
__commonJS,
|
|
106
106
|
__dirname,
|
|
@@ -1072,7 +1072,7 @@ var require_ci_info = __commonJS({
|
|
|
1072
1072
|
"use strict";
|
|
1073
1073
|
init_esm_shims();
|
|
1074
1074
|
var vendors = require_vendors();
|
|
1075
|
-
var
|
|
1075
|
+
var env4 = process.env;
|
|
1076
1076
|
Object.defineProperty(exports, "_vendors", {
|
|
1077
1077
|
value: vendors.map(function(v) {
|
|
1078
1078
|
return v.constant;
|
|
@@ -1092,14 +1092,14 @@ var require_ci_info = __commonJS({
|
|
|
1092
1092
|
exports.name = vendor.name;
|
|
1093
1093
|
switch (typeof vendor.pr) {
|
|
1094
1094
|
case "string":
|
|
1095
|
-
exports.isPR = !!
|
|
1095
|
+
exports.isPR = !!env4[vendor.pr];
|
|
1096
1096
|
break;
|
|
1097
1097
|
case "object":
|
|
1098
1098
|
if ("env" in vendor.pr) {
|
|
1099
|
-
exports.isPR = vendor.pr.env in
|
|
1099
|
+
exports.isPR = vendor.pr.env in env4 && env4[vendor.pr.env] !== vendor.pr.ne;
|
|
1100
1100
|
} else if ("any" in vendor.pr) {
|
|
1101
1101
|
exports.isPR = vendor.pr.any.some(function(key) {
|
|
1102
|
-
return !!
|
|
1102
|
+
return !!env4[key];
|
|
1103
1103
|
});
|
|
1104
1104
|
} else {
|
|
1105
1105
|
exports.isPR = checkEnv(vendor.pr);
|
|
@@ -1109,29 +1109,29 @@ var require_ci_info = __commonJS({
|
|
|
1109
1109
|
exports.isPR = null;
|
|
1110
1110
|
}
|
|
1111
1111
|
});
|
|
1112
|
-
exports.isCI = !!(
|
|
1113
|
-
(
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1112
|
+
exports.isCI = !!(env4.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
|
1113
|
+
(env4.BUILD_ID || // Jenkins, Cloudbees
|
|
1114
|
+
env4.BUILD_NUMBER || // Jenkins, TeamCity
|
|
1115
|
+
env4.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari
|
|
1116
|
+
env4.CI_APP_ID || // Appflow
|
|
1117
|
+
env4.CI_BUILD_ID || // Appflow
|
|
1118
|
+
env4.CI_BUILD_NUMBER || // Appflow
|
|
1119
|
+
env4.CI_NAME || // Codeship and others
|
|
1120
|
+
env4.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
|
|
1121
|
+
env4.RUN_ID || // TaskCluster, dsari
|
|
1122
1122
|
exports.name || false));
|
|
1123
1123
|
function checkEnv(obj) {
|
|
1124
|
-
if (typeof obj === "string") return !!
|
|
1124
|
+
if (typeof obj === "string") return !!env4[obj];
|
|
1125
1125
|
if ("env" in obj) {
|
|
1126
|
-
return
|
|
1126
|
+
return env4[obj.env] && env4[obj.env].includes(obj.includes);
|
|
1127
1127
|
}
|
|
1128
1128
|
if ("any" in obj) {
|
|
1129
1129
|
return obj.any.some(function(k) {
|
|
1130
|
-
return !!
|
|
1130
|
+
return !!env4[k];
|
|
1131
1131
|
});
|
|
1132
1132
|
}
|
|
1133
1133
|
return Object.keys(obj).every(function(k) {
|
|
1134
|
-
return
|
|
1134
|
+
return env4[k] === obj[k];
|
|
1135
1135
|
});
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
@@ -9913,7 +9913,7 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
9913
9913
|
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object");
|
|
9914
9914
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
9915
9915
|
}
|
|
9916
|
-
function __addDisposableResource(
|
|
9916
|
+
function __addDisposableResource(env4, value2, async) {
|
|
9917
9917
|
if (value2 !== null && value2 !== void 0) {
|
|
9918
9918
|
if (typeof value2 !== "object" && typeof value2 !== "function") throw new TypeError("Object expected.");
|
|
9919
9919
|
var dispose, inner;
|
|
@@ -9934,22 +9934,22 @@ function __addDisposableResource(env3, value2, async) {
|
|
|
9934
9934
|
return Promise.reject(e2);
|
|
9935
9935
|
}
|
|
9936
9936
|
};
|
|
9937
|
-
|
|
9937
|
+
env4.stack.push({ value: value2, dispose, async });
|
|
9938
9938
|
} else if (async) {
|
|
9939
|
-
|
|
9939
|
+
env4.stack.push({ async: true });
|
|
9940
9940
|
}
|
|
9941
9941
|
return value2;
|
|
9942
9942
|
}
|
|
9943
|
-
function __disposeResources(
|
|
9943
|
+
function __disposeResources(env4) {
|
|
9944
9944
|
function fail(e2) {
|
|
9945
|
-
|
|
9946
|
-
|
|
9945
|
+
env4.error = env4.hasError ? new _SuppressedError(e2, env4.error, "An error was suppressed during disposal.") : e2;
|
|
9946
|
+
env4.hasError = true;
|
|
9947
9947
|
}
|
|
9948
9948
|
var r2, s2 = 0;
|
|
9949
9949
|
function next() {
|
|
9950
|
-
while (r2 =
|
|
9950
|
+
while (r2 = env4.stack.pop()) {
|
|
9951
9951
|
try {
|
|
9952
|
-
if (!r2.async && s2 === 1) return s2 = 0,
|
|
9952
|
+
if (!r2.async && s2 === 1) return s2 = 0, env4.stack.push(r2), Promise.resolve().then(next);
|
|
9953
9953
|
if (r2.dispose) {
|
|
9954
9954
|
var result = r2.dispose.call(r2.value);
|
|
9955
9955
|
if (r2.async) return s2 |= 2, Promise.resolve(result).then(next, function(e2) {
|
|
@@ -9961,8 +9961,8 @@ function __disposeResources(env3) {
|
|
|
9961
9961
|
fail(e2);
|
|
9962
9962
|
}
|
|
9963
9963
|
}
|
|
9964
|
-
if (s2 === 1) return
|
|
9965
|
-
if (
|
|
9964
|
+
if (s2 === 1) return env4.hasError ? Promise.reject(env4.error) : Promise.resolve();
|
|
9965
|
+
if (env4.hasError) throw env4.error;
|
|
9966
9966
|
}
|
|
9967
9967
|
return next();
|
|
9968
9968
|
}
|
|
@@ -11200,7 +11200,7 @@ var require_common = __commonJS({
|
|
|
11200
11200
|
"../../node_modules/debug/src/common.js"(exports, module2) {
|
|
11201
11201
|
"use strict";
|
|
11202
11202
|
init_esm_shims();
|
|
11203
|
-
function setup(
|
|
11203
|
+
function setup(env4) {
|
|
11204
11204
|
createDebug.debug = createDebug;
|
|
11205
11205
|
createDebug.default = createDebug;
|
|
11206
11206
|
createDebug.coerce = coerce;
|
|
@@ -11209,8 +11209,8 @@ var require_common = __commonJS({
|
|
|
11209
11209
|
createDebug.enabled = enabled;
|
|
11210
11210
|
createDebug.humanize = require_ms();
|
|
11211
11211
|
createDebug.destroy = destroy;
|
|
11212
|
-
Object.keys(
|
|
11213
|
-
createDebug[key] =
|
|
11212
|
+
Object.keys(env4).forEach((key) => {
|
|
11213
|
+
createDebug[key] = env4[key];
|
|
11214
11214
|
});
|
|
11215
11215
|
createDebug.names = [];
|
|
11216
11216
|
createDebug.skips = [];
|
|
@@ -11568,20 +11568,20 @@ var require_supports_color = __commonJS({
|
|
|
11568
11568
|
var os7 = __require("os");
|
|
11569
11569
|
var tty3 = __require("tty");
|
|
11570
11570
|
var hasFlag4 = require_has_flag();
|
|
11571
|
-
var { env:
|
|
11571
|
+
var { env: env4 } = process;
|
|
11572
11572
|
var forceColor;
|
|
11573
11573
|
if (hasFlag4("no-color") || hasFlag4("no-colors") || hasFlag4("color=false") || hasFlag4("color=never")) {
|
|
11574
11574
|
forceColor = 0;
|
|
11575
11575
|
} else if (hasFlag4("color") || hasFlag4("colors") || hasFlag4("color=true") || hasFlag4("color=always")) {
|
|
11576
11576
|
forceColor = 1;
|
|
11577
11577
|
}
|
|
11578
|
-
if ("FORCE_COLOR" in
|
|
11579
|
-
if (
|
|
11578
|
+
if ("FORCE_COLOR" in env4) {
|
|
11579
|
+
if (env4.FORCE_COLOR === "true") {
|
|
11580
11580
|
forceColor = 1;
|
|
11581
|
-
} else if (
|
|
11581
|
+
} else if (env4.FORCE_COLOR === "false") {
|
|
11582
11582
|
forceColor = 0;
|
|
11583
11583
|
} else {
|
|
11584
|
-
forceColor =
|
|
11584
|
+
forceColor = env4.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env4.FORCE_COLOR, 10), 3);
|
|
11585
11585
|
}
|
|
11586
11586
|
}
|
|
11587
11587
|
function translateLevel3(level) {
|
|
@@ -11609,7 +11609,7 @@ var require_supports_color = __commonJS({
|
|
|
11609
11609
|
return 0;
|
|
11610
11610
|
}
|
|
11611
11611
|
const min = forceColor || 0;
|
|
11612
|
-
if (
|
|
11612
|
+
if (env4.TERM === "dumb") {
|
|
11613
11613
|
return min;
|
|
11614
11614
|
}
|
|
11615
11615
|
if (process.platform === "win32") {
|
|
@@ -11619,34 +11619,34 @@ var require_supports_color = __commonJS({
|
|
|
11619
11619
|
}
|
|
11620
11620
|
return 1;
|
|
11621
11621
|
}
|
|
11622
|
-
if ("CI" in
|
|
11623
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in
|
|
11622
|
+
if ("CI" in env4) {
|
|
11623
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env4) || env4.CI_NAME === "codeship") {
|
|
11624
11624
|
return 1;
|
|
11625
11625
|
}
|
|
11626
11626
|
return min;
|
|
11627
11627
|
}
|
|
11628
|
-
if ("TEAMCITY_VERSION" in
|
|
11629
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(
|
|
11628
|
+
if ("TEAMCITY_VERSION" in env4) {
|
|
11629
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env4.TEAMCITY_VERSION) ? 1 : 0;
|
|
11630
11630
|
}
|
|
11631
|
-
if (
|
|
11631
|
+
if (env4.COLORTERM === "truecolor") {
|
|
11632
11632
|
return 3;
|
|
11633
11633
|
}
|
|
11634
|
-
if ("TERM_PROGRAM" in
|
|
11635
|
-
const version = parseInt((
|
|
11636
|
-
switch (
|
|
11634
|
+
if ("TERM_PROGRAM" in env4) {
|
|
11635
|
+
const version = parseInt((env4.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
11636
|
+
switch (env4.TERM_PROGRAM) {
|
|
11637
11637
|
case "iTerm.app":
|
|
11638
11638
|
return version >= 3 ? 3 : 2;
|
|
11639
11639
|
case "Apple_Terminal":
|
|
11640
11640
|
return 2;
|
|
11641
11641
|
}
|
|
11642
11642
|
}
|
|
11643
|
-
if (/-256(color)?$/i.test(
|
|
11643
|
+
if (/-256(color)?$/i.test(env4.TERM)) {
|
|
11644
11644
|
return 2;
|
|
11645
11645
|
}
|
|
11646
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(
|
|
11646
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env4.TERM)) {
|
|
11647
11647
|
return 1;
|
|
11648
11648
|
}
|
|
11649
|
-
if ("COLORTERM" in
|
|
11649
|
+
if ("COLORTERM" in env4) {
|
|
11650
11650
|
return 1;
|
|
11651
11651
|
}
|
|
11652
11652
|
return min;
|
|
@@ -14421,7 +14421,7 @@ var require_ci_info2 = __commonJS({
|
|
|
14421
14421
|
"use strict";
|
|
14422
14422
|
init_esm_shims();
|
|
14423
14423
|
var vendors = require_vendors2();
|
|
14424
|
-
var
|
|
14424
|
+
var env4 = process.env;
|
|
14425
14425
|
Object.defineProperty(exports, "_vendors", {
|
|
14426
14426
|
value: vendors.map(function(v) {
|
|
14427
14427
|
return v.constant;
|
|
@@ -14443,47 +14443,47 @@ var require_ci_info2 = __commonJS({
|
|
|
14443
14443
|
exports.isPR = checkPR(vendor);
|
|
14444
14444
|
exports.id = vendor.constant;
|
|
14445
14445
|
});
|
|
14446
|
-
exports.isCI = !!(
|
|
14447
|
-
(
|
|
14448
|
-
|
|
14449
|
-
|
|
14450
|
-
|
|
14451
|
-
|
|
14452
|
-
|
|
14453
|
-
|
|
14454
|
-
|
|
14455
|
-
|
|
14446
|
+
exports.isCI = !!(env4.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
|
14447
|
+
(env4.BUILD_ID || // Jenkins, Cloudbees
|
|
14448
|
+
env4.BUILD_NUMBER || // Jenkins, TeamCity
|
|
14449
|
+
env4.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages
|
|
14450
|
+
env4.CI_APP_ID || // Appflow
|
|
14451
|
+
env4.CI_BUILD_ID || // Appflow
|
|
14452
|
+
env4.CI_BUILD_NUMBER || // Appflow
|
|
14453
|
+
env4.CI_NAME || // Codeship and others
|
|
14454
|
+
env4.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
|
|
14455
|
+
env4.RUN_ID || // TaskCluster, dsari
|
|
14456
14456
|
exports.name || false));
|
|
14457
14457
|
function checkEnv(obj) {
|
|
14458
|
-
if (typeof obj === "string") return !!
|
|
14458
|
+
if (typeof obj === "string") return !!env4[obj];
|
|
14459
14459
|
if ("env" in obj) {
|
|
14460
|
-
return
|
|
14460
|
+
return env4[obj.env] && env4[obj.env].includes(obj.includes);
|
|
14461
14461
|
}
|
|
14462
14462
|
if ("any" in obj) {
|
|
14463
14463
|
return obj.any.some(function(k) {
|
|
14464
|
-
return !!
|
|
14464
|
+
return !!env4[k];
|
|
14465
14465
|
});
|
|
14466
14466
|
}
|
|
14467
14467
|
return Object.keys(obj).every(function(k) {
|
|
14468
|
-
return
|
|
14468
|
+
return env4[k] === obj[k];
|
|
14469
14469
|
});
|
|
14470
14470
|
}
|
|
14471
14471
|
function checkPR(vendor) {
|
|
14472
14472
|
switch (typeof vendor.pr) {
|
|
14473
14473
|
case "string":
|
|
14474
|
-
return !!
|
|
14474
|
+
return !!env4[vendor.pr];
|
|
14475
14475
|
case "object":
|
|
14476
14476
|
if ("env" in vendor.pr) {
|
|
14477
14477
|
if ("any" in vendor.pr) {
|
|
14478
14478
|
return vendor.pr.any.some(function(key) {
|
|
14479
|
-
return
|
|
14479
|
+
return env4[vendor.pr.env] === key;
|
|
14480
14480
|
});
|
|
14481
14481
|
} else {
|
|
14482
|
-
return vendor.pr.env in
|
|
14482
|
+
return vendor.pr.env in env4 && env4[vendor.pr.env] !== vendor.pr.ne;
|
|
14483
14483
|
}
|
|
14484
14484
|
} else if ("any" in vendor.pr) {
|
|
14485
14485
|
return vendor.pr.any.some(function(key) {
|
|
14486
|
-
return !!
|
|
14486
|
+
return !!env4[key];
|
|
14487
14487
|
});
|
|
14488
14488
|
} else {
|
|
14489
14489
|
return checkEnv(vendor.pr);
|
|
@@ -14950,8 +14950,8 @@ function setLogLevelFromEnv(key, environment, values) {
|
|
|
14950
14950
|
}
|
|
14951
14951
|
function parseEnvironment(values) {
|
|
14952
14952
|
var environment = {};
|
|
14953
|
-
for (var
|
|
14954
|
-
var key =
|
|
14953
|
+
for (var env4 in DEFAULT_ENVIRONMENT) {
|
|
14954
|
+
var key = env4;
|
|
14955
14955
|
switch (key) {
|
|
14956
14956
|
case "OTEL_LOG_LEVEL":
|
|
14957
14957
|
setLogLevelFromEnv(key, environment, values);
|
|
@@ -30888,11 +30888,11 @@ var require_utils16 = __commonJS({
|
|
|
30888
30888
|
var content = file.apply(null, arguments);
|
|
30889
30889
|
return content ? parse2(content) : null;
|
|
30890
30890
|
};
|
|
30891
|
-
var
|
|
30892
|
-
|
|
30891
|
+
var env4 = exports.env = function(prefix, env5) {
|
|
30892
|
+
env5 = env5 || process.env;
|
|
30893
30893
|
var obj = {};
|
|
30894
30894
|
var l = prefix.length;
|
|
30895
|
-
for (var k in
|
|
30895
|
+
for (var k in env5) {
|
|
30896
30896
|
if (k.toLowerCase().indexOf(prefix.toLowerCase()) === 0) {
|
|
30897
30897
|
var keypath = k.substring(l).split("__");
|
|
30898
30898
|
var _emptyStringIndex;
|
|
@@ -30904,7 +30904,7 @@ var require_utils16 = __commonJS({
|
|
|
30904
30904
|
if (!_subkey || typeof cursor !== "object")
|
|
30905
30905
|
return;
|
|
30906
30906
|
if (i2 === keypath.length - 1)
|
|
30907
|
-
cursor[_subkey] =
|
|
30907
|
+
cursor[_subkey] = env5[k];
|
|
30908
30908
|
if (cursor[_subkey] === void 0)
|
|
30909
30909
|
cursor[_subkey] = {};
|
|
30910
30910
|
cursor = cursor[_subkey];
|
|
@@ -31254,7 +31254,7 @@ var require_rc = __commonJS({
|
|
|
31254
31254
|
argv = require_minimist()(process.argv.slice(2));
|
|
31255
31255
|
defaults3 = ("string" === typeof defaults3 ? cc.json(defaults3) : defaults3) || {};
|
|
31256
31256
|
parse2 = parse2 || cc.parse;
|
|
31257
|
-
var
|
|
31257
|
+
var env4 = cc.env(name + "_");
|
|
31258
31258
|
var configs = [defaults3];
|
|
31259
31259
|
var configFiles = [];
|
|
31260
31260
|
function addConfigFile(file) {
|
|
@@ -31278,10 +31278,10 @@ var require_rc = __commonJS({
|
|
|
31278
31278
|
join10(home, "." + name + "rc")
|
|
31279
31279
|
].forEach(addConfigFile);
|
|
31280
31280
|
addConfigFile(cc.find("." + name + "rc"));
|
|
31281
|
-
if (
|
|
31281
|
+
if (env4.config) addConfigFile(env4.config);
|
|
31282
31282
|
if (argv.config) addConfigFile(argv.config);
|
|
31283
31283
|
return deepExtend2.apply(null, configs.concat([
|
|
31284
|
-
|
|
31284
|
+
env4,
|
|
31285
31285
|
argv,
|
|
31286
31286
|
configFiles.length ? { configs: configFiles, config: configFiles[configFiles.length - 1] } : void 0
|
|
31287
31287
|
]));
|
|
@@ -32288,13 +32288,13 @@ var require_config_chain = __commonJS({
|
|
|
32288
32288
|
}
|
|
32289
32289
|
return parse2(content, file, "json");
|
|
32290
32290
|
};
|
|
32291
|
-
var
|
|
32292
|
-
|
|
32291
|
+
var env4 = exports.env = function(prefix, env5) {
|
|
32292
|
+
env5 = env5 || process.env;
|
|
32293
32293
|
var obj = {};
|
|
32294
32294
|
var l = prefix.length;
|
|
32295
|
-
for (var k in
|
|
32295
|
+
for (var k in env5) {
|
|
32296
32296
|
if (k.indexOf(prefix) === 0)
|
|
32297
|
-
obj[k.substring(l)] =
|
|
32297
|
+
obj[k.substring(l)] = env5[k];
|
|
32298
32298
|
}
|
|
32299
32299
|
return obj;
|
|
32300
32300
|
};
|
|
@@ -32400,10 +32400,10 @@ var require_config_chain = __commonJS({
|
|
|
32400
32400
|
}.bind(this));
|
|
32401
32401
|
return this;
|
|
32402
32402
|
};
|
|
32403
|
-
ConfigChain.prototype.addEnv = function(prefix,
|
|
32403
|
+
ConfigChain.prototype.addEnv = function(prefix, env5, name) {
|
|
32404
32404
|
name = name || "env";
|
|
32405
|
-
var data = exports.env(prefix,
|
|
32406
|
-
this.sources[name] = { data, source:
|
|
32405
|
+
var data = exports.env(prefix, env5);
|
|
32406
|
+
this.sources[name] = { data, source: env5, prefix };
|
|
32407
32407
|
return this.add(data, name);
|
|
32408
32408
|
};
|
|
32409
32409
|
ConfigChain.prototype.addUrl = function(req, type, name) {
|
|
@@ -32498,28 +32498,28 @@ var require_env_replace = __commonJS({
|
|
|
32498
32498
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32499
32499
|
exports.envReplace = void 0;
|
|
32500
32500
|
var ENV_EXPR = /(?<!\\)(\\*)\$\{([^${}]+)\}/g;
|
|
32501
|
-
function envReplace(settingValue,
|
|
32502
|
-
return settingValue.replace(ENV_EXPR, replaceEnvMatch.bind(null,
|
|
32501
|
+
function envReplace(settingValue, env4) {
|
|
32502
|
+
return settingValue.replace(ENV_EXPR, replaceEnvMatch.bind(null, env4));
|
|
32503
32503
|
}
|
|
32504
32504
|
exports.envReplace = envReplace;
|
|
32505
|
-
function replaceEnvMatch(
|
|
32505
|
+
function replaceEnvMatch(env4, orig, escape3, name) {
|
|
32506
32506
|
if (escape3.length % 2) {
|
|
32507
32507
|
return orig.slice((escape3.length + 1) / 2);
|
|
32508
32508
|
}
|
|
32509
|
-
const envValue = getEnvValue(
|
|
32509
|
+
const envValue = getEnvValue(env4, name);
|
|
32510
32510
|
if (envValue === void 0) {
|
|
32511
32511
|
throw new Error(`Failed to replace env in config: ${orig}`);
|
|
32512
32512
|
}
|
|
32513
32513
|
return `${escape3.slice(escape3.length / 2)}${envValue}`;
|
|
32514
32514
|
}
|
|
32515
32515
|
var ENV_VALUE = /([^:-]+)(:?)-(.+)/;
|
|
32516
|
-
function getEnvValue(
|
|
32516
|
+
function getEnvValue(env4, name) {
|
|
32517
32517
|
const matched = name.match(ENV_VALUE);
|
|
32518
32518
|
if (!matched)
|
|
32519
|
-
return
|
|
32519
|
+
return env4[name];
|
|
32520
32520
|
const [, variableName, colon, fallback] = matched;
|
|
32521
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
32522
|
-
return !
|
|
32521
|
+
if (Object.prototype.hasOwnProperty.call(env4, variableName)) {
|
|
32522
|
+
return !env4[variableName] && colon ? fallback : env4[variableName];
|
|
32523
32523
|
}
|
|
32524
32524
|
return fallback;
|
|
32525
32525
|
}
|
|
@@ -32838,15 +32838,15 @@ var require_conf = __commonJS({
|
|
|
32838
32838
|
}
|
|
32839
32839
|
}
|
|
32840
32840
|
// https://github.com/npm/cli/blob/latest/lib/config/core.js#L341-L357
|
|
32841
|
-
addEnv(
|
|
32842
|
-
|
|
32841
|
+
addEnv(env4) {
|
|
32842
|
+
env4 = env4 || process.env;
|
|
32843
32843
|
const conf = {};
|
|
32844
|
-
Object.keys(
|
|
32845
|
-
if (!
|
|
32844
|
+
Object.keys(env4).filter((x) => /^npm_config_/i.test(x)).forEach((x) => {
|
|
32845
|
+
if (!env4[x]) {
|
|
32846
32846
|
return;
|
|
32847
32847
|
}
|
|
32848
32848
|
const key = envKeyToSetting(x.substr(11));
|
|
32849
|
-
const rawVal =
|
|
32849
|
+
const rawVal = env4[x];
|
|
32850
32850
|
conf[key] = deserializeEnvVal(key, rawVal);
|
|
32851
32851
|
});
|
|
32852
32852
|
return super.addEnv("", conf, "env");
|
|
@@ -38241,12 +38241,12 @@ init_esm_shims();
|
|
|
38241
38241
|
init_esm_shims();
|
|
38242
38242
|
import process13 from "node:process";
|
|
38243
38243
|
function isUnicodeSupported() {
|
|
38244
|
-
const { env:
|
|
38245
|
-
const { TERM, TERM_PROGRAM } =
|
|
38244
|
+
const { env: env4 } = process13;
|
|
38245
|
+
const { TERM, TERM_PROGRAM } = env4;
|
|
38246
38246
|
if (process13.platform !== "win32") {
|
|
38247
38247
|
return TERM !== "linux";
|
|
38248
38248
|
}
|
|
38249
|
-
return Boolean(
|
|
38249
|
+
return Boolean(env4.WT_SESSION) || Boolean(env4.TERMINUS_SUBLIME) || env4.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env4.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
38250
38250
|
}
|
|
38251
38251
|
|
|
38252
38252
|
// ../cli-ui-kit/src/components/UnorderedList/DefaultMarker.ts
|
|
@@ -49271,9 +49271,10 @@ var DebugLogContext = (0, import_react73.createContext)(null);
|
|
|
49271
49271
|
// ../cli-env/src/index.ts
|
|
49272
49272
|
init_esm_shims();
|
|
49273
49273
|
var import_ci_info = __toESM(require_ci_info2(), 1);
|
|
49274
|
+
import { env as env3 } from "node:process";
|
|
49274
49275
|
var remoteLogContextSchema = zod_default.record(zod_default.string(), zod_default.unknown());
|
|
49275
49276
|
function getRemoteLogContext() {
|
|
49276
|
-
const remoteContext =
|
|
49277
|
+
const remoteContext = env3.REMOTE_MACHINE_LOG_CONTEXT;
|
|
49277
49278
|
if (!remoteContext) {
|
|
49278
49279
|
return {};
|
|
49279
49280
|
}
|
|
@@ -49289,10 +49290,11 @@ var createEnv = () => {
|
|
|
49289
49290
|
return {
|
|
49290
49291
|
isCI: overrides2.isCI ?? import_ci_info.default.isCI,
|
|
49291
49292
|
isPR: overrides2.isPR ?? import_ci_info.default.isPR,
|
|
49292
|
-
ciName: overrides2.ciName ?? import_ci_info.default.name ??
|
|
49293
|
-
cliEnvName: overrides2.cliEnvName ??
|
|
49294
|
-
cliTrackingId: overrides2.cliTrackingId ??
|
|
49295
|
-
remoteLogContext: getRemoteLogContext()
|
|
49293
|
+
ciName: overrides2.ciName ?? import_ci_info.default.name ?? env3.CI_NAME ?? null,
|
|
49294
|
+
cliEnvName: overrides2.cliEnvName ?? env3.WIX_RUNTIME_ENVIRONMENT ?? null,
|
|
49295
|
+
cliTrackingId: overrides2.cliTrackingId ?? env3.TRACKING_ID ?? null,
|
|
49296
|
+
remoteLogContext: getRemoteLogContext(),
|
|
49297
|
+
devCenterDraftOverrides: env3.WIX_CLI_DEV_CENTER_DRAFT_OVERRIDES === "true"
|
|
49296
49298
|
};
|
|
49297
49299
|
};
|
|
49298
49300
|
|
|
@@ -50957,13 +50959,13 @@ ${errorMessage2}`
|
|
|
50957
50959
|
}
|
|
50958
50960
|
);
|
|
50959
50961
|
},
|
|
50960
|
-
|
|
50962
|
+
FailedToGetAppEnvironmentVariablesByEnvironment: () => {
|
|
50961
50963
|
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to pull environment variables." });
|
|
50962
50964
|
},
|
|
50963
|
-
|
|
50965
|
+
FailedToBulkUpsertAppEnvironmentVariables: () => {
|
|
50964
50966
|
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to set/update environment variable." });
|
|
50965
50967
|
},
|
|
50966
|
-
|
|
50968
|
+
FailedToDeleteAppEnvironmentVariableByEnvironmentAndKey: () => {
|
|
50967
50969
|
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to remove environment variable." });
|
|
50968
50970
|
},
|
|
50969
50971
|
FailedToUploadStaticFiles: () => {
|
|
@@ -51137,6 +51139,35 @@ ${errorMessage2}`
|
|
|
51137
51139
|
message: `Failed to create a companion app for your project.`
|
|
51138
51140
|
}
|
|
51139
51141
|
);
|
|
51142
|
+
},
|
|
51143
|
+
MultipleConfigFiles: ({ paths }) => {
|
|
51144
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
51145
|
+
ErrorMessage,
|
|
51146
|
+
{
|
|
51147
|
+
cause,
|
|
51148
|
+
message: defaultOutdent`Found multiple Wix config files. Please keep only one:
|
|
51149
|
+
${paths.join("\n")}`
|
|
51150
|
+
}
|
|
51151
|
+
);
|
|
51152
|
+
},
|
|
51153
|
+
ConfigNoDefaultExport: ({ path: path4 }) => {
|
|
51154
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
51155
|
+
ErrorMessage,
|
|
51156
|
+
{
|
|
51157
|
+
cause,
|
|
51158
|
+
message: `No default export in Wix config file at "${path4}"`
|
|
51159
|
+
}
|
|
51160
|
+
);
|
|
51161
|
+
},
|
|
51162
|
+
InvalidConfigDefinition: ({ reason }) => {
|
|
51163
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
51164
|
+
ErrorMessage,
|
|
51165
|
+
{
|
|
51166
|
+
cause,
|
|
51167
|
+
message: "Invalid Wix config definition.",
|
|
51168
|
+
hint: reason
|
|
51169
|
+
}
|
|
51170
|
+
);
|
|
51140
51171
|
}
|
|
51141
51172
|
});
|
|
51142
51173
|
}
|
|
@@ -55658,7 +55689,7 @@ async function createPanorama(options) {
|
|
|
55658
55689
|
aiAgentName
|
|
55659
55690
|
} = options;
|
|
55660
55691
|
const userConfig = await readUserConfig();
|
|
55661
|
-
const
|
|
55692
|
+
const env4 = createEnv();
|
|
55662
55693
|
const factory = panoramaClientFactory({
|
|
55663
55694
|
baseParams: {
|
|
55664
55695
|
platform: Platform.Standalone,
|
|
@@ -55672,11 +55703,11 @@ async function createPanorama(options) {
|
|
|
55672
55703
|
silent: true
|
|
55673
55704
|
},
|
|
55674
55705
|
data: {
|
|
55675
|
-
cliTrackingId:
|
|
55676
|
-
cliEnvName:
|
|
55706
|
+
cliTrackingId: env4.cliTrackingId,
|
|
55707
|
+
cliEnvName: env4.cliEnvName,
|
|
55677
55708
|
cliSessionId,
|
|
55678
55709
|
aiAgentName,
|
|
55679
|
-
...
|
|
55710
|
+
...env4.remoteLogContext
|
|
55680
55711
|
}
|
|
55681
55712
|
}).withGlobalConfig(globalConfig).setMuted(!userConfig.telemetry);
|
|
55682
55713
|
const panorama = createPanoramaWrapper(factory);
|
|
@@ -56010,7 +56041,7 @@ function reportCommandStartEvent({
|
|
|
56010
56041
|
var package_default = {
|
|
56011
56042
|
name: "@wix/create-app",
|
|
56012
56043
|
description: "Create Wix apps",
|
|
56013
|
-
version: "0.0.
|
|
56044
|
+
version: "0.0.217",
|
|
56014
56045
|
author: "Ihor Machuzhak",
|
|
56015
56046
|
bin: "bin/index.cjs",
|
|
56016
56047
|
devDependencies: {
|
|
@@ -66746,7 +66777,7 @@ function getTasks({
|
|
|
66746
66777
|
cause: e2
|
|
66747
66778
|
});
|
|
66748
66779
|
}
|
|
66749
|
-
const { generateApp } = await import("./generator-
|
|
66780
|
+
const { generateApp } = await import("./generator-MTY4HUWZ.js");
|
|
66750
66781
|
await generateApp({
|
|
66751
66782
|
packageName,
|
|
66752
66783
|
packageFolder,
|