summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar 李瑞丰 <liruifeng1024@gmail.com> 2023-02-22 00:33:52 +0800
committerGravatar GitHub <noreply@github.com> 2023-02-21 10:33:52 -0600
commitd0dbee872fd09800fba644ccbf4011ce01149706 (patch)
tree46ec8e5b4fdd390aed32a77e8200b93c29faea05
parentf218188b251ba1740b08db5807fafcfe93c5f2e7 (diff)
downloadastro-d0dbee872fd09800fba644ccbf4011ce01149706.tar.gz
astro-d0dbee872fd09800fba644ccbf4011ce01149706.tar.zst
astro-d0dbee872fd09800fba644ccbf4011ce01149706.zip
`create-astro` help info add `--typescript` flag (#6294)
* create-astro help info add --typescript flag * changeset * changeset
-rw-r--r--.changeset/rare-pumpkins-end.md5
-rw-r--r--packages/create-astro/README.md1
-rw-r--r--packages/create-astro/src/actions/help.ts1
3 files changed, 7 insertions, 0 deletions
diff --git a/.changeset/rare-pumpkins-end.md b/.changeset/rare-pumpkins-end.md
new file mode 100644
index 000000000..c7a48d5f0
--- /dev/null
+++ b/.changeset/rare-pumpkins-end.md
@@ -0,0 +1,5 @@
+---
+'create-astro': patch
+---
+
+`create-astro` help info add `--typescript` flag
diff --git a/packages/create-astro/README.md b/packages/create-astro/README.md
index a7f721d57..0b0c9813c 100644
--- a/packages/create-astro/README.md
+++ b/packages/create-astro/README.md
@@ -47,6 +47,7 @@ May be provided in place of prompts
| `--no` (`-n`) | Skip all prompt by declining defaults. |
| `--dry-run` | Walk through steps without executing. |
| `--skip-houston` | Skip Houston animation. |
+| `--typescript <option>` | TypeScript option: `strict` / `strictest` / `relaxed`. |
[examples]: https://github.com/withastro/astro/tree/main/examples
[typescript]: https://github.com/withastro/astro/tree/main/packages/astro/tsconfigs
diff --git a/packages/create-astro/src/actions/help.ts b/packages/create-astro/src/actions/help.ts
index 3ab4ca8b3..1c972aaca 100644
--- a/packages/create-astro/src/actions/help.ts
+++ b/packages/create-astro/src/actions/help.ts
@@ -14,6 +14,7 @@ export function help() {
['--no (-n)', 'Skip all prompt by declining defaults.'],
['--dry-run', 'Walk through steps without executing.'],
['--skip-houston', 'Skip Houston animation.'],
+ ['--typescript <option>', 'TypeScript option: strict | strictest | relaxed.'],
],
},
});