summaryrefslogtreecommitdiff
path: root/packages/create-astro/src/index.ts
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2022-12-16 15:48:03 -0500
committerGravatar GitHub <noreply@github.com> 2022-12-16 15:48:03 -0500
commit61302ab7a09cc4c298c903d725e35355eb069497 (patch)
tree860fe73ee63a4284784a87ef57892e30dc8a65af /packages/create-astro/src/index.ts
parent04feb4b88290a3059f80e588473daafbfea9a3fd (diff)
downloadastro-61302ab7a09cc4c298c903d725e35355eb069497.tar.gz
astro-61302ab7a09cc4c298c903d725e35355eb069497.tar.zst
astro-61302ab7a09cc4c298c903d725e35355eb069497.zip
fix(create-astro): skip Houston on windows until prompts are fixed (#5616)
Co-authored-by: Nate Moore <nate@astro.build>
Diffstat (limited to 'packages/create-astro/src/index.ts')
-rw-r--r--packages/create-astro/src/index.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/create-astro/src/index.ts b/packages/create-astro/src/index.ts
index 9fe81f987..1e934fc9b 100644
--- a/packages/create-astro/src/index.ts
+++ b/packages/create-astro/src/index.ts
@@ -7,6 +7,7 @@ import fs from 'fs';
import { downloadTemplate } from 'giget';
import { bold, dim, green, reset, yellow } from 'kleur/colors';
import ora from 'ora';
+import { platform } from 'os';
import path from 'path';
import prompts from 'prompts';
import detectPackageManager from 'which-pm-runs';
@@ -30,6 +31,8 @@ import { TEMPLATES } from './templates.js';
// fixes the issue so that create-astro now works on all npm version.
const cleanArgv = process.argv.filter((arg) => arg !== '--');
const args = yargs(cleanArgv, { boolean: ['fancy'] });
+// Always skip Houston on Windows (for now)
+if (platform() === 'win32') args.skipHouston = true;
prompts.override(args);
// Enable full unicode support if the `--fancy` flag is passed