mirror of
https://github.com/withastro/astro.git
synced 2025-01-13 22:11:20 -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:
parent
96d5a94280
commit
c2668afed0
3 changed files with 3 additions and 7 deletions
|
@ -39,7 +39,6 @@
|
||||||
"@example/subpath": "0.0.1"
|
"@example/subpath": "0.0.1"
|
||||||
},
|
},
|
||||||
"changesets": [
|
"changesets": [
|
||||||
"beige-hairs-design",
|
|
||||||
"beige-kings-listen",
|
"beige-kings-listen",
|
||||||
"bright-glasses-jump",
|
"bright-glasses-jump",
|
||||||
"curvy-glasses-rest",
|
"curvy-glasses-rest",
|
||||||
|
@ -47,14 +46,11 @@
|
||||||
"dull-bikes-doubt",
|
"dull-bikes-doubt",
|
||||||
"dull-steaks-dance",
|
"dull-steaks-dance",
|
||||||
"giant-shirts-sing",
|
"giant-shirts-sing",
|
||||||
"heavy-boxes-deliver",
|
|
||||||
"little-dogs-help",
|
"little-dogs-help",
|
||||||
"many-donkeys-report",
|
"many-donkeys-report",
|
||||||
"pink-trainers-learn",
|
"pink-trainers-learn",
|
||||||
"polite-ladybugs-train",
|
"polite-ladybugs-train",
|
||||||
"quick-cheetahs-itch",
|
"quick-cheetahs-itch",
|
||||||
"real-cats-act",
|
|
||||||
"serious-knives-hug",
|
|
||||||
"shaggy-guests-type",
|
"shaggy-guests-type",
|
||||||
"silly-apples-build",
|
"silly-apples-build",
|
||||||
"silly-peas-battle",
|
"silly-peas-battle",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"benchmark": "yarn workspace astro run benchmark",
|
"benchmark": "yarn workspace astro run benchmark",
|
||||||
"build": "yarn build:core",
|
"build": "yarn build:core",
|
||||||
"build:one": "lerna run build --scope",
|
"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}\"",
|
"build:core": "lerna run build --scope \"{astro,@astrojs/parser,@astrojs/markdown-remark}\"",
|
||||||
"dev": "yarn dev:core --parallel --stream",
|
"dev": "yarn dev:core --parallel --stream",
|
||||||
"dev:one": "lerna run dev --scope --parallel --stream",
|
"dev:one": "lerna run dev --scope --parallel --stream",
|
||||||
|
|
|
@ -20,7 +20,7 @@ prompts.override(args);
|
||||||
export function mkdirp(dir: string) {
|
export function mkdirp(dir: string) {
|
||||||
try {
|
try {
|
||||||
fs.mkdirSync(dir, { recursive: true });
|
fs.mkdirSync(dir, { recursive: true });
|
||||||
} catch (e) {
|
} catch (e: any) {
|
||||||
if (e.code === 'EEXIST') return;
|
if (e.code === 'EEXIST') return;
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ export async function main() {
|
||||||
// emitter.on('info', info => { console.log(info.message) });
|
// emitter.on('info', info => { console.log(info.message) });
|
||||||
console.log(`${green(`>`)} ${gray(`Copying project files...`)}`);
|
console.log(`${green(`>`)} ${gray(`Copying project files...`)}`);
|
||||||
await emitter.clone(cwd);
|
await emitter.clone(cwd);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
// degit is compiled, so the stacktrace is pretty noisy. Just report the message.
|
// degit is compiled, so the stacktrace is pretty noisy. Just report the message.
|
||||||
console.error(red(err.message));
|
console.error(red(err.message));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue