pagezero 0.6.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -46,5 +46,5 @@
46
46
  "log-symbols": "7.0.1",
47
47
  "ora": "9.0.0"
48
48
  },
49
- "version": "0.6.0"
49
+ "version": "1.0.0"
50
50
  }
@@ -1,5 +1,5 @@
1
1
  import { input } from "@inquirer/prompts"
2
- import { $, file, write } from "bun"
2
+ import { $ } from "bun"
3
3
  import chalk from "chalk"
4
4
  import { spinner } from "../utils"
5
5
 
@@ -26,20 +26,9 @@ export async function init() {
26
26
  $`bun run setup`.quiet().cwd(projectName),
27
27
  )
28
28
 
29
- // Update wrangler.json
30
- await spinner(`updating wrangler.json`, async () => {
31
- const wranglerJson = await file(`${projectName}/wrangler.json`).json()
32
- wranglerJson.name = projectName
33
- wranglerJson.d1_databases[0].database_name = `${projectName}-development`
34
- wranglerJson.env.production.d1_databases[0].database_name = `${projectName}-production`
35
- wranglerJson.env.preview.d1_databases[0].database_name = `${projectName}-preview`
36
- wranglerJson.env.test.d1_databases[0].database_name = `${projectName}-test`
37
- wranglerJson.env.production.d1_databases[0].database_id = "<DATABASE_ID>"
38
- wranglerJson.env.preview.d1_databases[0].database_id = "<DATABASE_ID>"
39
- await write(
40
- `${projectName}/wrangler.json`,
41
- JSON.stringify(wranglerJson, null, 2),
42
- )
29
+ // Configure wrangler.json
30
+ await spinner(`configuring wrangler.json`, async () => {
31
+ await $`bun run setup:wrangler`.quiet().cwd(projectName)
43
32
  })
44
33
 
45
34
  // Initialize git repository