create-tamagui 1.79.7 → 1.79.8
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 +8 -8
- package/dist/index.js.map +2 -2
- package/dist/index.native.js +8 -8
- package/dist/index.native.js.map +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -24924,7 +24924,7 @@ var require_build = __commonJS({
|
|
|
24924
24924
|
});
|
|
24925
24925
|
|
|
24926
24926
|
// src/index.ts
|
|
24927
|
-
var import_child_process3 = require("child_process"),
|
|
24927
|
+
var import_child_process3 = require("child_process"), import_fs15 = __toESM(require("fs")), import_path12 = __toESM(require("path")), import_process = require("process"), import_chalk13 = __toESM(require_source()), import_commander = __toESM(require_commander());
|
|
24928
24928
|
|
|
24929
24929
|
// ../../node_modules/detect-package-manager/dist/index.mjs
|
|
24930
24930
|
var import_fs = require("fs"), import_path = require("path"), import_execa = __toESM(require_execa(), 1);
|
|
@@ -26001,7 +26001,7 @@ var globby2 = Object.assign(function(patterns, options) {
|
|
|
26001
26001
|
// package.json
|
|
26002
26002
|
var package_default = {
|
|
26003
26003
|
name: "create-tamagui",
|
|
26004
|
-
version: "1.79.
|
|
26004
|
+
version: "1.79.7",
|
|
26005
26005
|
bin: "./run.js",
|
|
26006
26006
|
main: "dist",
|
|
26007
26007
|
files: [
|
|
@@ -26022,7 +26022,7 @@ var package_default = {
|
|
|
26022
26022
|
devDependencies: {
|
|
26023
26023
|
"@expo/package-manager": "^0.0.50",
|
|
26024
26024
|
"@playwright/test": "^1.29.0",
|
|
26025
|
-
"@tamagui/build": "1.79.
|
|
26025
|
+
"@tamagui/build": "1.79.7",
|
|
26026
26026
|
"@types/async-retry": "1.4.2",
|
|
26027
26027
|
"@types/cross-spawn": "^6.0.2",
|
|
26028
26028
|
"@types/node": "^16.11.9",
|
|
@@ -31505,7 +31505,7 @@ var getShouldUseGit = async () => IS_TEST || !!(await (0, import_prompts2.defaul
|
|
|
31505
31505
|
var import_prompts4 = __toESM(require_prompts3());
|
|
31506
31506
|
|
|
31507
31507
|
// src/templates.ts
|
|
31508
|
-
var import_path11 = require("path"), import_chalk12 = __toESM(require_source());
|
|
31508
|
+
var import_fs14 = require("fs"), import_path11 = require("path"), import_chalk12 = __toESM(require_source());
|
|
31509
31509
|
|
|
31510
31510
|
// src/steps/simple-web.ts
|
|
31511
31511
|
var import_chalk9 = __toESM(require_source()), packageManager = "yarn", useYarn = packageManager === "yarn", runCommand = (scriptName) => `${packageManager} ${useYarn ? "" : "run "}${scriptName}`, main = async ({ isFullClone, projectName }) => {
|
|
@@ -31691,14 +31691,14 @@ function getEnvFromSupabaseStatus(status) {
|
|
|
31691
31691
|
}
|
|
31692
31692
|
|
|
31693
31693
|
// src/templates.ts
|
|
31694
|
-
var repoRoot = (0, import_path11.join)(__dirname, "..", "..", ".."), starterFreeRoot = (0, import_path11.join)(__dirname, "..", "..", "..", "..", "starter-free"), templates = [
|
|
31694
|
+
var repoRoot = (0, import_path11.join)(__dirname, "..", "..", ".."), starterFreeRoot = (0, import_path11.join)(__dirname, "..", "..", "..", "..", "starter-free"), starterExists = (0, import_fs14.existsSync)(starterFreeRoot), templates = [
|
|
31695
31695
|
{
|
|
31696
31696
|
title: "Free - Production ready base universal app monorepo",
|
|
31697
31697
|
value: "starter-free",
|
|
31698
31698
|
type: "free",
|
|
31699
31699
|
hidden: !1,
|
|
31700
31700
|
repo: {
|
|
31701
|
-
url: IS_TEST ? `file://${starterFreeRoot}` : "https://github.com/tamagui/starter-free.git",
|
|
31701
|
+
url: IS_TEST && starterExists ? `file://${starterFreeRoot}` : "https://github.com/tamagui/starter-free.git",
|
|
31702
31702
|
dir: [],
|
|
31703
31703
|
branch: "main"
|
|
31704
31704
|
},
|
|
@@ -31799,7 +31799,7 @@ Opening Takeout website - once you purchase you can restart the create process.
|
|
|
31799
31799
|
`Could not create a project called ${import_chalk13.default.red(
|
|
31800
31800
|
`"${projectName}"`
|
|
31801
31801
|
)} because of npm naming restrictions:`
|
|
31802
|
-
), problems.forEach((p) => console.error(` ${import_chalk13.default.red.bold("*")} ${p}`)), process.exit(1)),
|
|
31802
|
+
), problems.forEach((p) => console.error(` ${import_chalk13.default.red.bold("*")} ${p}`)), process.exit(1)), import_fs15.default.existsSync(resolvedProjectPath) && (console.info(), console.info(
|
|
31803
31803
|
import_chalk13.default.red("\u{1F6A8} [tamagui] error"),
|
|
31804
31804
|
`You tried to make a project called ${import_chalk13.default.underline(
|
|
31805
31805
|
import_chalk13.default.blueBright(projectName)
|
|
@@ -31808,7 +31808,7 @@ Opening Takeout website - once you purchase you can restart the create process.
|
|
|
31808
31808
|
)}
|
|
31809
31809
|
|
|
31810
31810
|
${import_chalk13.default.bold(import_chalk13.default.red("Please pick a different project name \u{1F978}"))}`
|
|
31811
|
-
), console.info(), console.info(), process.exit(1)), console.info(), console.info(`Creating a new tamagui app ${import_chalk13.default.blueBright(resolvedProjectPath)}...`),
|
|
31811
|
+
), console.info(), console.info(), process.exit(1)), console.info(), console.info(`Creating a new tamagui app ${import_chalk13.default.blueBright(resolvedProjectPath)}...`), import_fs15.default.mkdirSync(resolvedProjectPath), console.info(import_chalk13.default.green(`${projectName} folder created.`));
|
|
31812
31812
|
let shouldGitInit = await getShouldUseGit();
|
|
31813
31813
|
try {
|
|
31814
31814
|
await cloneStarter(template, resolvedProjectPath, projectName), cd(resolvedProjectPath), console.info(), shouldGitInit && await $`git init`;
|