create-tamagui 1.82.0 → 1.82.2

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/dist/index.js CHANGED
@@ -26350,7 +26350,7 @@ var globby2 = Object.assign(function(patterns, options) {
26350
26350
  // package.json
26351
26351
  var package_default = {
26352
26352
  name: "create-tamagui",
26353
- version: "1.81.4",
26353
+ version: "1.82.1",
26354
26354
  bin: "./run.js",
26355
26355
  main: "dist",
26356
26356
  files: [
@@ -26371,7 +26371,7 @@ var package_default = {
26371
26371
  devDependencies: {
26372
26372
  "@expo/package-manager": "^1.1.2",
26373
26373
  "@playwright/test": "^1.29.0",
26374
- "@tamagui/build": "1.81.4",
26374
+ "@tamagui/build": "1.82.1",
26375
26375
  "@types/async-retry": "1.4.2",
26376
26376
  "@types/cross-spawn": "^6.0.2",
26377
26377
  "@types/node": "^16.11.9",
@@ -31772,14 +31772,14 @@ async function setupTamaguiDotDir(template, isRetry = !1) {
31772
31772
  await (0, import_fs_extra.pathExists)((0, import_path8.join)(targetGitDir, ".git")) || (console.error(`Corrupt Tamagui directory, please delete ${targetGitDir} and re-run`), process.exit(1));
31773
31773
  else {
31774
31774
  console.info("Cloning tamagui base directory"), console.info();
31775
- let sourceGitRepo = template.repo.url, cmd = `git clone --branch ${branch} ${isInSubDir ? "--depth 1 --sparse --filter=blob:none " : ""}${sourceGitRepo} "${targetGitDir}"`;
31775
+ let sourceGitRepo = template.repo.url, sourceGitRepoSshFallback = template.repo.sshFallback, cmd = `git clone --branch ${branch} ${isInSubDir ? "--depth 1 --sparse --filter=blob:none " : ""}${sourceGitRepo} "${targetGitDir}"`;
31776
31776
  try {
31777
31777
  try {
31778
31778
  console.info(`$ ${cmd}`), console.info(), (0, import_child_process.execSync)(cmd);
31779
31779
  } catch (error) {
31780
31780
  if (cmd.includes("https://")) {
31781
31781
  console.info("https failed - trying with ssh now...");
31782
- let sshCmd = cmd.replace("https://", "ssh://");
31782
+ let sshCmd = cmd.replace(sourceGitRepo, sourceGitRepoSshFallback);
31783
31783
  console.info(`$ ${sshCmd}`), console.info(), (0, import_child_process.execSync)(sshCmd);
31784
31784
  } else
31785
31785
  throw error;
@@ -32050,6 +32050,7 @@ var repoRoot = (0, import_path11.join)(__dirname, "..", "..", ".."), starterFree
32050
32050
  packageManager: "yarn",
32051
32051
  repo: {
32052
32052
  url: IS_TEST && starterExists ? `file://${starterFreeRoot}` : "https://github.com/tamagui/starter-free.git",
32053
+ sshFallback: "git@github.com:tamagui/starter-free.git",
32053
32054
  dir: [],
32054
32055
  branch: "main"
32055
32056
  },
@@ -32062,6 +32063,7 @@ var repoRoot = (0, import_path11.join)(__dirname, "..", "..", ".."), starterFree
32062
32063
  hidden: !1,
32063
32064
  repo: {
32064
32065
  url: IS_TEST ? `file://${repoRoot}` : "https://github.com/tamagui/tamagui.git",
32066
+ sshFallback: "git@github.com:tamagui/tamagui.git",
32065
32067
  dir: ["starters", "simple-web"],
32066
32068
  branch: "master"
32067
32069
  },
@@ -32077,6 +32079,7 @@ var repoRoot = (0, import_path11.join)(__dirname, "..", "..", ".."), starterFree
32077
32079
  hidden: !1,
32078
32080
  repo: {
32079
32081
  url: "https://github.com/tamagui/takeout",
32082
+ sshFallback: "git@github.com:tamagui/takeout.git",
32080
32083
  dir: [],
32081
32084
  branch: "main"
32082
32085
  },