summaryrefslogtreecommitdiff
path: root/packages/create-astro/src
diff options
context:
space:
mode:
authorGravatar Miles Pernicious <milespernicious@gmail.com> 2023-02-21 06:48:06 -1000
committerGravatar GitHub <noreply@github.com> 2023-02-21 10:48:06 -0600
commit7f61e8fe36b62a1833180c18b6f4304e9a01fce4 (patch)
tree2163fac6f4fa0ae8886ed9debff0a40b0d4f1bf7 /packages/create-astro/src
parentd0dbee872fd09800fba644ccbf4011ce01149706 (diff)
downloadastro-7f61e8fe36b62a1833180c18b6f4304e9a01fce4.tar.gz
astro-7f61e8fe36b62a1833180c18b6f4304e9a01fce4.tar.zst
astro-7f61e8fe36b62a1833180c18b6f4304e9a01fce4.zip
[create-astro] Execute the 'git' step as the final interaction (#6314)
* [create-astro] Execute the 'git' step as the final interaction This ensures the initialized repository has all configuration changes commited in the first commit * Add changeset
Diffstat (limited to 'packages/create-astro/src')
-rw-r--r--packages/create-astro/src/index.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/packages/create-astro/src/index.ts b/packages/create-astro/src/index.ts
index 5090a6c1c..38c6286f1 100644
--- a/packages/create-astro/src/index.ts
+++ b/packages/create-astro/src/index.ts
@@ -29,7 +29,17 @@ export async function main() {
return;
}
- const steps = [intro, projectName, template, dependencies, git, typescript, next];
+ const steps = [
+ intro,
+ projectName,
+ template,
+ dependencies,
+ typescript,
+
+ // Steps which write to files need to go above git
+ git,
+ next
+ ];
for (const step of steps) {
await step(ctx);