create-nanoka-app 1.0.8 → 1.2.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
|
@@ -7,6 +7,13 @@ A Hono + Drizzle + D1 project scaffolded with `create-nanoka-app`.
|
|
|
7
7
|
```bash
|
|
8
8
|
pnpm install
|
|
9
9
|
pnpm exec nanoka generate
|
|
10
|
-
pnpm exec drizzle-kit generate
|
|
11
10
|
pnpm dev
|
|
12
11
|
```
|
|
12
|
+
|
|
13
|
+
`pnpm exec nanoka generate` generates the Drizzle schema from your model definitions. If a `drizzle.config.ts` is present in your project root, it also automatically runs `drizzle-kit generate` to produce SQL migration files.
|
|
14
|
+
|
|
15
|
+
To apply migrations to your local D1 database in one step:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pnpm exec nanoka generate --apply --db <DATABASE_NAME>
|
|
19
|
+
```
|