@wix/create-new 0.0.69 → 0.0.71
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-UYE4R7XA.js → chunk-4MNGTB2N.js} +43 -36
- package/build/{chunk-UYE4R7XA.js.map → chunk-4MNGTB2N.js.map} +1 -1
- package/build/{generator-NFUFXD34.js → generator-23FBIF5G.js} +2 -2
- package/build/index.js +37 -30
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- /package/build/{generator-NFUFXD34.js.map → generator-23FBIF5G.js.map} +0 -0
|
@@ -2012,12 +2012,12 @@ var require_isexe = __commonJS({
|
|
|
2012
2012
|
if (typeof Promise !== "function") {
|
|
2013
2013
|
throw new TypeError("callback not provided");
|
|
2014
2014
|
}
|
|
2015
|
-
return new Promise(function(
|
|
2015
|
+
return new Promise(function(resolve3, reject) {
|
|
2016
2016
|
isexe(path5, options || {}, function(er, is) {
|
|
2017
2017
|
if (er) {
|
|
2018
2018
|
reject(er);
|
|
2019
2019
|
} else {
|
|
2020
|
-
|
|
2020
|
+
resolve3(is);
|
|
2021
2021
|
}
|
|
2022
2022
|
});
|
|
2023
2023
|
});
|
|
@@ -2085,27 +2085,27 @@ var require_which = __commonJS({
|
|
|
2085
2085
|
opt = {};
|
|
2086
2086
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
2087
2087
|
const found = [];
|
|
2088
|
-
const step = (i) => new Promise((
|
|
2088
|
+
const step = (i) => new Promise((resolve3, reject) => {
|
|
2089
2089
|
if (i === pathEnv.length)
|
|
2090
|
-
return opt.all && found.length ?
|
|
2090
|
+
return opt.all && found.length ? resolve3(found) : reject(getNotFoundError(cmd));
|
|
2091
2091
|
const ppRaw = pathEnv[i];
|
|
2092
2092
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
2093
2093
|
const pCmd = path5.join(pathPart, cmd);
|
|
2094
2094
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
2095
|
-
|
|
2095
|
+
resolve3(subStep(p, i, 0));
|
|
2096
2096
|
});
|
|
2097
|
-
const subStep = (p, i, ii) => new Promise((
|
|
2097
|
+
const subStep = (p, i, ii) => new Promise((resolve3, reject) => {
|
|
2098
2098
|
if (ii === pathExt.length)
|
|
2099
|
-
return
|
|
2099
|
+
return resolve3(step(i + 1));
|
|
2100
2100
|
const ext = pathExt[ii];
|
|
2101
2101
|
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
2102
2102
|
if (!er && is) {
|
|
2103
2103
|
if (opt.all)
|
|
2104
2104
|
found.push(p + ext);
|
|
2105
2105
|
else
|
|
2106
|
-
return
|
|
2106
|
+
return resolve3(p + ext);
|
|
2107
2107
|
}
|
|
2108
|
-
return
|
|
2108
|
+
return resolve3(subStep(p, i, ii + 1));
|
|
2109
2109
|
});
|
|
2110
2110
|
});
|
|
2111
2111
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -2689,8 +2689,8 @@ var require_ejs = __commonJS({
|
|
|
2689
2689
|
exports.resolveInclude = function(name, filename, isDir) {
|
|
2690
2690
|
var dirname3 = path5.dirname;
|
|
2691
2691
|
var extname2 = path5.extname;
|
|
2692
|
-
var
|
|
2693
|
-
var includePath =
|
|
2692
|
+
var resolve3 = path5.resolve;
|
|
2693
|
+
var includePath = resolve3(isDir ? filename : dirname3(filename), name);
|
|
2694
2694
|
var ext = extname2(name);
|
|
2695
2695
|
if (!ext) {
|
|
2696
2696
|
includePath += ".ejs";
|
|
@@ -2765,10 +2765,10 @@ var require_ejs = __commonJS({
|
|
|
2765
2765
|
var result;
|
|
2766
2766
|
if (!cb) {
|
|
2767
2767
|
if (typeof exports.promiseImpl == "function") {
|
|
2768
|
-
return new exports.promiseImpl(function(
|
|
2768
|
+
return new exports.promiseImpl(function(resolve3, reject) {
|
|
2769
2769
|
try {
|
|
2770
2770
|
result = handleCache(options)(data);
|
|
2771
|
-
|
|
2771
|
+
resolve3(result);
|
|
2772
2772
|
} catch (err) {
|
|
2773
2773
|
reject(err);
|
|
2774
2774
|
}
|
|
@@ -10433,41 +10433,41 @@ var require_queue = __commonJS({
|
|
|
10433
10433
|
queue.drained = drained;
|
|
10434
10434
|
return queue;
|
|
10435
10435
|
function push(value) {
|
|
10436
|
-
var p = new Promise(function(
|
|
10436
|
+
var p = new Promise(function(resolve3, reject) {
|
|
10437
10437
|
pushCb(value, function(err, result) {
|
|
10438
10438
|
if (err) {
|
|
10439
10439
|
reject(err);
|
|
10440
10440
|
return;
|
|
10441
10441
|
}
|
|
10442
|
-
|
|
10442
|
+
resolve3(result);
|
|
10443
10443
|
});
|
|
10444
10444
|
});
|
|
10445
10445
|
p.catch(noop3);
|
|
10446
10446
|
return p;
|
|
10447
10447
|
}
|
|
10448
10448
|
function unshift(value) {
|
|
10449
|
-
var p = new Promise(function(
|
|
10449
|
+
var p = new Promise(function(resolve3, reject) {
|
|
10450
10450
|
unshiftCb(value, function(err, result) {
|
|
10451
10451
|
if (err) {
|
|
10452
10452
|
reject(err);
|
|
10453
10453
|
return;
|
|
10454
10454
|
}
|
|
10455
|
-
|
|
10455
|
+
resolve3(result);
|
|
10456
10456
|
});
|
|
10457
10457
|
});
|
|
10458
10458
|
p.catch(noop3);
|
|
10459
10459
|
return p;
|
|
10460
10460
|
}
|
|
10461
10461
|
function drained() {
|
|
10462
|
-
var p = new Promise(function(
|
|
10462
|
+
var p = new Promise(function(resolve3) {
|
|
10463
10463
|
process.nextTick(function() {
|
|
10464
10464
|
if (queue.idle()) {
|
|
10465
|
-
|
|
10465
|
+
resolve3();
|
|
10466
10466
|
} else {
|
|
10467
10467
|
var previousDrain = queue.drain;
|
|
10468
10468
|
queue.drain = function() {
|
|
10469
10469
|
if (typeof previousDrain === "function") previousDrain();
|
|
10470
|
-
|
|
10470
|
+
resolve3();
|
|
10471
10471
|
queue.drain = previousDrain;
|
|
10472
10472
|
};
|
|
10473
10473
|
}
|
|
@@ -10964,9 +10964,9 @@ var require_stream3 = __commonJS({
|
|
|
10964
10964
|
});
|
|
10965
10965
|
}
|
|
10966
10966
|
_getStat(filepath) {
|
|
10967
|
-
return new Promise((
|
|
10967
|
+
return new Promise((resolve3, reject) => {
|
|
10968
10968
|
this._stat(filepath, this._fsStatSettings, (error, stats) => {
|
|
10969
|
-
return error === null ?
|
|
10969
|
+
return error === null ? resolve3(stats) : reject(error);
|
|
10970
10970
|
});
|
|
10971
10971
|
});
|
|
10972
10972
|
}
|
|
@@ -10991,10 +10991,10 @@ var require_async5 = __commonJS({
|
|
|
10991
10991
|
this._readerStream = new stream_1.default(this._settings);
|
|
10992
10992
|
}
|
|
10993
10993
|
dynamic(root, options) {
|
|
10994
|
-
return new Promise((
|
|
10994
|
+
return new Promise((resolve3, reject) => {
|
|
10995
10995
|
this._walkAsync(root, options, (error, entries) => {
|
|
10996
10996
|
if (error === null) {
|
|
10997
|
-
|
|
10997
|
+
resolve3(entries);
|
|
10998
10998
|
} else {
|
|
10999
10999
|
reject(error);
|
|
11000
11000
|
}
|
|
@@ -11004,10 +11004,10 @@ var require_async5 = __commonJS({
|
|
|
11004
11004
|
async static(patterns, options) {
|
|
11005
11005
|
const entries = [];
|
|
11006
11006
|
const stream2 = this._readerStream.static(patterns, options);
|
|
11007
|
-
return new Promise((
|
|
11007
|
+
return new Promise((resolve3, reject) => {
|
|
11008
11008
|
stream2.once("error", reject);
|
|
11009
11009
|
stream2.on("data", (entry) => entries.push(entry));
|
|
11010
|
-
stream2.once("end", () =>
|
|
11010
|
+
stream2.once("end", () => resolve3(entries));
|
|
11011
11011
|
});
|
|
11012
11012
|
}
|
|
11013
11013
|
};
|
|
@@ -18227,7 +18227,7 @@ import {
|
|
|
18227
18227
|
mkdir,
|
|
18228
18228
|
rm
|
|
18229
18229
|
} from "node:fs/promises";
|
|
18230
|
-
import { dirname, join, relative } from "node:path";
|
|
18230
|
+
import { dirname, join, relative, resolve, sep } from "node:path";
|
|
18231
18231
|
import { EOL } from "node:os";
|
|
18232
18232
|
|
|
18233
18233
|
// ../cli-error/src/index.ts
|
|
@@ -18460,6 +18460,7 @@ var CliUserErrorCode = (0, import_variant.variant)({
|
|
|
18460
18460
|
FailedMigrationToAnyNpm: {},
|
|
18461
18461
|
FailedToCloneRepo: {},
|
|
18462
18462
|
AuthenticationRequired: {},
|
|
18463
|
+
LoginRequired: {},
|
|
18463
18464
|
SiteConfiguredRequired: {},
|
|
18464
18465
|
NonInteractiveTerminal: {},
|
|
18465
18466
|
FailedToWatchFiles: {},
|
|
@@ -18519,6 +18520,7 @@ var CliUserErrorCode = (0, import_variant.variant)({
|
|
|
18519
18520
|
FailedToCleanDistFolder: {},
|
|
18520
18521
|
FailedToIdentifyProgramFlow: (0, import_variant.fields)(),
|
|
18521
18522
|
BuildOutputMissing: (0, import_variant.fields)(),
|
|
18523
|
+
SiteOutputDirectoryOutsideProject: {},
|
|
18522
18524
|
FailedToCreateMonitoringVitePlugin: (0, import_variant.fields)(),
|
|
18523
18525
|
FailedToSyncVeloCLIServerDocumentUpdate: {},
|
|
18524
18526
|
AppReleaseConfigViolations: {},
|
|
@@ -19635,7 +19637,7 @@ var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise
|
|
|
19635
19637
|
return spawnedPromise;
|
|
19636
19638
|
}
|
|
19637
19639
|
let timeoutId;
|
|
19638
|
-
const timeoutPromise = new Promise((
|
|
19640
|
+
const timeoutPromise = new Promise((resolve3, reject) => {
|
|
19639
19641
|
timeoutId = setTimeout(() => {
|
|
19640
19642
|
timeoutKill(spawned, killSignal, reject);
|
|
19641
19643
|
}, timeout);
|
|
@@ -20016,9 +20018,9 @@ var mergePromise = (spawned, promise) => {
|
|
|
20016
20018
|
Reflect.defineProperty(spawned, property, { ...descriptor, value });
|
|
20017
20019
|
}
|
|
20018
20020
|
};
|
|
20019
|
-
var getSpawnedPromise = (spawned) => new Promise((
|
|
20021
|
+
var getSpawnedPromise = (spawned) => new Promise((resolve3, reject) => {
|
|
20020
20022
|
spawned.on("exit", (exitCode, signal) => {
|
|
20021
|
-
|
|
20023
|
+
resolve3({ exitCode, signal });
|
|
20022
20024
|
});
|
|
20023
20025
|
spawned.on("error", (error) => {
|
|
20024
20026
|
reject(error);
|
|
@@ -20727,7 +20729,7 @@ init_esm_shims();
|
|
|
20727
20729
|
init_esm_shims();
|
|
20728
20730
|
var import_ejs = __toESM(require_ejs(), 1);
|
|
20729
20731
|
var import_front_matter = __toESM(require_front_matter(), 1);
|
|
20730
|
-
import { resolve, dirname as dirname2, extname } from "node:path";
|
|
20732
|
+
import { resolve as resolve2, dirname as dirname2, extname } from "node:path";
|
|
20731
20733
|
import { readFile as readFile2, copyFile } from "node:fs/promises";
|
|
20732
20734
|
|
|
20733
20735
|
// ../gena/src/fs-extra.ts
|
|
@@ -21274,7 +21276,7 @@ async function justCopy({
|
|
|
21274
21276
|
template,
|
|
21275
21277
|
path: path5
|
|
21276
21278
|
}) {
|
|
21277
|
-
const to =
|
|
21279
|
+
const to = resolve2(cwd, template);
|
|
21278
21280
|
await outputDir(dirname2(to));
|
|
21279
21281
|
await copyFile(path5, to);
|
|
21280
21282
|
return to;
|
|
@@ -21284,7 +21286,7 @@ async function generator(opts) {
|
|
|
21284
21286
|
const templates = await getFiles(templateRoot);
|
|
21285
21287
|
const generatedFiles = await Promise.all(
|
|
21286
21288
|
templates.map(async (template) => {
|
|
21287
|
-
const path5 =
|
|
21289
|
+
const path5 = resolve2(templateRoot, template);
|
|
21288
21290
|
if (shouldSkipParsing(path5)) {
|
|
21289
21291
|
return justCopy({ cwd, template, path: path5 });
|
|
21290
21292
|
}
|
|
@@ -21294,7 +21296,7 @@ async function generator(opts) {
|
|
|
21294
21296
|
if (attributes.skip_if === true) {
|
|
21295
21297
|
return;
|
|
21296
21298
|
}
|
|
21297
|
-
const file =
|
|
21299
|
+
const file = resolve2(cwd, attributes.to ?? template);
|
|
21298
21300
|
await outputFile(file, body);
|
|
21299
21301
|
return file;
|
|
21300
21302
|
})
|
|
@@ -21425,7 +21427,8 @@ var extensionsTopologySchema = zod_default.array(rawExtensionTopologyItemSchema.
|
|
|
21425
21427
|
})
|
|
21426
21428
|
);
|
|
21427
21429
|
var buildMetadataSchema = zod_default.object({
|
|
21428
|
-
|
|
21430
|
+
metaDataSource: zod_default.literal("BUILD_METADATA").default("BUILD_METADATA"),
|
|
21431
|
+
appManifestPath: zod_default.string(),
|
|
21429
21432
|
outDir: zod_default.string(),
|
|
21430
21433
|
clientDir: zod_default.string(),
|
|
21431
21434
|
serverDir: zod_default.string().optional(),
|
|
@@ -21434,6 +21437,10 @@ var buildMetadataSchema = zod_default.object({
|
|
|
21434
21437
|
generateAppDeploymentGroupId: zod_default.boolean().optional(),
|
|
21435
21438
|
extensionsTopology: extensionsTopologySchema.optional()
|
|
21436
21439
|
});
|
|
21440
|
+
var staticSiteBuildMetadaSchema = buildMetadataSchema.extend({
|
|
21441
|
+
metaDataSource: zod_default.literal("WIX_CONFIG").default("WIX_CONFIG"),
|
|
21442
|
+
appManifestPath: zod_default.string().optional()
|
|
21443
|
+
});
|
|
21437
21444
|
var deploymentTopologyEnvironmentSchema = zod_default.object({
|
|
21438
21445
|
id: zod_default.string().describe("Unique ARM tag identifier"),
|
|
21439
21446
|
site: zod_default.object({
|
|
@@ -21723,4 +21730,4 @@ is-git-url/index.js:
|
|
|
21723
21730
|
* Released under the MIT License.
|
|
21724
21731
|
*)
|
|
21725
21732
|
*/
|
|
21726
|
-
//# sourceMappingURL=chunk-
|
|
21733
|
+
//# sourceMappingURL=chunk-4MNGTB2N.js.map
|