create-astroid 0.7.5 → 0.9.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/index.mjs CHANGED
@@ -148,9 +148,7 @@ function astroidConfigSource(config) {
148
148
  : []),
149
149
  // Must be emitted, for the same reason the portal is: `astroid generate`
150
150
  // rebuilds the middleware and CSP from THIS file, so a config that dropped
151
- // `modules` would regenerate a project missing whatever they contribute—for
152
- // the map, a policy without `worker-src blob:`, which renders an empty
153
- // canvas with no obvious cause.
151
+ // `modules` would regenerate a project missing whatever they contribute.
154
152
  ...(config.modules?.length ? [` modules: ${JSON.stringify(config.modules)},`] : []),
155
153
  // Must be emitted: `astroid generate` rebuilds the middleware from THIS
156
154
  // file, so a config that omitted the portal would regenerate a middleware
@@ -490,10 +488,8 @@ async function main() {
490
488
  ]
491
489
  : []),
492
490
  ]),
493
- " # provision the Cloudflare bindings, then fill the ids in wrangler.jsonc:",
494
- " wrangler d1 create " + key,
495
- " wrangler r2 bucket create " + key + "-media",
496
- " wrangler kv namespace create RL && wrangler kv namespace create DRAFTS",
491
+ " # create the Cloudflare resources wrangler.jsonc names, filling in their ids:",
492
+ " pnpm exec astroid provision",
497
493
  " # apply migrations, seed the home page + your first editor:",
498
494
  " wrangler d1 migrations apply DB --remote",
499
495
  " wrangler d1 execute DB --remote --file seed/home.seed.sql",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-astroid",
3
- "version": "0.7.5",
3
+ "version": "0.9.0",
4
4
  "description": "Scaffold a new Astroid site — an editable, multi-editor Astro app on Cloudflare Workers — in one command.",
5
5
  "keywords": [
6
6
  "astro",
@@ -32,10 +32,10 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@better-auth/passkey": "^1.7.2",
35
- "@louise-toolkit/astro": "^0.2.3",
36
- "astroidjs": "0.14.0",
35
+ "@louise-toolkit/astro": "^0.2.7",
36
+ "astroidjs": "0.16.0",
37
37
  "better-auth": "^1.7.2",
38
- "louise-toolkit": "^0.31.1"
38
+ "louise-toolkit": "^0.33.0"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=26.0.0"
@@ -50,7 +50,7 @@ pnpm astroid deploy # provision + migrate + secrets + deploy (asks f
50
50
  ```sh
51
51
  wrangler d1 create __KEY__
52
52
  wrangler r2 bucket create __KEY__-media
53
- wrangler kv namespace create RL && wrangler kv namespace create DRAFTS
53
+ wrangler kv namespace create __KEY__-rl && wrangler kv namespace create __KEY__-drafts
54
54
  # paste the printed ids into wrangler.jsonc, then:
55
55
  wrangler secret put SESSION_SECRET # openssl rand -base64 32
56
56
  wrangler d1 migrations apply DB --remote
@@ -29,13 +29,15 @@ edit mode.
29
29
 
30
30
  ## Provisioning (first deploy)
31
31
 
32
- Create the resources, then paste the ids into `wrangler.jsonc`:
32
+ `pnpm exec astroid provision` creates every resource `wrangler.jsonc` still
33
+ names by placeholder and fills in its ID. It asks first; `--dry-run` shows the
34
+ plan. By hand, it's:
33
35
 
34
36
  ```sh
35
37
  wrangler d1 create __KEY__
36
38
  wrangler r2 bucket create __KEY__-media
37
- wrangler kv namespace create RL
38
- wrangler kv namespace create DRAFTS
39
+ wrangler kv namespace create __KEY__-rl
40
+ wrangler kv namespace create __KEY__-drafts
39
41
  ```
40
42
 
41
43
  <!-- Record anything that was NOT obvious: custom domains, DNS, account ids when