create-astroid 0.7.4 → 0.8.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/README.md CHANGED
@@ -58,11 +58,11 @@ pnpm create astroid [directory] [options]
58
58
  cd my-site
59
59
  pnpm install
60
60
  pnpm exec wrangler d1 create <name> # then paste the ids into wrangler.jsonc
61
- pnpm doctor # validates config, bindings, generated files
61
+ pnpm run doctor # validates config, bindings, generated files
62
62
  pnpm dev
63
63
  ```
64
64
 
65
- `pnpm doctor` flags any binding id you haven't filled in yet, plus generated
65
+ `pnpm run doctor` flags any binding id you haven't filled in yet, plus generated
66
66
  files that have drifted from the config.
67
67
 
68
68
  ## How the pieces relate
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
@@ -500,7 +498,7 @@ async function main() {
500
498
  " OWNER_EMAIL=you@example.com pnpm seed:editors",
501
499
  " # develop / ship:",
502
500
  " pnpm dev # astroid dev (regenerates, then astro dev)",
503
- " pnpm doctor # validate config + bindings",
501
+ " pnpm run doctor # validate config + bindings (`run` is required)",
504
502
  " wrangler deploy",
505
503
  "",
506
504
  ].join("\n"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-astroid",
3
- "version": "0.7.4",
3
+ "version": "0.8.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",
35
+ "@louise-toolkit/astro": "^0.2.7",
36
+ "astroidjs": "0.15.0",
36
37
  "better-auth": "^1.7.2",
37
- "louise-toolkit": "^0.31.1",
38
- "astroidjs": "0.14.0"
38
+ "louise-toolkit": "^0.33.0"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=26.0.0"
@@ -99,7 +99,7 @@ editable. Body HTML is sanitized on every save.
99
99
  Once provisioned, shipping changes is just:
100
100
 
101
101
  ```sh
102
- pnpm doctor # validate config, bindings, and generated-file freshness
102
+ pnpm run doctor # validate config, bindings, and generated-file freshness
103
103
  wrangler deploy # or: pnpm astroid deploy
104
104
  ```
105
105
 
@@ -36,8 +36,10 @@ jobs:
36
36
  # Validate the config, bindings, and that the generated
37
37
  # src/schema.ts · src/worker.ts · src/middleware.ts trio is still in sync
38
38
  # with astroid.config.ts. A fast fail before the heavier steps.
39
+ # `run` is load-bearing: `doctor` is a pnpm built-in, so a bare
40
+ # `pnpm doctor` runs pnpm's own self-check and never reaches Astroid's.
39
41
  - name: Doctor
40
- run: pnpm doctor
42
+ run: pnpm run doctor
41
43
 
42
44
  # No-ops on a fresh scaffold; runs automatically once you add a `lint`
43
45
  # script (oxlint/biome) — same for `test` (vitest) further down.
@@ -44,7 +44,7 @@ wrangler kv namespace create DRAFTS
44
44
  ## Deploy
45
45
 
46
46
  ```sh
47
- pnpm doctor # validate config, bindings, and the generated files
47
+ pnpm run doctor # validate config, bindings, and the generated files
48
48
  wrangler deploy
49
49
  ```
50
50
 
@@ -35,11 +35,11 @@
35
35
  "daisyui": "^5.6.18",
36
36
  "drizzle-kit": "^0.31.10",
37
37
  "tailwindcss": "^4.1.0",
38
- "typescript": "^5.9.3",
38
+ "typescript": "^6.0.3",
39
39
  "wrangler": "^4.110.0"
40
40
  },
41
41
  "engines": {
42
42
  "node": ">=24.0.0"
43
43
  },
44
- "packageManager": "pnpm@11.13.0"
44
+ "packageManager": "pnpm@12.6.0"
45
45
  }