Skip to content

Commit 61302ab

Browse files
authored
fix(create-astro): skip Houston on windows until prompts are fixed (#5616)
Co-authored-by: Nate Moore <[email protected]>
1 parent 04feb4b commit 61302ab

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

.changeset/violet-parents-mix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-astro': patch
3+
---
4+
5+
Skip Houston on Windows until we can debug the prompt issue

packages/create-astro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"tsconfigs"
3030
],
3131
"dependencies": {
32-
"@astrojs/cli-kit": "^0.1.4",
32+
"@astrojs/cli-kit": "^0.1.6",
3333
"chalk": "^5.0.1",
3434
"comment-json": "^4.2.3",
3535
"execa": "^6.1.0",

packages/create-astro/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import fs from 'fs';
77
import { downloadTemplate } from 'giget';
88
import { bold, dim, green, reset, yellow } from 'kleur/colors';
99
import ora from 'ora';
10+
import { platform } from 'os';
1011
import path from 'path';
1112
import prompts from 'prompts';
1213
import detectPackageManager from 'which-pm-runs';
@@ -30,6 +31,8 @@ import { TEMPLATES } from './templates.js';
3031
// fixes the issue so that create-astro now works on all npm version.
3132
const cleanArgv = process.argv.filter((arg) => arg !== '--');
3233
const args = yargs(cleanArgv, { boolean: ['fancy'] });
34+
// Always skip Houston on Windows (for now)
35+
if (platform() === 'win32') args.skipHouston = true;
3336
prompts.override(args);
3437

3538
// Enable full unicode support if the `--fancy` flag is passed

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)