@wix/create-new 0.0.33 → 0.0.35

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.
@@ -711,12 +711,12 @@ var require_isType = __commonJS({
711
711
  Object.defineProperty(exports, "__esModule", { value: true });
712
712
  exports.isTypeImpl = void 0;
713
713
  function isTypeImpl(key) {
714
- function isType3(instanceOrType, type) {
714
+ function isType4(instanceOrType, type) {
715
715
  if (instanceOrType != void 0) {
716
716
  if (typeof instanceOrType === "function" || typeof instanceOrType === "string") {
717
717
  const typeArg = instanceOrType;
718
718
  const typeStr = typeof typeArg === "string" ? typeArg : typeArg.output.type;
719
- return (o) => isType3(o, typeStr);
719
+ return (o) => isType4(o, typeStr);
720
720
  } else {
721
721
  const instance = instanceOrType;
722
722
  const typeStr = typeof type === "string" ? type : type.output.type;
@@ -726,7 +726,7 @@ var require_isType = __commonJS({
726
726
  return false;
727
727
  }
728
728
  }
729
- return { isType: isType3 };
729
+ return { isType: isType4 };
730
730
  }
731
731
  exports.isTypeImpl = isTypeImpl;
732
732
  }
@@ -993,13 +993,13 @@ var require_remote = __commonJS({
993
993
  CompareResult2[CompareResult2["Greater"] = 1] = "Greater";
994
994
  })(CompareResult = exports.CompareResult || (exports.CompareResult = {}));
995
995
  function remoteImpl(key) {
996
- const { isType: isType3 } = (0, isType_1.isTypeImpl)(key);
996
+ const { isType: isType4 } = (0, isType_1.isTypeImpl)(key);
997
997
  const { match } = (0, match_1.matchImpl)(key);
998
998
  const { variantList } = (0, variant_1.variantImpl)(key);
999
999
  function isFunctions(vmod) {
1000
1000
  const keys = Object.keys(vmod);
1001
1001
  return keys.reduce((acc, key2) => {
1002
- return Object.assign(Object.assign({}, acc), { [key2]: isType3(key2) });
1002
+ return Object.assign(Object.assign({}, acc), { [key2]: isType4(key2) });
1003
1003
  }, {});
1004
1004
  }
1005
1005
  function remote(vmod) {
@@ -1267,11 +1267,11 @@ var require_cosmos = __commonJS({
1267
1267
  var typed_1 = require_typed();
1268
1268
  var matcher_1 = require_matcher();
1269
1269
  function variantCosmos({ key }) {
1270
- const { isType: isType3 } = (0, isType_1.isTypeImpl)(key);
1270
+ const { isType: isType4 } = (0, isType_1.isTypeImpl)(key);
1271
1271
  const { flags } = (0, flags_1.flagsImpl)(key);
1272
1272
  return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
1273
1273
  key,
1274
- isType: isType3,
1274
+ isType: isType4,
1275
1275
  flags
1276
1276
  }, (0, isOfVariant_1.isOfVariantImpl)(key)), (0, match_1.matchImpl)(key)), (0, matcher_1.matcherImpl)(key)), (0, remote_1.remoteImpl)(key)), (0, typed_1.typedImpl)(key)), (0, types_1.typesImpl)(key)), (0, variant_1.variantImpl)(key));
1277
1277
  }
@@ -16227,7 +16227,7 @@ var testOverridesSchema = zod_default.object({
16227
16227
  wixCliDependencyVersion: zod_default.string().optional(),
16228
16228
  wixCliAppDependencyVersion: zod_default.string().optional(),
16229
16229
  disableTTY: zod_default.boolean().optional(),
16230
- waitForLoginInterval: zod_default.number().optional(),
16230
+ loginWithDeviceCodeInterval: zod_default.number().optional(),
16231
16231
  registryUrl: zod_default.string().optional(),
16232
16232
  fsCacheDir: zod_default.string().optional(),
16233
16233
  localTunnel: zod_default.boolean().optional(),
@@ -16431,6 +16431,8 @@ var CliSystemErrorCode = (0, import_variant.variant)({
16431
16431
  FailedToParseNextVersion: (0, import_variant.fields)(),
16432
16432
  FailedToDistributeClientManifestUpdate: {},
16433
16433
  FailedToCreateRoutesWithMetaSiteUrl: {},
16434
+ FailedToGetUrl: {},
16435
+ FailedToUpdateExternalSiteUrl: {},
16434
16436
  FailedToGetGitHubOnboardingStatus: (0, import_variant.fields)(),
16435
16437
  FailedToInitGitHubRepository: (0, import_variant.fields)()
16436
16438
  });
@@ -16481,6 +16483,7 @@ var CliUserErrorCode = (0, import_variant.variant)({
16481
16483
  DuplicateComponentIdsError: (0, import_variant.fields)(),
16482
16484
  FailedToSaveDevelopmentSite: (0, import_variant.fields)(),
16483
16485
  FailedToBuildApp: {},
16486
+ FailedToBuildAstroApp: {},
16484
16487
  FailedToInitializeGitRepo: {},
16485
16488
  FailedToInstallDependencies: {},
16486
16489
  FailedToCommitChanges: {},
@@ -16608,6 +16611,16 @@ function normalizeError(error) {
16608
16611
  return firstUserError ?? cliError;
16609
16612
  }
16610
16613
 
16614
+ // ../cli-error/src/get-unknown-failure-message.ts
16615
+ init_esm_shims();
16616
+ var import_variant4 = __toESM(require_lib(), 1);
16617
+ function getUnknownFailureMessage(error) {
16618
+ if (isCliSystemError(error) && (0, import_variant4.isType)(error.cliCode, CliSystemErrorCode.UnknownFailure) && error.cliCode.error instanceof Error && typeof error.cliCode.error.message === "string") {
16619
+ return error.cliCode.error.message;
16620
+ }
16621
+ return error.message;
16622
+ }
16623
+
16611
16624
  // ../cli-fs/src/index.ts
16612
16625
  var import_dotenv = __toESM(require_main(), 1);
16613
16626
 
@@ -16729,7 +16742,7 @@ async function updateEnvFile(target, variables) {
16729
16742
  }
16730
16743
 
16731
16744
  // ../package-manager/src/repo-type.ts
16732
- var import_variant4 = __toESM(require_lib(), 1);
16745
+ var import_variant5 = __toESM(require_lib(), 1);
16733
16746
  import { join as join2 } from "node:path";
16734
16747
 
16735
16748
  // ../package-manager/src/git-service.ts
@@ -18462,10 +18475,10 @@ async function gitGetUserInfo(cwd) {
18462
18475
  }
18463
18476
 
18464
18477
  // ../package-manager/src/repo-type.ts
18465
- var RepoType = (0, import_variant4.variant)({
18478
+ var RepoType = (0, import_variant5.variant)({
18466
18479
  None: {},
18467
- Polyrepo: (0, import_variant4.fields)(),
18468
- Monorepo: (0, import_variant4.fields)()
18480
+ Polyrepo: (0, import_variant5.fields)(),
18481
+ Monorepo: (0, import_variant5.fields)()
18469
18482
  });
18470
18483
  async function getRepoType(targetParentFolder) {
18471
18484
  if (!await isInsideGitRepo(targetParentFolder)) {
@@ -18489,11 +18502,11 @@ async function isUsingWorkspaces(rootDir) {
18489
18502
  init_esm_shims();
18490
18503
  import { env } from "node:process";
18491
18504
  import { join as join4 } from "node:path";
18492
- var import_variant7 = __toESM(require_lib(), 1);
18505
+ var import_variant8 = __toESM(require_lib(), 1);
18493
18506
 
18494
18507
  // ../package-manager/src/adapters/npm.ts
18495
18508
  init_esm_shims();
18496
- var import_variant5 = __toESM(require_lib(), 1);
18509
+ var import_variant6 = __toESM(require_lib(), 1);
18497
18510
  var NPM = class {
18498
18511
  constructor(repoType) {
18499
18512
  this.repoType = repoType;
@@ -18515,7 +18528,7 @@ var NPM = class {
18515
18528
  };
18516
18529
  }
18517
18530
  async setup(_cwd) {
18518
- if ((0, import_variant5.isType)(this.repoType, RepoType.Monorepo)) {
18531
+ if ((0, import_variant6.isType)(this.repoType, RepoType.Monorepo)) {
18519
18532
  throw new CliError({
18520
18533
  code: CliErrorCode.UnsupportedPackageManagerWorkspaces({
18521
18534
  packageManagerName: this.name
@@ -18561,7 +18574,7 @@ var NPM = class {
18561
18574
 
18562
18575
  // ../package-manager/src/adapters/yarn.ts
18563
18576
  init_esm_shims();
18564
- var import_variant6 = __toESM(require_lib(), 1);
18577
+ var import_variant7 = __toESM(require_lib(), 1);
18565
18578
  import { join as join3, relative as relative2 } from "node:path";
18566
18579
  import { EOL as EOL2 } from "node:os";
18567
18580
  import { writeFile as writeFile2 } from "node:fs/promises";
@@ -18590,7 +18603,7 @@ var Yarn = class {
18590
18603
  };
18591
18604
  }
18592
18605
  async setup(packageFolder) {
18593
- return (0, import_variant6.matcher)(this.repoType).when(["None", "Polyrepo"], async () => {
18606
+ return (0, import_variant7.matcher)(this.repoType).when(["None", "Polyrepo"], async () => {
18594
18607
  if (this.name === "yarn-berry") {
18595
18608
  await writeFile2(join3(packageFolder, "yarn.lock"), "");
18596
18609
  }
@@ -18729,7 +18742,7 @@ async function getPackageManagerName(repoType) {
18729
18742
  cause: null
18730
18743
  });
18731
18744
  };
18732
- return (0, import_variant7.matcher)(repoType).when(RepoType.None, getByEnv).when(
18745
+ return (0, import_variant8.matcher)(repoType).when(RepoType.None, getByEnv).when(
18733
18746
  [RepoType.Polyrepo, RepoType.Monorepo],
18734
18747
  async ({ rootDir }) => {
18735
18748
  const [hasYarnRc, hasYarnLock, hasPackageLock] = await Promise.all([
@@ -18953,7 +18966,7 @@ var import_fast_glob2 = __toESM(require_out4(), 1);
18953
18966
  init_esm_shims();
18954
18967
  import fs from "node:fs";
18955
18968
  import fsPromises from "node:fs/promises";
18956
- async function isType2(fsStatType, statsMethodName, filePath) {
18969
+ async function isType3(fsStatType, statsMethodName, filePath) {
18957
18970
  if (typeof filePath !== "string") {
18958
18971
  throw new TypeError(`Expected a string, got ${typeof filePath}`);
18959
18972
  }
@@ -18980,9 +18993,9 @@ function isTypeSync(fsStatType, statsMethodName, filePath) {
18980
18993
  throw error;
18981
18994
  }
18982
18995
  }
18983
- var isFile = isType2.bind(void 0, "stat", "isFile");
18984
- var isDirectory = isType2.bind(void 0, "stat", "isDirectory");
18985
- var isSymlink = isType2.bind(void 0, "lstat", "isSymbolicLink");
18996
+ var isFile = isType3.bind(void 0, "stat", "isFile");
18997
+ var isDirectory = isType3.bind(void 0, "stat", "isDirectory");
18998
+ var isSymlink = isType3.bind(void 0, "lstat", "isSymbolicLink");
18986
18999
  var isFileSync = isTypeSync.bind(void 0, "statSync", "isFile");
18987
19000
  var isDirectorySync = isTypeSync.bind(void 0, "statSync", "isDirectory");
18988
19001
  var isSymlinkSync = isTypeSync.bind(void 0, "lstatSync", "isSymbolicLink");
@@ -19350,7 +19363,7 @@ init_esm_shims();
19350
19363
  // ../cli-astro-definitions/src/definitions.ts
19351
19364
  init_esm_shims();
19352
19365
  import { join as join5 } from "node:path";
19353
- var import_variant8 = __toESM(require_lib(), 1);
19366
+ var import_variant9 = __toESM(require_lib(), 1);
19354
19367
  var wixAstroSiteConfigSchema = zod_default.object({
19355
19368
  $schema: zod_default.string().optional(),
19356
19369
  projectType: zod_default.literal("Site").optional().default("Site"),
@@ -19408,11 +19421,12 @@ function getEnvFilePath(projectFolder) {
19408
19421
  }
19409
19422
  var MULTILINGUAL_DIR = join5(GIT_IGNORED_DIR, "multilingual");
19410
19423
  var TRANSLATIONS_DIR = join5(MULTILINGUAL_DIR, "translations");
19411
- var PlatformType = (0, import_variant8.variant)({
19424
+ var PlatformType = (0, import_variant9.variant)({
19412
19425
  Site: {},
19413
19426
  Editor: {},
19414
19427
  Dashboard: {}
19415
19428
  });
19429
+ var DEV_LOG_PATH = join5(GIT_IGNORED_DIR, "dev.log");
19416
19430
 
19417
19431
  // ../../node_modules/tempy/index.js
19418
19432
  init_esm_shims();
@@ -19570,6 +19584,7 @@ export {
19570
19584
  isCliError,
19571
19585
  isCliSystemError,
19572
19586
  normalizeError,
19587
+ getUnknownFailureMessage,
19573
19588
  external_exports,
19574
19589
  zod_default,
19575
19590
  getTestOverrides,
@@ -19664,4 +19679,4 @@ is-git-url/index.js:
19664
19679
  * Released under the MIT License.
19665
19680
  *)
19666
19681
  */
19667
- //# sourceMappingURL=chunk-4P3PPFXH.js.map
19682
+ //# sourceMappingURL=chunk-A4KF6LJN.js.map