fix(create-astro): skip Houston on windows until prompts are fixed (#5616)
Co-authored-by: Nate Moore <nate@astro.build>
This commit is contained in:
parent
04feb4b882
commit
61302ab7a0
4 changed files with 13 additions and 5 deletions
5
.changeset/violet-parents-mix.md
Normal file
5
.changeset/violet-parents-mix.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'create-astro': patch
|
||||
---
|
||||
|
||||
Skip Houston on Windows until we can debug the prompt issue
|
|
@ -29,7 +29,7 @@
|
|||
"tsconfigs"
|
||||
],
|
||||
"dependencies": {
|
||||
"@astrojs/cli-kit": "^0.1.4",
|
||||
"@astrojs/cli-kit": "^0.1.6",
|
||||
"chalk": "^5.0.1",
|
||||
"comment-json": "^4.2.3",
|
||||
"execa": "^6.1.0",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -2583,7 +2583,7 @@ importers:
|
|||
|
||||
packages/create-astro:
|
||||
specifiers:
|
||||
'@astrojs/cli-kit': ^0.1.4
|
||||
'@astrojs/cli-kit': ^0.1.6
|
||||
'@types/chai': ^4.3.1
|
||||
'@types/degit': ^2.8.3
|
||||
'@types/mocha': ^9.1.1
|
||||
|
@ -2605,7 +2605,7 @@ importers:
|
|||
which-pm-runs: ^1.1.0
|
||||
yargs-parser: ^21.0.1
|
||||
dependencies:
|
||||
'@astrojs/cli-kit': 0.1.5
|
||||
'@astrojs/cli-kit': 0.1.6
|
||||
chalk: 5.1.2
|
||||
comment-json: 4.2.3
|
||||
execa: 6.1.0
|
||||
|
@ -3960,8 +3960,8 @@ packages:
|
|||
lite-youtube-embed: 0.2.0
|
||||
dev: false
|
||||
|
||||
/@astrojs/cli-kit/0.1.5:
|
||||
resolution: {integrity: sha512-i0eYbGvg6pTz2A5bsMd5QnBTqA7WusXu4YUYzV2x6uPKkiO62TZK1aPK/llGaKaYC3riCVP/qahOK5v/lsrkdA==}
|
||||
/@astrojs/cli-kit/0.1.6:
|
||||
resolution: {integrity: sha512-hC0Z7kh4T5QdtfPJVyZ6qmNCqWFYg67zS64AxPm9Y8QVYfeXOdXfL3PaNPGbNtGmczmYJ7cBn/ImgXd/RTTc5g==}
|
||||
dependencies:
|
||||
chalk: 5.1.2
|
||||
log-update: 5.0.1
|
||||
|
|
Loading…
Reference in a new issue