create-signet-app 0.9.5 → 0.9.7

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
@@ -180,6 +180,8 @@ same-origin. In dev, Vite proxies `/api` to it. What a fresh app has:
180
180
  that backs signet-server's stores (stored sessions, phone codes, API keys,
181
181
  the notification inbox and prefs, rate limits). drizzle-kit migrations in
182
182
  `drizzle/`, applied on start; signet-payments' tables from `paymentsSchema`.
183
+ The app's CI fails when `drizzle/` is behind the schema, as after a
184
+ signet-db update that adds a column.
183
185
  - **Sign-in.** Phone one-time codes (`requestPhoneOtp`/`verifyPhoneOtp`,
184
186
  rate-limited), stored sessions with fixation protection, sign-out. In
185
187
  development `devSmsSender` prints the code; it refuses staging and production.
@@ -227,7 +227,8 @@ with Approve and Reject.
227
227
  `orgId: text("org_id").notNull()`. <!-- @orgs -->
228
228
  Then run `__PM_RUN__ db:generate`. The migration lands in `drizzle/`;
229
229
  the API applies it on its next start. `__PM_RUN__ db:check` flags migrations
230
- that drop or rename data.
230
+ that drop or rename data. Do the same after updating a package that adds
231
+ a column: CI fails until the migration is committed.
231
232
  2. **Route.** Add a file in `api/routes/` and mount it in `api/app.ts`.
232
233
  <!-- auth:begin -->
233
234
  List its path in `SIGNED_IN` if it needs a user;
@@ -18,5 +18,8 @@ jobs:
18
18
  - run: bun install --frozen-lockfile
19
19
  - run: bun run lint
20
20
  - run: bun run typecheck
21
+ # A package update can add a column. Fails unless drizzle/ already covers the schema. # @api
22
+ - name: No migration missing (else run bun run db:generate and commit drizzle/) # @api
23
+ run: bun run db:generate 2>&1 | tee db-generate.log && grep "No schema changes" db-generate.log # @api
21
24
  - run: bun run test
22
25
  - run: bun run build # @web
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-signet-app",
3
- "version": "0.9.5",
3
+ "version": "0.9.7",
4
4
  "license": "MIT",
5
5
  "description": "Scaffold a Vite + React + Tailwind app wired to Signet.",
6
6
  "keywords": [
@@ -39,8 +39,9 @@
39
39
  ],
40
40
  "scripts": {
41
41
  "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
42
- "test": "bun run test/scaffold.ts && bun run test/scaffold-api.ts && bun run test/scaffold-full.ts && bun run test/scaffold-cli.ts && bun run test/scaffold-extension.ts && bun run test/scaffold-desktop.ts && bun run test/scaffold-mobile.ts && bun run test/describe.ts && bun run test/picker.ts",
42
+ "test": "bun run test/scaffold.ts && bun run test/scaffold-api.ts && bun run test/scaffold-full.ts && bun run test/scaffold-cli.ts && bun run test/scaffold-extension.ts && bun run test/scaffold-desktop.ts && bun run test/scaffold-mobile.ts && bun run test/describe.ts && bun run test/picker.ts && bun run test/ci-migrations.ts",
43
43
  "test:parts": "bun run test/scaffold-parts.ts",
44
+ "test:mix": "bun run test/scaffold-mix.ts",
44
45
  "test:pm": "bun run test/scaffold-pm.ts",
45
46
  "test:runtime": "bun run test/scaffold-runtime.ts"
46
47
  },
package/src/desktop.ts CHANGED
@@ -23,7 +23,7 @@ export const DESKTOP_PKG = {
23
23
  dependencies: {
24
24
  "@dapplelight/signet-lib": "^0.4.1",
25
25
  "@dapplelight/signet-tokens": "^0.4.0",
26
- "@dapplelight/signet-ui": "^0.5.0",
26
+ "@dapplelight/signet-ui": "^0.5.0 || ^0.6.0 || ^0.7.0",
27
27
  "@tauri-apps/api": "^2.0.0",
28
28
  "@tauri-apps/plugin-opener": "^2.0.0",
29
29
  "@tauri-apps/plugin-store": "^2.0.0",
package/src/index.ts CHANGED
@@ -88,10 +88,6 @@ const YARN = "yarn@4.18.1"
88
88
  */
89
89
  const UI_PEERS: Record<string, string> = {
90
90
  "@base-ui/react": ">=1.3.0",
91
- "@radix-ui/react-checkbox": ">=1.0.0",
92
- "@radix-ui/react-dropdown-menu": ">=2.0.0",
93
- "@radix-ui/react-popover": ">=1.0.0",
94
- "@radix-ui/react-tooltip": ">=1.0.0",
95
91
  "@tanstack/react-table": ">=9.0.0",
96
92
  "class-variance-authority": ">=0.0.0",
97
93
  clsx: ">=2.0.0",
@@ -269,7 +265,7 @@ const DEPS = {
269
265
  "@dapplelight/signet-lib": "^0.4.0",
270
266
  "@dapplelight/signet-tokens": "^0.4.0",
271
267
  // LabelsProvider (src/components/signet-labels.tsx) since 0.3.2.
272
- "@dapplelight/signet-ui": "^0.5.0",
268
+ "@dapplelight/signet-ui": "^0.5.0 || ^0.6.0 || ^0.7.0",
273
269
  "@tanstack/react-query": "^5.108.0",
274
270
  "@tanstack/react-router": "^1.170.39",
275
271
  "class-variance-authority": "^0.7.1",
@@ -21,6 +21,9 @@ jobs:
21
21
  - run: bun install --frozen-lockfile
22
22
  - run: bun run lint
23
23
  - run: bun run typecheck
24
+ # A package update can add a column. Fails unless drizzle/ already covers the schema.
25
+ - name: No migration missing (else run bun run db:generate and commit drizzle/)
26
+ run: bun run db:generate 2>&1 | tee db-generate.log && grep "No schema changes" db-generate.log
24
27
  - run: bun run test
25
28
 
26
29
  mobile: