@wix/create-new 0.0.70 → 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.
@@ -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(resolve2, reject) {
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
- resolve2(is);
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((resolve2, reject) => {
2088
+ const step = (i) => new Promise((resolve3, reject) => {
2089
2089
  if (i === pathEnv.length)
2090
- return opt.all && found.length ? resolve2(found) : reject(getNotFoundError(cmd));
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
- resolve2(subStep(p, i, 0));
2095
+ resolve3(subStep(p, i, 0));
2096
2096
  });
2097
- const subStep = (p, i, ii) => new Promise((resolve2, reject) => {
2097
+ const subStep = (p, i, ii) => new Promise((resolve3, reject) => {
2098
2098
  if (ii === pathExt.length)
2099
- return resolve2(step(i + 1));
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 resolve2(p + ext);
2106
+ return resolve3(p + ext);
2107
2107
  }
2108
- return resolve2(subStep(p, i, ii + 1));
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 resolve2 = path5.resolve;
2693
- var includePath = resolve2(isDir ? filename : dirname3(filename), name);
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(resolve2, reject) {
2768
+ return new exports.promiseImpl(function(resolve3, reject) {
2769
2769
  try {
2770
2770
  result = handleCache(options)(data);
2771
- resolve2(result);
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(resolve2, reject) {
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
- resolve2(result);
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(resolve2, reject) {
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
- resolve2(result);
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(resolve2) {
10462
+ var p = new Promise(function(resolve3) {
10463
10463
  process.nextTick(function() {
10464
10464
  if (queue.idle()) {
10465
- resolve2();
10465
+ resolve3();
10466
10466
  } else {
10467
10467
  var previousDrain = queue.drain;
10468
10468
  queue.drain = function() {
10469
10469
  if (typeof previousDrain === "function") previousDrain();
10470
- resolve2();
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((resolve2, reject) => {
10967
+ return new Promise((resolve3, reject) => {
10968
10968
  this._stat(filepath, this._fsStatSettings, (error, stats) => {
10969
- return error === null ? resolve2(stats) : reject(error);
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((resolve2, reject) => {
10994
+ return new Promise((resolve3, reject) => {
10995
10995
  this._walkAsync(root, options, (error, entries) => {
10996
10996
  if (error === null) {
10997
- resolve2(entries);
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((resolve2, reject) => {
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", () => resolve2(entries));
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
@@ -18520,6 +18520,7 @@ var CliUserErrorCode = (0, import_variant.variant)({
18520
18520
  FailedToCleanDistFolder: {},
18521
18521
  FailedToIdentifyProgramFlow: (0, import_variant.fields)(),
18522
18522
  BuildOutputMissing: (0, import_variant.fields)(),
18523
+ SiteOutputDirectoryOutsideProject: {},
18523
18524
  FailedToCreateMonitoringVitePlugin: (0, import_variant.fields)(),
18524
18525
  FailedToSyncVeloCLIServerDocumentUpdate: {},
18525
18526
  AppReleaseConfigViolations: {},
@@ -19636,7 +19637,7 @@ var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise
19636
19637
  return spawnedPromise;
19637
19638
  }
19638
19639
  let timeoutId;
19639
- const timeoutPromise = new Promise((resolve2, reject) => {
19640
+ const timeoutPromise = new Promise((resolve3, reject) => {
19640
19641
  timeoutId = setTimeout(() => {
19641
19642
  timeoutKill(spawned, killSignal, reject);
19642
19643
  }, timeout);
@@ -20017,9 +20018,9 @@ var mergePromise = (spawned, promise) => {
20017
20018
  Reflect.defineProperty(spawned, property, { ...descriptor, value });
20018
20019
  }
20019
20020
  };
20020
- var getSpawnedPromise = (spawned) => new Promise((resolve2, reject) => {
20021
+ var getSpawnedPromise = (spawned) => new Promise((resolve3, reject) => {
20021
20022
  spawned.on("exit", (exitCode, signal) => {
20022
- resolve2({ exitCode, signal });
20023
+ resolve3({ exitCode, signal });
20023
20024
  });
20024
20025
  spawned.on("error", (error) => {
20025
20026
  reject(error);
@@ -20728,7 +20729,7 @@ init_esm_shims();
20728
20729
  init_esm_shims();
20729
20730
  var import_ejs = __toESM(require_ejs(), 1);
20730
20731
  var import_front_matter = __toESM(require_front_matter(), 1);
20731
- import { resolve, dirname as dirname2, extname } from "node:path";
20732
+ import { resolve as resolve2, dirname as dirname2, extname } from "node:path";
20732
20733
  import { readFile as readFile2, copyFile } from "node:fs/promises";
20733
20734
 
20734
20735
  // ../gena/src/fs-extra.ts
@@ -21275,7 +21276,7 @@ async function justCopy({
21275
21276
  template,
21276
21277
  path: path5
21277
21278
  }) {
21278
- const to = resolve(cwd, template);
21279
+ const to = resolve2(cwd, template);
21279
21280
  await outputDir(dirname2(to));
21280
21281
  await copyFile(path5, to);
21281
21282
  return to;
@@ -21285,7 +21286,7 @@ async function generator(opts) {
21285
21286
  const templates = await getFiles(templateRoot);
21286
21287
  const generatedFiles = await Promise.all(
21287
21288
  templates.map(async (template) => {
21288
- const path5 = resolve(templateRoot, template);
21289
+ const path5 = resolve2(templateRoot, template);
21289
21290
  if (shouldSkipParsing(path5)) {
21290
21291
  return justCopy({ cwd, template, path: path5 });
21291
21292
  }
@@ -21295,7 +21296,7 @@ async function generator(opts) {
21295
21296
  if (attributes.skip_if === true) {
21296
21297
  return;
21297
21298
  }
21298
- const file = resolve(cwd, attributes.to ?? template);
21299
+ const file = resolve2(cwd, attributes.to ?? template);
21299
21300
  await outputFile(file, body);
21300
21301
  return file;
21301
21302
  })
@@ -21426,7 +21427,8 @@ var extensionsTopologySchema = zod_default.array(rawExtensionTopologyItemSchema.
21426
21427
  })
21427
21428
  );
21428
21429
  var buildMetadataSchema = zod_default.object({
21429
- appManifestPath: zod_default.string().optional(),
21430
+ metaDataSource: zod_default.literal("BUILD_METADATA").default("BUILD_METADATA"),
21431
+ appManifestPath: zod_default.string(),
21430
21432
  outDir: zod_default.string(),
21431
21433
  clientDir: zod_default.string(),
21432
21434
  serverDir: zod_default.string().optional(),
@@ -21435,6 +21437,10 @@ var buildMetadataSchema = zod_default.object({
21435
21437
  generateAppDeploymentGroupId: zod_default.boolean().optional(),
21436
21438
  extensionsTopology: extensionsTopologySchema.optional()
21437
21439
  });
21440
+ var staticSiteBuildMetadaSchema = buildMetadataSchema.extend({
21441
+ metaDataSource: zod_default.literal("WIX_CONFIG").default("WIX_CONFIG"),
21442
+ appManifestPath: zod_default.string().optional()
21443
+ });
21438
21444
  var deploymentTopologyEnvironmentSchema = zod_default.object({
21439
21445
  id: zod_default.string().describe("Unique ARM tag identifier"),
21440
21446
  site: zod_default.object({
@@ -21724,4 +21730,4 @@ is-git-url/index.js:
21724
21730
  * Released under the MIT License.
21725
21731
  *)
21726
21732
  */
21727
- //# sourceMappingURL=chunk-FFNTR7KK.js.map
21733
+ //# sourceMappingURL=chunk-4MNGTB2N.js.map