@wix/create-new 0.0.40 → 0.0.42

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.
@@ -825,14 +825,14 @@ var require_variant = __commonJS({
825
825
  return Object.assign(Object.assign({}, result), { [creator.output.type]: creator });
826
826
  }, {});
827
827
  }
828
- function variant4(template) {
828
+ function variant3(template) {
829
829
  if (Array.isArray(template)) {
830
830
  return variantList(template);
831
831
  } else {
832
832
  return variantModule(template);
833
833
  }
834
834
  }
835
- return { descope, scoped: scope, variant: variant4, variantList, variantModule, variation };
835
+ return { descope, scoped: scope, variant: variant3, variantList, variantModule, variation };
836
836
  }
837
837
  exports.variantImpl = variantImpl;
838
838
  }
@@ -962,11 +962,11 @@ var require_isOfVariant = __commonJS({
962
962
  function isOfVariantImpl(key) {
963
963
  function isOfVariant3(...args) {
964
964
  if (args.length === 1) {
965
- const [variant4] = args;
966
- return (instance) => instance != void 0 && Object.values(variant4).some((vc) => vc.output.type === instance[key]);
965
+ const [variant3] = args;
966
+ return (instance) => instance != void 0 && Object.values(variant3).some((vc) => vc.output.type === instance[key]);
967
967
  } else if (args.length === 2) {
968
- const [instance, variant4] = args;
969
- return instance != void 0 && Object.values(variant4).some((vc) => vc.output.type === instance[key]);
968
+ const [instance, variant3] = args;
969
+ return instance != void 0 && Object.values(variant3).some((vc) => vc.output.type === instance[key]);
970
970
  }
971
971
  return false;
972
972
  }
@@ -1403,15 +1403,15 @@ var require_typeCatalog = __commonJS({
1403
1403
  init_esm_shims();
1404
1404
  Object.defineProperty(exports, "__esModule", { value: true });
1405
1405
  exports.typeMap = exports.typeCatalog = void 0;
1406
- function typeCatalog(variant4) {
1407
- return Object.values(variant4).reduce((result, vc) => {
1406
+ function typeCatalog(variant3) {
1407
+ return Object.values(variant3).reduce((result, vc) => {
1408
1408
  return Object.assign(Object.assign({}, result), { [vc.output.type]: vc.output.type });
1409
1409
  }, {});
1410
1410
  }
1411
1411
  exports.typeCatalog = typeCatalog;
1412
- function typeMap(variant4) {
1413
- return Object.keys(variant4).reduce((result, key) => {
1414
- return Object.assign(Object.assign({}, result), { [key]: variant4[key].output.type });
1412
+ function typeMap(variant3) {
1413
+ return Object.keys(variant3).reduce((result, key) => {
1414
+ return Object.assign(Object.assign({}, result), { [key]: variant3[key].output.type });
1415
1415
  }, {});
1416
1416
  }
1417
1417
  exports.typeMap = typeMap;
@@ -16564,7 +16564,7 @@ var CliUserErrorCode = (0, import_variant.variant)({
16564
16564
  BuildOutputMissing: (0, import_variant.fields)(),
16565
16565
  FailedToCreateMonitoringVitePlugin: (0, import_variant.fields)(),
16566
16566
  FailedToSyncVeloCLIServerDocumentUpdate: {},
16567
- AppReleaseConfigViolations: (0, import_variant.fields)(),
16567
+ AppReleaseConfigViolations: {},
16568
16568
  ProjectIsAlreadyLinked: {},
16569
16569
  ProjectIsNotLinkable: {},
16570
16570
  MissingPresetCssForSiteComponent: (0, import_variant.fields)(),
@@ -19363,8 +19363,29 @@ init_esm_shims();
19363
19363
 
19364
19364
  // ../cli-astro-definitions/src/definitions.ts
19365
19365
  init_esm_shims();
19366
+ import { join as join6 } from "node:path";
19367
+
19368
+ // ../cli-core-definitions/src/index.ts
19369
+ init_esm_shims();
19366
19370
  import { join as join5 } from "node:path";
19367
- var import_variant9 = __toESM(require_lib(), 1);
19371
+ var GIT_IGNORED_DIR = ".wix";
19372
+ var WIX_CONFIG_FILENAME = "wix.config.json";
19373
+ var USER_CONFIG_FILENAME = "user.config.json";
19374
+ var userConfigSchema = external_exports.object({
19375
+ telemetry: external_exports.boolean().default(true),
19376
+ tunneling: external_exports.boolean().default(false)
19377
+ });
19378
+ function getGitIgnoredPath(projectFolder, ...paths) {
19379
+ return join5(projectFolder, GIT_IGNORED_DIR, ...paths);
19380
+ }
19381
+ function getWixConfigFilePath(projectFolder) {
19382
+ return join5(projectFolder, WIX_CONFIG_FILENAME);
19383
+ }
19384
+ function getDebugLogFilePath(projectFolder) {
19385
+ return getGitIgnoredPath(projectFolder, "debug.log");
19386
+ }
19387
+
19388
+ // ../cli-astro-definitions/src/definitions.ts
19368
19389
  var wixAstroSiteConfigSchema = zod_default.object({
19369
19390
  $schema: zod_default.string().optional(),
19370
19391
  projectType: zod_default.literal("Site").optional().default("Site"),
@@ -19381,9 +19402,8 @@ var wixAstroConfigSchema = zod_default.discriminatedUnion("projectType", [
19381
19402
  wixAstroSiteConfigSchema,
19382
19403
  wixAstroAppConfigSchema
19383
19404
  ]);
19384
- var GIT_IGNORED_DIR = ".wix";
19385
19405
  var ENV_FILE_NAME = ".env.local";
19386
- var TRANSLATIONS_FILE_PATH = join5("src", "translations.json");
19406
+ var TRANSLATIONS_FILE_PATH = join6("src", "translations.json");
19387
19407
  var devMetadataSchema = zod_default.object({
19388
19408
  staticsUrlPlaceholder: zod_default.string(),
19389
19409
  serverUrlPlaceholder: zod_default.string()
@@ -19418,16 +19438,10 @@ var deploymentTopologySchema = zod_default.record(
19418
19438
  deploymentTopologyEnvironmentSchema
19419
19439
  );
19420
19440
  function getEnvFilePath(projectFolder) {
19421
- return join5(projectFolder, ENV_FILE_NAME);
19441
+ return join6(projectFolder, ENV_FILE_NAME);
19422
19442
  }
19423
- var MULTILINGUAL_DIR = join5(GIT_IGNORED_DIR, "multilingual");
19424
- var TRANSLATIONS_DIR = join5(MULTILINGUAL_DIR, "translations");
19425
- var PlatformType = (0, import_variant9.variant)({
19426
- Site: {},
19427
- Editor: {},
19428
- Dashboard: {}
19429
- });
19430
- var DEV_LOG_PATH = join5(GIT_IGNORED_DIR, "dev.log");
19443
+ var MULTILINGUAL_DIR = join6(GIT_IGNORED_DIR, "multilingual");
19444
+ var TRANSLATIONS_DIR = join6(MULTILINGUAL_DIR, "translations");
19431
19445
 
19432
19446
  // ../../node_modules/tempy/index.js
19433
19447
  init_esm_shims();
@@ -19597,6 +19611,10 @@ export {
19597
19611
  readPackageJson,
19598
19612
  writePackageJson,
19599
19613
  updateEnvFile,
19614
+ USER_CONFIG_FILENAME,
19615
+ userConfigSchema,
19616
+ getWixConfigFilePath,
19617
+ getDebugLogFilePath,
19600
19618
  globby,
19601
19619
  require_is_git_url,
19602
19620
  execa,
@@ -19680,4 +19698,4 @@ is-git-url/index.js:
19680
19698
  * Released under the MIT License.
19681
19699
  *)
19682
19700
  */
19683
- //# sourceMappingURL=chunk-CEXXL22E.js.map
19701
+ //# sourceMappingURL=chunk-XLZXEJN4.js.map