@wix/create-app 0.0.172 → 0.0.174

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.
@@ -16,12 +16,12 @@ var require_isType = __commonJS({
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.isTypeImpl = void 0;
18
18
  function isTypeImpl(key) {
19
- function isType3(instanceOrType, type) {
19
+ function isType4(instanceOrType, type) {
20
20
  if (instanceOrType != void 0) {
21
21
  if (typeof instanceOrType === "function" || typeof instanceOrType === "string") {
22
22
  const typeArg = instanceOrType;
23
23
  const typeStr = typeof typeArg === "string" ? typeArg : typeArg.output.type;
24
- return (o) => isType3(o, typeStr);
24
+ return (o) => isType4(o, typeStr);
25
25
  } else {
26
26
  const instance = instanceOrType;
27
27
  const typeStr = typeof type === "string" ? type : type.output.type;
@@ -31,7 +31,7 @@ var require_isType = __commonJS({
31
31
  return false;
32
32
  }
33
33
  }
34
- return { isType: isType3 };
34
+ return { isType: isType4 };
35
35
  }
36
36
  exports.isTypeImpl = isTypeImpl;
37
37
  }
@@ -298,13 +298,13 @@ var require_remote = __commonJS({
298
298
  CompareResult2[CompareResult2["Greater"] = 1] = "Greater";
299
299
  })(CompareResult = exports.CompareResult || (exports.CompareResult = {}));
300
300
  function remoteImpl(key) {
301
- const { isType: isType3 } = (0, isType_1.isTypeImpl)(key);
301
+ const { isType: isType4 } = (0, isType_1.isTypeImpl)(key);
302
302
  const { match } = (0, match_1.matchImpl)(key);
303
303
  const { variantList } = (0, variant_1.variantImpl)(key);
304
304
  function isFunctions(vmod) {
305
305
  const keys = Object.keys(vmod);
306
306
  return keys.reduce((acc, key2) => {
307
- return Object.assign(Object.assign({}, acc), { [key2]: isType3(key2) });
307
+ return Object.assign(Object.assign({}, acc), { [key2]: isType4(key2) });
308
308
  }, {});
309
309
  }
310
310
  function remote(vmod) {
@@ -572,11 +572,11 @@ var require_cosmos = __commonJS({
572
572
  var typed_1 = require_typed();
573
573
  var matcher_1 = require_matcher();
574
574
  function variantCosmos({ key }) {
575
- const { isType: isType3 } = (0, isType_1.isTypeImpl)(key);
575
+ const { isType: isType4 } = (0, isType_1.isTypeImpl)(key);
576
576
  const { flags } = (0, flags_1.flagsImpl)(key);
577
577
  return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
578
578
  key,
579
- isType: isType3,
579
+ isType: isType4,
580
580
  flags
581
581
  }, (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));
582
582
  }
@@ -12583,7 +12583,7 @@ var testOverridesSchema = zod_default.object({
12583
12583
  wixCliDependencyVersion: zod_default.string().optional(),
12584
12584
  wixCliAppDependencyVersion: zod_default.string().optional(),
12585
12585
  disableTTY: zod_default.boolean().optional(),
12586
- waitForLoginInterval: zod_default.number().optional(),
12586
+ loginWithDeviceCodeInterval: zod_default.number().optional(),
12587
12587
  registryUrl: zod_default.string().optional(),
12588
12588
  fsCacheDir: zod_default.string().optional(),
12589
12589
  localTunnel: zod_default.boolean().optional(),
@@ -12769,6 +12769,8 @@ var CliSystemErrorCode = (0, import_variant.variant)({
12769
12769
  FailedToParseNextVersion: (0, import_variant.fields)(),
12770
12770
  FailedToDistributeClientManifestUpdate: {},
12771
12771
  FailedToCreateRoutesWithMetaSiteUrl: {},
12772
+ FailedToGetUrl: {},
12773
+ FailedToUpdateExternalSiteUrl: {},
12772
12774
  FailedToGetGitHubOnboardingStatus: (0, import_variant.fields)(),
12773
12775
  FailedToInitGitHubRepository: (0, import_variant.fields)()
12774
12776
  });
@@ -12819,6 +12821,7 @@ var CliUserErrorCode = (0, import_variant.variant)({
12819
12821
  DuplicateComponentIdsError: (0, import_variant.fields)(),
12820
12822
  FailedToSaveDevelopmentSite: (0, import_variant.fields)(),
12821
12823
  FailedToBuildApp: {},
12824
+ FailedToBuildAstroApp: {},
12822
12825
  FailedToInitializeGitRepo: {},
12823
12826
  FailedToInstallDependencies: {},
12824
12827
  FailedToCommitChanges: {},
@@ -12926,15 +12929,25 @@ function isCliSystemError(error) {
12926
12929
  return (0, import_variant2.isOfVariant)(error.cliCode, CliSystemErrorCode);
12927
12930
  }
12928
12931
 
12932
+ // ../cli-error/src/get-unknown-failure-message.ts
12933
+ init_esm_shims();
12934
+ var import_variant3 = __toESM(require_lib(), 1);
12935
+ function getUnknownFailureMessage(error) {
12936
+ if (isCliSystemError(error) && (0, import_variant3.isType)(error.cliCode, CliSystemErrorCode.UnknownFailure) && error.cliCode.error instanceof Error && typeof error.cliCode.error.message === "string") {
12937
+ return error.cliCode.error.message;
12938
+ }
12939
+ return error.message;
12940
+ }
12941
+
12929
12942
  // ../cli-error/src/index.ts
12930
12943
  init_esm_shims();
12931
12944
 
12932
12945
  // ../cli-error/src/normalize-error.ts
12933
12946
  init_esm_shims();
12934
- var import_variant3 = __toESM(require_lib(), 1);
12947
+ var import_variant4 = __toESM(require_lib(), 1);
12935
12948
  var import_verror2 = __toESM(require_verror(), 1);
12936
12949
  function getFirstUserError(error) {
12937
- if (isCliError(error) && (0, import_variant3.isOfVariant)(error.cliCode, CliUserErrorCode)) {
12950
+ if (isCliError(error) && (0, import_variant4.isOfVariant)(error.cliCode, CliUserErrorCode)) {
12938
12951
  return error;
12939
12952
  }
12940
12953
  const nestedError = import_verror2.default.cause(error);
@@ -13022,7 +13035,7 @@ async function outputDir(dir) {
13022
13035
 
13023
13036
  // ../package-manager/src/repo-type.ts
13024
13037
  init_esm_shims();
13025
- var import_variant4 = __toESM(require_lib(), 1);
13038
+ var import_variant5 = __toESM(require_lib(), 1);
13026
13039
  import { join as join2 } from "node:path";
13027
13040
 
13028
13041
  // ../package-manager/src/git-service.ts
@@ -14718,10 +14731,10 @@ async function gitClone(url2, path4, branch) {
14718
14731
  }
14719
14732
 
14720
14733
  // ../package-manager/src/repo-type.ts
14721
- var RepoType = (0, import_variant4.variant)({
14734
+ var RepoType = (0, import_variant5.variant)({
14722
14735
  None: {},
14723
- Polyrepo: (0, import_variant4.fields)(),
14724
- Monorepo: (0, import_variant4.fields)()
14736
+ Polyrepo: (0, import_variant5.fields)(),
14737
+ Monorepo: (0, import_variant5.fields)()
14725
14738
  });
14726
14739
  async function getRepoType(targetParentFolder) {
14727
14740
  if (!await isInsideGitRepo(targetParentFolder)) {
@@ -14745,11 +14758,11 @@ async function isUsingWorkspaces(rootDir) {
14745
14758
  init_esm_shims();
14746
14759
  import { env } from "node:process";
14747
14760
  import { join as join4 } from "node:path";
14748
- var import_variant7 = __toESM(require_lib(), 1);
14761
+ var import_variant8 = __toESM(require_lib(), 1);
14749
14762
 
14750
14763
  // ../package-manager/src/adapters/npm.ts
14751
14764
  init_esm_shims();
14752
- var import_variant5 = __toESM(require_lib(), 1);
14765
+ var import_variant6 = __toESM(require_lib(), 1);
14753
14766
  var NPM = class {
14754
14767
  constructor(repoType) {
14755
14768
  this.repoType = repoType;
@@ -14771,7 +14784,7 @@ var NPM = class {
14771
14784
  };
14772
14785
  }
14773
14786
  async setup(_cwd) {
14774
- if ((0, import_variant5.isType)(this.repoType, RepoType.Monorepo)) {
14787
+ if ((0, import_variant6.isType)(this.repoType, RepoType.Monorepo)) {
14775
14788
  throw new CliError({
14776
14789
  code: CliErrorCode.UnsupportedPackageManagerWorkspaces({
14777
14790
  packageManagerName: this.name
@@ -14817,7 +14830,7 @@ var NPM = class {
14817
14830
 
14818
14831
  // ../package-manager/src/adapters/yarn.ts
14819
14832
  init_esm_shims();
14820
- var import_variant6 = __toESM(require_lib(), 1);
14833
+ var import_variant7 = __toESM(require_lib(), 1);
14821
14834
  import { join as join3, relative as relative2 } from "node:path";
14822
14835
  import { EOL as EOL2 } from "node:os";
14823
14836
  import { writeFile as writeFile2 } from "node:fs/promises";
@@ -14846,7 +14859,7 @@ var Yarn = class {
14846
14859
  };
14847
14860
  }
14848
14861
  async setup(packageFolder) {
14849
- return (0, import_variant6.matcher)(this.repoType).when(["None", "Polyrepo"], async () => {
14862
+ return (0, import_variant7.matcher)(this.repoType).when(["None", "Polyrepo"], async () => {
14850
14863
  if (this.name === "yarn-berry") {
14851
14864
  await writeFile2(join3(packageFolder, "yarn.lock"), "");
14852
14865
  }
@@ -14985,7 +14998,7 @@ async function getPackageManagerName(repoType) {
14985
14998
  cause: null
14986
14999
  });
14987
15000
  };
14988
- return (0, import_variant7.matcher)(repoType).when(RepoType.None, getByEnv).when(
15001
+ return (0, import_variant8.matcher)(repoType).when(RepoType.None, getByEnv).when(
14989
15002
  [RepoType.Polyrepo, RepoType.Monorepo],
14990
15003
  async ({ rootDir }) => {
14991
15004
  const [hasYarnRc, hasYarnLock, hasPackageLock] = await Promise.all([
@@ -15199,7 +15212,7 @@ var import_fast_glob2 = __toESM(require_out4(), 1);
15199
15212
  init_esm_shims();
15200
15213
  import fs from "node:fs";
15201
15214
  import fsPromises from "node:fs/promises";
15202
- async function isType2(fsStatType, statsMethodName, filePath) {
15215
+ async function isType3(fsStatType, statsMethodName, filePath) {
15203
15216
  if (typeof filePath !== "string") {
15204
15217
  throw new TypeError(`Expected a string, got ${typeof filePath}`);
15205
15218
  }
@@ -15226,9 +15239,9 @@ function isTypeSync(fsStatType, statsMethodName, filePath) {
15226
15239
  throw error;
15227
15240
  }
15228
15241
  }
15229
- var isFile = isType2.bind(void 0, "stat", "isFile");
15230
- var isDirectory = isType2.bind(void 0, "stat", "isDirectory");
15231
- var isSymlink = isType2.bind(void 0, "lstat", "isSymbolicLink");
15242
+ var isFile = isType3.bind(void 0, "stat", "isFile");
15243
+ var isDirectory = isType3.bind(void 0, "stat", "isDirectory");
15244
+ var isSymlink = isType3.bind(void 0, "lstat", "isSymbolicLink");
15232
15245
  var isFileSync = isTypeSync.bind(void 0, "statSync", "isFile");
15233
15246
  var isDirectorySync = isTypeSync.bind(void 0, "statSync", "isDirectory");
15234
15247
  var isSymlinkSync = isTypeSync.bind(void 0, "lstatSync", "isSymbolicLink");
@@ -15545,6 +15558,7 @@ export {
15545
15558
  isCliError,
15546
15559
  isCliSystemError,
15547
15560
  normalizeError,
15561
+ getUnknownFailureMessage,
15548
15562
  writeJson,
15549
15563
  readJson,
15550
15564
  pathExists,
@@ -15616,4 +15630,4 @@ queue-microtask/index.js:
15616
15630
  run-parallel/index.js:
15617
15631
  (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
15618
15632
  */
15619
- //# sourceMappingURL=chunk-KLP34UUN.js.map
15633
+ //# sourceMappingURL=chunk-YJZMSH2X.js.map