0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

add create-astro to build:all (#1872)

* add create-astro to build:all

* mark error objects as any, instead of unknown
This commit is contained in:
Fred K. Schott 2021-11-17 16:22:43 -08:00 committed by GitHub
parent 96d5a94280
commit c2668afed0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 7 deletions

View file

@ -39,7 +39,6 @@
"@example/subpath": "0.0.1"
},
"changesets": [
"beige-hairs-design",
"beige-kings-listen",
"bright-glasses-jump",
"curvy-glasses-rest",
@ -47,14 +46,11 @@
"dull-bikes-doubt",
"dull-steaks-dance",
"giant-shirts-sing",
"heavy-boxes-deliver",
"little-dogs-help",
"many-donkeys-report",
"pink-trainers-learn",
"polite-ladybugs-train",
"quick-cheetahs-itch",
"real-cats-act",
"serious-knives-hug",
"shaggy-guests-type",
"silly-apples-build",
"silly-peas-battle",

View file

@ -11,7 +11,7 @@
"benchmark": "yarn workspace astro run benchmark",
"build": "yarn build:core",
"build:one": "lerna run build --scope",
"build:all": "lerna run build --scope \"{astro,@astrojs/*}\"",
"build:all": "lerna run build --scope \"{astro,create-astro,@astrojs/*}\"",
"build:core": "lerna run build --scope \"{astro,@astrojs/parser,@astrojs/markdown-remark}\"",
"dev": "yarn dev:core --parallel --stream",
"dev:one": "lerna run dev --scope --parallel --stream",

View file

@ -20,7 +20,7 @@ prompts.override(args);
export function mkdirp(dir: string) {
try {
fs.mkdirSync(dir, { recursive: true });
} catch (e) {
} catch (e: any) {
if (e.code === 'EEXIST') return;
throw e;
}
@ -102,7 +102,7 @@ export async function main() {
// emitter.on('info', info => { console.log(info.message) });
console.log(`${green(`>`)} ${gray(`Copying project files...`)}`);
await emitter.clone(cwd);
} catch (err) {
} catch (err: any) {
// degit is compiled, so the stacktrace is pretty noisy. Just report the message.
console.error(red(err.message));