diff options
author | 2021-11-17 16:22:43 -0800 | |
---|---|---|
committer | 2021-11-17 16:22:43 -0800 | |
commit | c2668afed090201b782af9bfd89e57f572fd3061 (patch) | |
tree | f6e12897cae3f60a214c4b78cd6a4d15e5284975 | |
parent | 96d5a942800f8892c2bad89004bc646a4d420c37 (diff) | |
download | astro-c2668afed090201b782af9bfd89e57f572fd3061.tar.gz astro-c2668afed090201b782af9bfd89e57f572fd3061.tar.zst astro-c2668afed090201b782af9bfd89e57f572fd3061.zip |
add create-astro to build:all (#1872)
* add create-astro to build:all
* mark error objects as any, instead of unknown
Diffstat (limited to '')
-rw-r--r-- | .changeset/pre.json | 4 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | packages/create-astro/src/index.ts | 4 |
3 files changed, 3 insertions, 7 deletions
diff --git a/.changeset/pre.json b/.changeset/pre.json index 7c8a70640..05de26cd1 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -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", diff --git a/package.json b/package.json index d4e112a9f..28173b2b6 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/create-astro/src/index.ts b/packages/create-astro/src/index.ts index a4a72f6dc..ce78bfa12 100644 --- a/packages/create-astro/src/index.ts +++ b/packages/create-astro/src/index.ts @@ -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)); |