@supatype/cli 0.3.5 → 0.3.6
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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-test.log +162 -161
- package/.turbo/turbo-typecheck.log +1 -1
- package/dist/cli-version-embedded.js +1 -1
- package/dist/type-extractor.d.ts.map +1 -1
- package/dist/type-extractor.js +19 -19
- package/dist/type-extractor.js.map +1 -1
- package/package.json +2 -2
- package/src/cli-version-embedded.ts +1 -1
- package/src/type-extractor.ts +24 -37
- package/tests/type-extractor.test.ts +36 -0
- package/tsconfig.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @supatype/cli@0.3.
|
|
2
|
+
> @supatype/cli@0.3.6 build /home/runner/work/supatype/supatype/packages/cli
|
|
3
3
|
> tsc --project tsconfig.json && node --input-type=module -e "import{cpSync,mkdirSync}from'node:fs';const a='dist/assets';mkdirSync(a,{recursive:true});cpSync('assets/supatype-logo-wordmark.ascii.txt',a+'/supatype-logo-wordmark.ascii.txt')"
|
|
4
4
|
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
> @supatype/cli@0.3.
|
|
2
|
+
> @supatype/cli@0.3.6 test /home/runner/work/supatype/supatype/packages/cli
|
|
3
3
|
> vitest run
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
[1m[46m RUN [49m[22m [36mv4.0.18 [39m[90m/home/runner/work/supatype/supatype/packages/cli[39m
|
|
7
7
|
|
|
8
|
-
[32m✓[39m tests/access-composition.test.ts [2m([22m[2m32 tests[22m[2m)[22m[33m
|
|
9
|
-
[32m✓[39m tests/type-extractor.test.ts [2m([22m[
|
|
10
|
-
[32m✓[39m tests/model-hooks.test.ts [2m([22m[2m23 tests[22m[2m)[22m[32m
|
|
11
|
-
[32m✓[39m tests/runtime-contract.test.ts [2m([22m[2m64 tests[22m[2m)[22m[32m
|
|
12
|
-
[32m✓[39m tests/augmentation-generator.test.ts [2m([22m[2m24 tests[22m[2m)[22m[32m
|
|
13
|
-
[32m✓[39m tests/seed-ir.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m 41[2mms[22m[39m
|
|
8
|
+
[32m✓[39m tests/access-composition.test.ts [2m([22m[2m32 tests[22m[2m)[22m[33m 403[2mms[22m[39m
|
|
9
|
+
[32m✓[39m tests/type-extractor.test.ts [2m([22m[2m52 tests[22m[2m)[22m[33m 586[2mms[22m[39m
|
|
10
|
+
[32m✓[39m tests/model-hooks.test.ts [2m([22m[2m23 tests[22m[2m)[22m[32m 230[2mms[22m[39m
|
|
11
|
+
[32m✓[39m tests/runtime-contract.test.ts [2m([22m[2m64 tests[22m[2m)[22m[32m 240[2mms[22m[39m
|
|
12
|
+
[32m✓[39m tests/augmentation-generator.test.ts [2m([22m[2m24 tests[22m[2m)[22m[32m 57[2mms[22m[39m
|
|
14
13
|
[90mstdout[2m | tests/init.test.ts[2m > [22m[2mscaffold()[2m > [22m[2mcreates all expected files
|
|
15
14
|
[22m[39m created package.json
|
|
16
15
|
created supatype.config.ts
|
|
@@ -61,6 +60,7 @@
|
|
|
61
60
|
created public/.gitkeep
|
|
62
61
|
created .gitignore
|
|
63
62
|
|
|
63
|
+
[32m✓[39m tests/seed-ir.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m 74[2mms[22m[39m
|
|
64
64
|
[90mstdout[2m | tests/init.test.ts[2m > [22m[2mscaffold()[2m > [22m[2m.env contains DATABASE_URL, JWT_SECRET, POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB
|
|
65
65
|
[22m[39m created package.json
|
|
66
66
|
created supatype.config.ts
|
|
@@ -325,32 +325,32 @@
|
|
|
325
325
|
created public/.gitkeep
|
|
326
326
|
created .gitignore
|
|
327
327
|
|
|
328
|
-
[32m✓[39m tests/init.test.ts [2m([22m[2m28 tests[22m[2m)[22m[32m
|
|
329
|
-
[32m✓[39m tests/engine-floor.test.ts [2m([22m[2m28 tests[22m[2m)[22m[32m
|
|
330
|
-
[32m✓[39m tests/external-database-compose.test.ts [2m([22m[2m23 tests[22m[2m)[22m[32m
|
|
331
|
-
[32m✓[39m tests/model-constraints.test.ts [2m([22m[2m18 tests[22m[2m)[22m[32m
|
|
332
|
-
[32m✓[39m tests/model-versions.test.ts [2m([22m[2m19 tests[22m[2m)[22m[32m
|
|
333
|
-
[32m✓[39m tests/api-config-cache-seed.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m
|
|
334
|
-
[32m✓[39m tests/model-cache-declaration.test.ts [2m([22m[2m18 tests[22m[2m)[22m[32m
|
|
335
|
-
[32m✓[39m tests/field-masking-tier.test.ts [2m([22m[2m16 tests[22m[2m)[22m[32m
|
|
336
|
-
[32m✓[39m tests/hooks-generator.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m
|
|
337
|
-
[33m[2m✓[22m[39m typechecks under strict mode, together with a handler that uses it [33m
|
|
338
|
-
[33m[2m✓[22m[39m rejects a handler for a table that declares no hook [33m
|
|
339
|
-
[33m[2m✓[22m[39m typechecks with a validator written the way the docs will show it [33m
|
|
328
|
+
[32m✓[39m tests/init.test.ts [2m([22m[2m28 tests[22m[2m)[22m[32m 186[2mms[22m[39m
|
|
329
|
+
[32m✓[39m tests/engine-floor.test.ts [2m([22m[2m28 tests[22m[2m)[22m[32m 16[2mms[22m[39m
|
|
330
|
+
[32m✓[39m tests/external-database-compose.test.ts [2m([22m[2m23 tests[22m[2m)[22m[32m 27[2mms[22m[39m
|
|
331
|
+
[32m✓[39m tests/model-constraints.test.ts [2m([22m[2m18 tests[22m[2m)[22m[32m 215[2mms[22m[39m
|
|
332
|
+
[32m✓[39m tests/model-versions.test.ts [2m([22m[2m19 tests[22m[2m)[22m[32m 121[2mms[22m[39m
|
|
333
|
+
[32m✓[39m tests/api-config-cache-seed.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m 36[2mms[22m[39m
|
|
334
|
+
[32m✓[39m tests/model-cache-declaration.test.ts [2m([22m[2m18 tests[22m[2m)[22m[32m 87[2mms[22m[39m
|
|
335
|
+
[32m✓[39m tests/field-masking-tier.test.ts [2m([22m[2m16 tests[22m[2m)[22m[32m 19[2mms[22m[39m
|
|
336
|
+
[32m✓[39m tests/hooks-generator.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m 9417[2mms[22m[39m
|
|
337
|
+
[33m[2m✓[22m[39m typechecks under strict mode, together with a handler that uses it [33m 3666[2mms[22m[39m
|
|
338
|
+
[33m[2m✓[22m[39m rejects a handler for a table that declares no hook [33m 3282[2mms[22m[39m
|
|
339
|
+
[33m[2m✓[22m[39m typechecks with a validator written the way the docs will show it [33m 2430[2mms[22m[39m
|
|
340
340
|
|
|
341
|
-
[32m✓[39m tests/dev-ui.test.ts [2m([22m[2m21 tests[22m[2m)[22m[32m
|
|
341
|
+
[32m✓[39m tests/dev-ui.test.ts [2m([22m[2m21 tests[22m[2m)[22m[32m 101[2mms[22m[39m
|
|
342
342
|
|
|
343
343
|
[supatype] Shutting down…
|
|
344
|
-
[32m✓[39m tests/host-database.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m
|
|
345
|
-
[32m✓[39m tests/config.test.ts [2m([22m[2m19 tests[22m[2m)[22m[33m
|
|
346
|
-
[33m[2m✓[22m[39m loads a valid supatype.config.ts (plain export default, no package imports) [33m
|
|
347
|
-
[33m[2m✓[22m[39m normalizes shorthand schema string to { path, pg_schema } [33m
|
|
348
|
-
[33m[2m✓[22m[39m loads a supatype.config.js (plain ESM) [33m
|
|
349
|
-
[33m[2m✓[22m[39m loads config without a versions section (latest by default) [33m
|
|
350
|
-
[33m[2m✓[22m[39m prefers supatype.config.ts over supatype.config.js when both exist [33m
|
|
351
|
-
[33m[2m✓[22m[39m supports optional output field in config [33m
|
|
352
|
-
[33m[2m✓[22m[39m merges supatype.local.config.ts over base [33m
|
|
353
|
-
[33m[2m✓[22m[39m loads defineConfig import before @supatype/cli is installed (init scaffold) [33m
|
|
344
|
+
[32m✓[39m tests/host-database.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m 17[2mms[22m[39m
|
|
345
|
+
[32m✓[39m tests/config.test.ts [2m([22m[2m19 tests[22m[2m)[22m[33m 9669[2mms[22m[39m
|
|
346
|
+
[33m[2m✓[22m[39m loads a valid supatype.config.ts (plain export default, no package imports) [33m 1285[2mms[22m[39m
|
|
347
|
+
[33m[2m✓[22m[39m normalizes shorthand schema string to { path, pg_schema } [33m 1034[2mms[22m[39m
|
|
348
|
+
[33m[2m✓[22m[39m loads a supatype.config.js (plain ESM) [33m 1267[2mms[22m[39m
|
|
349
|
+
[33m[2m✓[22m[39m loads config without a versions section (latest by default) [33m 1348[2mms[22m[39m
|
|
350
|
+
[33m[2m✓[22m[39m prefers supatype.config.ts over supatype.config.js when both exist [33m 965[2mms[22m[39m
|
|
351
|
+
[33m[2m✓[22m[39m supports optional output field in config [33m 1013[2mms[22m[39m
|
|
352
|
+
[33m[2m✓[22m[39m merges supatype.local.config.ts over base [33m 1520[2mms[22m[39m
|
|
353
|
+
[33m[2m✓[22m[39m loads defineConfig import before @supatype/cli is installed (init scaffold) [33m 1220[2mms[22m[39m
|
|
354
354
|
[90mstdout[2m | tests/docker-runtime.test.ts[2m > [22m[2mrequireDockerDaemon[2m > [22m[2mexits when the daemon is unavailable
|
|
355
355
|
[22m[39m
|
|
356
356
|
Start the Docker daemon (e.g. sudo systemctl start docker), then try again.
|
|
@@ -359,30 +359,30 @@
|
|
|
359
359
|
|
|
360
360
|
docker: daemon down
|
|
361
361
|
|
|
362
|
-
[32m✓[39m tests/docker-runtime.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m
|
|
363
|
-
[32m✓[39m tests/db-preflight.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m
|
|
364
|
-
[32m✓[39m tests/dev-db-reset.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m
|
|
365
|
-
[32m✓[39m tests/keys-write.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m
|
|
366
|
-
[32m✓[39m tests/
|
|
367
|
-
|
|
368
|
-
[33m[2m✓[22m[39m
|
|
369
|
-
[33m[2m✓[22m[39m
|
|
370
|
-
|
|
371
|
-
[32m✓[39m tests/functions-deno-types.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m 2587[2mms[22m[39m
|
|
372
|
-
[33m[2m✓[22m[39m tsc fails with Cannot find name Deno without ambient types [33m 1778[2mms[22m[39m
|
|
373
|
-
[33m[2m✓[22m[39m tsc passes for Deno.env after ensureFunctionsDenoTypes [33m 792[2mms[22m[39m
|
|
362
|
+
[32m✓[39m tests/docker-runtime.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 16[2mms[22m[39m
|
|
363
|
+
[32m✓[39m tests/db-preflight.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 13[2mms[22m[39m
|
|
364
|
+
[32m✓[39m tests/dev-db-reset.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 183[2mms[22m[39m
|
|
365
|
+
[32m✓[39m tests/keys-write.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 20[2mms[22m[39m
|
|
366
|
+
[32m✓[39m tests/cache-clean.test.ts [2m([22m[2m8 tests[22m[2m)[22m[33m 2179[2mms[22m[39m
|
|
367
|
+
[33m[2m✓[22m[39m keeps pinned versions and removes the rest [33m 740[2mms[22m[39m
|
|
368
|
+
[33m[2m✓[22m[39m --force removes pinned versions [33m 756[2mms[22m[39m
|
|
369
|
+
[33m[2m✓[22m[39m explicit version removes even when pinned (with warning) [33m 666[2mms[22m[39m
|
|
370
|
+
[32m✓[39m tests/field-bounds.test.ts [2m([22m[2m23 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
374
371
|
[32m✓[39m tests/cache-provider-config.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
375
|
-
[32m✓[39m tests/
|
|
372
|
+
[32m✓[39m tests/functions-deno-types.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m 2845[2mms[22m[39m
|
|
373
|
+
[33m[2m✓[22m[39m tsc fails with Cannot find name Deno without ambient types [33m 2046[2mms[22m[39m
|
|
374
|
+
[33m[2m✓[22m[39m tsc passes for Deno.env after ensureFunctionsDenoTypes [33m 779[2mms[22m[39m
|
|
375
|
+
[32m✓[39m tests/field-bounds-matrix.test.ts [2m([22m[2m124 tests[22m[2m)[22m[32m 28[2mms[22m[39m
|
|
376
376
|
[32m✓[39m tests/external-database-config.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
377
|
-
[32m✓[39m tests/compose-services.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m
|
|
378
|
-
[32m✓[39m tests/adopt-walkthrough.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m
|
|
379
|
-
[32m✓[39m tests/dev-initial-push.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m
|
|
380
|
-
[32m✓[39m tests/field-validators.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m
|
|
381
|
-
[32m✓[39m tests/native-keyspace.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m
|
|
382
|
-
[32m✓[39m tests/db-port.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m
|
|
383
|
-
[32m✓[39m tests/command-chrome-coverage.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m
|
|
377
|
+
[32m✓[39m tests/compose-services.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
378
|
+
[32m✓[39m tests/adopt-walkthrough.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 13[2mms[22m[39m
|
|
379
|
+
[32m✓[39m tests/dev-initial-push.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 25[2mms[22m[39m
|
|
380
|
+
[32m✓[39m tests/field-validators.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 48[2mms[22m[39m
|
|
381
|
+
[32m✓[39m tests/native-keyspace.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 51[2mms[22m[39m
|
|
382
|
+
[32m✓[39m tests/db-port.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 16[2mms[22m[39m
|
|
383
|
+
[32m✓[39m tests/command-chrome-coverage.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
384
384
|
[32m✓[39m tests/hook-upload.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
385
|
-
[32m✓[39m tests/env-file.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m
|
|
385
|
+
[32m✓[39m tests/env-file.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 19[2mms[22m[39m
|
|
386
386
|
[90mstdout[2m | tests/link.test.ts[2m > [22m[2mlink model[2m > [22m[2mmigrates cloud.json into link.json
|
|
387
387
|
[22m[39m created package.json
|
|
388
388
|
created supatype.config.ts
|
|
@@ -396,10 +396,10 @@
|
|
|
396
396
|
[90mstderr[2m | tests/link.test.ts[2m > [22m[2mlink model[2m > [22m[2mmigrates cloud.json into link.json
|
|
397
397
|
[22m[39m[supatype] Migrated .supatype/cloud.json → .supatype/link.json (legacy files kept; remove manually when ready).
|
|
398
398
|
|
|
399
|
-
[32m✓[39m tests/link.test.ts [2m([22m[2m4 tests[22m[2m)[22m[33m
|
|
400
|
-
[33m[2m✓[22m[39m resolveTarget returns cloud mode with /api/v1 prefix [33m
|
|
401
|
-
[33m[2m✓[22m[39m resolveTarget returns self-host mode with /platform/v1 prefix [33m
|
|
402
|
-
[33m[2m✓[22m[39m targetSchemaRollback posts to /platform/v1 when linked [33m
|
|
399
|
+
[32m✓[39m tests/link.test.ts [2m([22m[2m4 tests[22m[2m)[22m[33m 3156[2mms[22m[39m
|
|
400
|
+
[33m[2m✓[22m[39m resolveTarget returns cloud mode with /api/v1 prefix [33m 1100[2mms[22m[39m
|
|
401
|
+
[33m[2m✓[22m[39m resolveTarget returns self-host mode with /platform/v1 prefix [33m 996[2mms[22m[39m
|
|
402
|
+
[33m[2m✓[22m[39m targetSchemaRollback posts to /platform/v1 when linked [33m 1049[2mms[22m[39m
|
|
403
403
|
[90mstdout[2m | tests/admin-ensure.test.ts[2m > [22m[2minit admin seed in .env[2m > [22m[2mwrites SUPATYPE_ADMIN_* when scaffold options include credentials
|
|
404
404
|
[22m[39m created package.json
|
|
405
405
|
created supatype.config.ts
|
|
@@ -410,8 +410,8 @@
|
|
|
410
410
|
created public/.gitkeep
|
|
411
411
|
created .gitignore
|
|
412
412
|
|
|
413
|
-
[32m✓[39m tests/admin-ensure.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m
|
|
414
|
-
[32m✓[39m tests/service-role-check.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m
|
|
413
|
+
[32m✓[39m tests/admin-ensure.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 176[2mms[22m[39m
|
|
414
|
+
[32m✓[39m tests/service-role-check.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
415
415
|
[90mstdout[2m | tests/admin-studio-membership.test.ts[2m > [22m[2mfirst admin user creation[2m > [22m[2mdoes not write a role into app_metadata
|
|
416
416
|
[22m[39m[supatype] Admin user "admin@example.com" created (role: admin).
|
|
417
417
|
[supatype] Log in at /admin after starting the dev server.
|
|
@@ -428,43 +428,43 @@
|
|
|
428
428
|
[22m[39m[supatype] Admin user "admin@example.com" created (role: admin).
|
|
429
429
|
[supatype] Log in at /admin after starting the dev server.
|
|
430
430
|
|
|
431
|
-
[32m✓[39m tests/admin-studio-membership.test.ts [2m([22m[2m5 tests[22m[2m)[22m[33m
|
|
432
|
-
[32m✓[39m tests/pull-utils.test.ts [2m([22m[2m49 tests[22m[2m)[22m[32m
|
|
433
|
-
[32m✓[39m tests/
|
|
434
|
-
[33m[2m✓[22m[39m
|
|
435
|
-
[33m[2m✓[22m[39m
|
|
436
|
-
[33m[2m✓[22m[39m outputs SERVICE_ROLE_KEY= line [33m 1245[2mms[22m[39m
|
|
437
|
-
[33m[2m✓[22m[39m ANON_KEY is a valid three-part JWT [33m 1293[2mms[22m[39m
|
|
438
|
-
[33m[2m✓[22m[39m SERVICE_ROLE_KEY payload has role: service_role [33m 1120[2mms[22m[39m
|
|
439
|
-
[33m[2m✓[22m[39m JWT has exp in the future [33m 1137[2mms[22m[39m
|
|
440
|
-
[33m[2m✓[22m[39m --exp-years changes the expiry window [33m 2593[2mms[22m[39m
|
|
441
|
-
[33m[2m✓[22m[39m reads JWT_SECRET from environment variable [33m 1218[2mms[22m[39m
|
|
442
|
-
[33m[2m✓[22m[39m reads JWT_SECRET from .env file [33m 1282[2mms[22m[39m
|
|
443
|
-
[33m[2m✓[22m[39m exits non-zero when no secret is available [33m 1163[2mms[22m[39m
|
|
444
|
-
[33m[2m✓[22m[39m keys --help shows --secret and --exp-years options [33m 1220[2mms[22m[39m
|
|
431
|
+
[32m✓[39m tests/admin-studio-membership.test.ts [2m([22m[2m5 tests[22m[2m)[22m[33m 397[2mms[22m[39m
|
|
432
|
+
[32m✓[39m tests/pull-utils.test.ts [2m([22m[2m49 tests[22m[2m)[22m[32m 15[2mms[22m[39m
|
|
433
|
+
[32m✓[39m tests/schema-sources.test.ts [2m([22m[2m5 tests[22m[2m)[22m[33m 1180[2mms[22m[39m
|
|
434
|
+
[33m[2m✓[22m[39m buildSchemaSourcesPayload includes manifest metadata [33m 562[2mms[22m[39m
|
|
435
|
+
[33m[2m✓[22m[39m restore overwrites modified local files [33m 578[2mms[22m[39m
|
|
445
436
|
[32m✓[39m tests/preview-config-check.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
446
|
-
[32m✓[39m tests/
|
|
447
|
-
[33m[2m✓[22m[39m
|
|
448
|
-
[33m[2m✓[22m[39m
|
|
437
|
+
[32m✓[39m tests/keys.test.ts [2m([22m[2m11 tests[22m[2m)[22m[33m 17167[2mms[22m[39m
|
|
438
|
+
[33m[2m✓[22m[39m exits 0 with --secret [33m 1421[2mms[22m[39m
|
|
439
|
+
[33m[2m✓[22m[39m outputs ANON_KEY= line [33m 1469[2mms[22m[39m
|
|
440
|
+
[33m[2m✓[22m[39m outputs SERVICE_ROLE_KEY= line [33m 1314[2mms[22m[39m
|
|
441
|
+
[33m[2m✓[22m[39m ANON_KEY is a valid three-part JWT [33m 1458[2mms[22m[39m
|
|
442
|
+
[33m[2m✓[22m[39m SERVICE_ROLE_KEY payload has role: service_role [33m 1318[2mms[22m[39m
|
|
443
|
+
[33m[2m✓[22m[39m JWT has exp in the future [33m 1512[2mms[22m[39m
|
|
444
|
+
[33m[2m✓[22m[39m --exp-years changes the expiry window [33m 2894[2mms[22m[39m
|
|
445
|
+
[33m[2m✓[22m[39m reads JWT_SECRET from environment variable [33m 1392[2mms[22m[39m
|
|
446
|
+
[33m[2m✓[22m[39m reads JWT_SECRET from .env file [33m 1564[2mms[22m[39m
|
|
447
|
+
[33m[2m✓[22m[39m exits non-zero when no secret is available [33m 1410[2mms[22m[39m
|
|
448
|
+
[33m[2m✓[22m[39m keys --help shows --secret and --exp-years options [33m 1409[2mms[22m[39m
|
|
449
449
|
[90mstderr[2m | tests/binary-cache-cloud-overrides.test.ts[2m > [22m[2misLinkedToCloudProject[2m > [22m[2mis true when .supatype/cloud.json has projectSlug
|
|
450
450
|
[22m[39m[supatype] Migrated .supatype/cloud.json → .supatype/link.json (legacy files kept; remove manually when ready).
|
|
451
451
|
|
|
452
|
-
[32m✓[39m tests/binary-cache-cloud-overrides.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m
|
|
453
|
-
[32m✓[39m tests/homebrew-formula.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
454
|
-
[32m✓[39m tests/
|
|
455
|
-
[32m✓[39m tests/
|
|
456
|
-
[32m✓[39m tests/minisign.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m
|
|
452
|
+
[32m✓[39m tests/binary-cache-cloud-overrides.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 13[2mms[22m[39m
|
|
453
|
+
[32m✓[39m tests/homebrew-formula.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 226[2mms[22m[39m
|
|
454
|
+
[32m✓[39m tests/local-server-image-env.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
455
|
+
[32m✓[39m tests/model-cache-manifest.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
456
|
+
[32m✓[39m tests/minisign.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 15[2mms[22m[39m
|
|
457
|
+
[32m✓[39m tests/client-generator.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
457
458
|
[32m✓[39m tests/local-secrets.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
458
|
-
[32m✓[39m tests/client-generator.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
459
459
|
[32m✓[39m tests/functions-concurrency.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
460
|
-
[32m✓[39m tests/readiness-poll.test.ts [2m([22m[2m3 tests[22m[2m)[22m[33m
|
|
461
|
-
[33m[2m✓[22m[39m ends promptly when it carries a deadline [33m
|
|
462
|
-
[32m✓[39m tests/ast-derived-outputs.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m
|
|
463
|
-
[32m✓[39m tests/
|
|
464
|
-
[32m✓[39m tests/
|
|
460
|
+
[32m✓[39m tests/readiness-poll.test.ts [2m([22m[2m3 tests[22m[2m)[22m[33m 329[2mms[22m[39m
|
|
461
|
+
[33m[2m✓[22m[39m ends promptly when it carries a deadline [33m 320[2mms[22m[39m
|
|
462
|
+
[32m✓[39m tests/ast-derived-outputs.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
463
|
+
[32m✓[39m tests/functions-context-refresh.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
464
|
+
[32m✓[39m tests/self-host-keys.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
465
465
|
[32m✓[39m tests/engine-push-output.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
466
|
-
[32m✓[39m tests/db-published-and-addressable.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
467
|
-
[32m✓[39m tests/gitignore-secrets.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m
|
|
466
|
+
[32m✓[39m tests/db-published-and-addressable.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
467
|
+
[32m✓[39m tests/gitignore-secrets.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 80[2mms[22m[39m
|
|
468
468
|
[32m✓[39m tests/api-schemas.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
469
469
|
[90mstdout[2m | tests/storage-provision.test.ts[2m > [22m[2mprovisionBuckets[2m > [22m[2mPOSTs each bucket to the storage API
|
|
470
470
|
[22m[39m[supatype] Storage bucket "photos" ready.
|
|
@@ -472,35 +472,35 @@
|
|
|
472
472
|
[90mstdout[2m | tests/storage-provision.test.ts[2m > [22m[2mprovisionBuckets[2m > [22m[2mPOSTs each bucket to the storage API
|
|
473
473
|
[22m[39m[supatype] Storage bucket "avatars" ready.
|
|
474
474
|
|
|
475
|
-
[32m✓[39m tests/storage-provision.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m
|
|
476
|
-
[32m✓[39m tests/strict.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m
|
|
477
|
-
[32m✓[39m tests/cached-artifact-format.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m
|
|
478
|
-
[32m✓[39m tests/
|
|
479
|
-
|
|
480
|
-
[33m[2m✓[22m[39m
|
|
481
|
-
[33m[2m✓[22m[39m
|
|
482
|
-
[33m[2m✓[22m[39m
|
|
483
|
-
|
|
484
|
-
[32m✓[39m tests/
|
|
485
|
-
[32m✓[39m tests/
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
[33m[2m✓[22m[39m --help
|
|
489
|
-
[33m[2m✓[22m[39m --
|
|
490
|
-
[33m[2m✓[22m[39m
|
|
491
|
-
[33m[2m✓[22m[39m
|
|
492
|
-
[33m[2m✓[22m[39m
|
|
493
|
-
[33m[2m✓[22m[39m
|
|
494
|
-
[33m[2m✓[22m[39m
|
|
495
|
-
[33m[2m✓[22m[39m
|
|
496
|
-
[33m[2m✓[22m[39m
|
|
497
|
-
[33m[2m✓[22m[39m
|
|
498
|
-
[33m[2m✓[22m[39m
|
|
499
|
-
[33m[2m✓[22m[39m
|
|
500
|
-
[33m[2m✓[22m[39m
|
|
501
|
-
[33m[2m✓[22m[39m
|
|
502
|
-
|
|
503
|
-
|
|
475
|
+
[32m✓[39m tests/storage-provision.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
476
|
+
[32m✓[39m tests/strict.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
477
|
+
[32m✓[39m tests/cached-artifact-format.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 13[2mms[22m[39m
|
|
478
|
+
[32m✓[39m tests/proxy-dev-app.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
479
|
+
[32m✓[39m tests/host-connection-targets.test.ts [2m([22m[2m4 tests[22m[2m)[22m[33m 2580[2mms[22m[39m
|
|
480
|
+
[33m[2m✓[22m[39m connects direct mode to the host-published database, not the container (#85) [33m 634[2mms[22m[39m
|
|
481
|
+
[33m[2m✓[22m[39m does the same for the local target used when there is no service key [33m 575[2mms[22m[39m
|
|
482
|
+
[33m[2m✓[22m[39m reads the project's .env for doctor and pull, not only the process environment [33m 711[2mms[22m[39m
|
|
483
|
+
[33m[2m✓[22m[39m still takes --connection over everything [33m 659[2mms[22m[39m
|
|
484
|
+
[32m✓[39m tests/cache-identity-scope.test.ts [2m([22m[2m33 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
485
|
+
[32m✓[39m tests/cli-help.test.ts [2m([22m[2m16 tests[22m[2m)[22m[33m 21902[2mms[22m[39m
|
|
486
|
+
[33m[2m✓[22m[39m --help lists all top-level commands [33m 1394[2mms[22m[39m
|
|
487
|
+
[33m[2m✓[22m[39m --version prints package.json version [33m 1395[2mms[22m[39m
|
|
488
|
+
[33m[2m✓[22m[39m self-update --help describes the command [33m 1382[2mms[22m[39m
|
|
489
|
+
[33m[2m✓[22m[39m init --help describes the init command [33m 1317[2mms[22m[39m
|
|
490
|
+
[33m[2m✓[22m[39m push --help describes the push command and --yes flag [33m 1322[2mms[22m[39m
|
|
491
|
+
[33m[2m✓[22m[39m diff --help describes the diff command [33m 1336[2mms[22m[39m
|
|
492
|
+
[33m[2m✓[22m[39m pull --help describes scaffold pull command [33m 1355[2mms[22m[39m
|
|
493
|
+
[33m[2m✓[22m[39m doctor --help describes drift report command [33m 1469[2mms[22m[39m
|
|
494
|
+
[33m[2m✓[22m[39m introspect --help describes database introspection command [33m 1425[2mms[22m[39m
|
|
495
|
+
[33m[2m✓[22m[39m adopt --help describes adoption ceremony command [33m 1345[2mms[22m[39m
|
|
496
|
+
[33m[2m✓[22m[39m reset --help shows --yes flag [33m 1490[2mms[22m[39m
|
|
497
|
+
[33m[2m✓[22m[39m app --help describes the app command with add/remove subcommands [33m 1291[2mms[22m[39m
|
|
498
|
+
[33m[2m✓[22m[39m app add --help shows --static and --port options [33m 1197[2mms[22m[39m
|
|
499
|
+
[33m[2m✓[22m[39m self-host --help shows compose only (legacy commands hidden) [33m 1345[2mms[22m[39m
|
|
500
|
+
[33m[2m✓[22m[39m self-host compose --help shows compose subcommands [33m 1352[2mms[22m[39m
|
|
501
|
+
[33m[2m✓[22m[39m unknown command exits non-zero [33m 1477[2mms[22m[39m
|
|
502
|
+
[32m✓[39m tests/target-client-refresh.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
503
|
+
[32m✓[39m tests/studio-admin-roles.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
504
504
|
[90mstdout[2m | tests/app-command.test.ts[2m > [22m[2msupatype app add --static[2m > [22m[2msets app.mode=static and static_dir in supatype.config.ts
|
|
505
505
|
[22m[39m created package.json
|
|
506
506
|
created supatype.config.ts
|
|
@@ -511,13 +511,13 @@
|
|
|
511
511
|
created public/.gitkeep
|
|
512
512
|
created .gitignore
|
|
513
513
|
|
|
514
|
-
[32m✓[39m tests/compose-parsable-defaults.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
515
|
-
[32m✓[39m tests/rest-cache-admin.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m
|
|
516
|
-
[32m✓[39m tests/init-dependency-versions.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
517
|
-
[32m✓[39m tests/service-role-routes.test.ts [2m([22m[2m4 tests[22m[2m)[22m[33m
|
|
518
|
-
[33m[2m✓[22m[39m reads the declared list [33m
|
|
519
|
-
[33m[2m✓[22m[39m is an empty list when a project declares none [33m
|
|
520
|
-
[33m[2m✓[22m[39m sends what the project declared, hook entries included [33m
|
|
514
|
+
[32m✓[39m tests/compose-parsable-defaults.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
515
|
+
[32m✓[39m tests/rest-cache-admin.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 49[2mms[22m[39m
|
|
516
|
+
[32m✓[39m tests/init-dependency-versions.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 51[2mms[22m[39m
|
|
517
|
+
[32m✓[39m tests/service-role-routes.test.ts [2m([22m[2m4 tests[22m[2m)[22m[33m 1835[2mms[22m[39m
|
|
518
|
+
[33m[2m✓[22m[39m reads the declared list [33m 619[2mms[22m[39m
|
|
519
|
+
[33m[2m✓[22m[39m is an empty list when a project declares none [33m 616[2mms[22m[39m
|
|
520
|
+
[33m[2m✓[22m[39m sends what the project declared, hook entries included [33m 596[2mms[22m[39m
|
|
521
521
|
[90mstdout[2m | tests/app-command.test.ts[2m > [22m[2msupatype app add --static[2m > [22m[2mcreates the static directory when missing
|
|
522
522
|
[22m[39m created package.json
|
|
523
523
|
created supatype.config.ts
|
|
@@ -528,55 +528,56 @@
|
|
|
528
528
|
created public/.gitkeep
|
|
529
529
|
created .gitignore
|
|
530
530
|
|
|
531
|
-
[32m✓[39m tests/type-resolver.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
532
|
-
[32m✓[39m tests/app-command.test.ts [2m([22m[2m2 tests[22m[2m)[22m[33m
|
|
533
|
-
[33m[2m✓[22m[39m sets app.mode=static and static_dir in supatype.config.ts [33m
|
|
534
|
-
[33m[2m✓[22m[39m creates the static directory when missing [33m
|
|
535
|
-
[32m✓[39m tests/command-chrome-wrap.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m
|
|
536
|
-
[32m✓[39m tests/cli-install-method.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m
|
|
537
|
-
[32m✓[39m tests/port-in-use.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
538
|
-
[32m✓[39m tests/
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
[32m✓[39m tests/tsx-runner.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m 2668[2mms[22m[39m
|
|
543
|
-
[33m[2m✓[22m[39m evaluates TypeScript syntax (type annotations) [33m 365[2mms[22m[39m
|
|
544
|
-
[33m[2m✓[22m[39m can serialize a JSON object to stdout [33m 391[2mms[22m[39m
|
|
531
|
+
[32m✓[39m tests/type-resolver.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 15[2mms[22m[39m
|
|
532
|
+
[32m✓[39m tests/app-command.test.ts [2m([22m[2m2 tests[22m[2m)[22m[33m 3058[2mms[22m[39m
|
|
533
|
+
[33m[2m✓[22m[39m sets app.mode=static and static_dir in supatype.config.ts [33m 1512[2mms[22m[39m
|
|
534
|
+
[33m[2m✓[22m[39m creates the static directory when missing [33m 1544[2mms[22m[39m
|
|
535
|
+
[32m✓[39m tests/command-chrome-wrap.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
536
|
+
[32m✓[39m tests/cli-install-method.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
537
|
+
[32m✓[39m tests/port-in-use.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 33[2mms[22m[39m
|
|
538
|
+
[32m✓[39m tests/tsx-runner.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m 3053[2mms[22m[39m
|
|
539
|
+
[33m[2m✓[22m[39m evaluates a simple expression and returns stdout [33m 362[2mms[22m[39m
|
|
540
|
+
[33m[2m✓[22m[39m evaluates TypeScript syntax (type annotations) [33m 432[2mms[22m[39m
|
|
541
|
+
[33m[2m✓[22m[39m can serialize a JSON object to stdout [33m 409[2mms[22m[39m
|
|
545
542
|
[33m[2m✓[22m[39m returns non-zero exit code on syntax error [33m 401[2mms[22m[39m
|
|
546
|
-
[33m[2m✓[22m[39m returns non-zero exit code on runtime error [33m
|
|
547
|
-
[33m[2m✓[22m[39m captures stderr separately from stdout [33m
|
|
548
|
-
[33m[2m✓[22m[39m runs a .ts file and returns its stdout [33m
|
|
549
|
-
[32m✓[39m tests/
|
|
550
|
-
[32m✓[39m tests/
|
|
551
|
-
[32m✓[39m tests/
|
|
543
|
+
[33m[2m✓[22m[39m returns non-zero exit code on runtime error [33m 429[2mms[22m[39m
|
|
544
|
+
[33m[2m✓[22m[39m captures stderr separately from stdout [33m 412[2mms[22m[39m
|
|
545
|
+
[33m[2m✓[22m[39m runs a .ts file and returns its stdout [33m 604[2mms[22m[39m
|
|
546
|
+
[32m✓[39m tests/archive-name-alias.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
547
|
+
[32m✓[39m tests/ensure-binary.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
548
|
+
[32m✓[39m tests/doctor-render.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
549
|
+
[32m✓[39m tests/init-project-detect.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 16[2mms[22m[39m
|
|
550
|
+
[32m✓[39m tests/doctor-service-role.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
551
|
+
[32m✓[39m tests/required-host-components.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
552
|
+
[32m✓[39m tests/dev-ports-owner.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
553
|
+
[32m✓[39m tests/retired-no-cache.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
552
554
|
[32m✓[39m tests/ui-messages.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
553
|
-
[32m✓[39m tests/
|
|
554
|
-
[32m✓[39m tests/
|
|
555
|
-
[32m✓[39m tests/
|
|
556
|
-
[32m✓[39m tests/docker-postgres.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
555
|
+
[32m✓[39m tests/normalize-admin-config.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 18[2mms[22m[39m
|
|
556
|
+
[32m✓[39m tests/ui-confirm.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
557
|
+
[32m✓[39m tests/docker-postgres.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
557
558
|
[32m✓[39m tests/binary-download-lock.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
558
559
|
[32m✓[39m tests/dev-session-lock.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
559
560
|
[32m✓[39m tests/dev-ports.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
560
|
-
[32m✓[39m tests/
|
|
561
|
-
|
|
562
|
-
[33m[2m✓[22m[39m
|
|
563
|
-
|
|
564
|
-
[32m✓[39m tests/dev-ready-panel.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
565
|
-
[32m✓[39m tests/realtime-launch.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m
|
|
566
|
-
[32m✓[39m tests/release-pins.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
567
|
-
[32m✓[39m tests/seed-discover.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
561
|
+
[32m✓[39m tests/config-load-failure.test.ts [2m([22m[2m2 tests[22m[2m)[22m[33m 3612[2mms[22m[39m
|
|
562
|
+
[33m[2m✓[22m[39m is reported, rather than treated as absent [33m 2032[2mms[22m[39m
|
|
563
|
+
[33m[2m✓[22m[39m does not stop the CLI working with no config at all [33m 1578[2mms[22m[39m
|
|
564
|
+
[32m✓[39m tests/route-manifest.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
565
|
+
[32m✓[39m tests/dev-ready-panel.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
566
|
+
[32m✓[39m tests/realtime-launch.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
567
|
+
[32m✓[39m tests/release-pins.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
568
|
+
[32m✓[39m tests/seed-discover.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 20[2mms[22m[39m
|
|
568
569
|
[32m✓[39m tests/ensure-dev-api-config.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
569
|
-
[32m✓[39m tests/adopt-result.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
570
|
+
[32m✓[39m tests/adopt-result.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
570
571
|
[32m✓[39m tests/init-package-json.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
571
|
-
[32m✓[39m tests/
|
|
572
|
-
[32m✓[39m tests/resolve-api-url.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
572
|
+
[32m✓[39m tests/resolve-api-url.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
573
573
|
[32m✓[39m tests/migrate-from-v1.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
574
|
+
[32m✓[39m tests/pg-spawn-env.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
574
575
|
[32m✓[39m tests/cli-package-version.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
575
576
|
[32m✓[39m tests/postgres-archive-tag.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
576
577
|
[32m✓[39m tests/stdin-after-ink.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
577
578
|
|
|
578
579
|
[2m Test Files [22m [1m[32m110 passed[39m[22m[90m (110)[39m
|
|
579
|
-
[2m Tests [22m [1m[
|
|
580
|
-
[2m Start at [22m
|
|
581
|
-
[2m Duration [22m
|
|
580
|
+
[2m Tests [22m [1m[32m1161 passed[39m[22m[90m (1161)[39m
|
|
581
|
+
[2m Start at [22m 20:59:12
|
|
582
|
+
[2m Duration [22m 59.72s[2m (transform 9.76s, setup 0ms, import 68.59s, tests 86.38s, environment 19ms)[22m
|
|
582
583
|
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
// Annotated `string`, not left to inference: once a release stamps a value here, the
|
|
10
10
|
// inferred literal type makes the `!== ""` test in cliPackageVersion() a compile error
|
|
11
11
|
// (TS2367, no overlap), so the build would only fail during a release.
|
|
12
|
-
export const EMBEDDED_CLI_VERSION = "0.3.
|
|
12
|
+
export const EMBEDDED_CLI_VERSION = "0.3.6";
|
|
13
13
|
//# sourceMappingURL=cli-version-embedded.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-extractor.d.ts","sourceRoot":"","sources":["../src/type-extractor.ts"],"names":[],"mappings":"AAeA,OAAO,EAOL,KAAK,oBAAoB,EAM1B,MAAM,oBAAoB,CAAA;AAG3B,YAAY,EAAE,oBAAoB,IAAI,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAM/G,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,EAClB,GAAG,GAAE,MAAsB,GAC1B,oBAAoB,GAAG,IAAI,CAoI7B;AAED,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,gBAAgB,EAAE,CAAA;CAC1B;AAED,wBAAgB,wBAAwB,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,iBAAiB,CA4BrG;
|
|
1
|
+
{"version":3,"file":"type-extractor.d.ts","sourceRoot":"","sources":["../src/type-extractor.ts"],"names":[],"mappings":"AAeA,OAAO,EAOL,KAAK,oBAAoB,EAM1B,MAAM,oBAAoB,CAAA;AAG3B,YAAY,EAAE,oBAAoB,IAAI,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAM/G,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,EAClB,GAAG,GAAE,MAAsB,GAC1B,oBAAoB,GAAG,IAAI,CAoI7B;AAED,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,gBAAgB,EAAE,CAAA;CAC1B;AAED,wBAAgB,wBAAwB,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,iBAAiB,CA4BrG;AAshGD,8EAA8E;AAC9E,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf"}
|
package/dist/type-extractor.js
CHANGED
|
@@ -1042,10 +1042,7 @@ function parseAccessModeLiteral(typeNode, sourceFile) {
|
|
|
1042
1042
|
return undefined;
|
|
1043
1043
|
}
|
|
1044
1044
|
function parseSizeStringLiteral(typeNode, sourceFile) {
|
|
1045
|
-
|
|
1046
|
-
return typeNode.literal.text;
|
|
1047
|
-
}
|
|
1048
|
-
return stripQuotes(typeNode.getText(sourceFile)) || undefined;
|
|
1045
|
+
return literalStringType(typeNode) ?? (stripQuotes(typeNode.getText(sourceFile)) || undefined);
|
|
1049
1046
|
}
|
|
1050
1047
|
function parseJsonStringLiteral(typeNode, sourceFile) {
|
|
1051
1048
|
return parseSizeStringLiteral(typeNode, sourceFile);
|
|
@@ -1288,10 +1285,7 @@ function resolveBucketName(typeArg, sourceFile, bucketAliases, fallback) {
|
|
|
1288
1285
|
if (ts.isTypeReferenceNode(typeArg) && ts.isIdentifier(typeArg.typeName)) {
|
|
1289
1286
|
return bucketAliases.get(typeArg.typeName.text) ?? typeArg.typeName.text;
|
|
1290
1287
|
}
|
|
1291
|
-
|
|
1292
|
-
return typeArg.literal.text;
|
|
1293
|
-
}
|
|
1294
|
-
return typeArg.getText(sourceFile).replace(/^['"]|['"]$/g, "") || fallback;
|
|
1288
|
+
return literalStringType(typeArg) ?? (typeArg.getText(sourceFile).replace(/^['"]|['"]$/g, "") || fallback);
|
|
1295
1289
|
}
|
|
1296
1290
|
function isBooleanLiteralType(typeNode, value) {
|
|
1297
1291
|
if (value) {
|
|
@@ -1392,7 +1386,7 @@ function parseMetaLiteral(metaArg, sourceFile) {
|
|
|
1392
1386
|
}
|
|
1393
1387
|
else if (key === "searchable" && ts.isTupleTypeNode(member.type)) {
|
|
1394
1388
|
result.searchable = member.type.elements
|
|
1395
|
-
.map(
|
|
1389
|
+
.map(literalStringType)
|
|
1396
1390
|
.filter((name) => name !== null);
|
|
1397
1391
|
}
|
|
1398
1392
|
else if (key === "versions") {
|
|
@@ -1400,10 +1394,10 @@ function parseMetaLiteral(metaArg, sourceFile) {
|
|
|
1400
1394
|
if (versions !== undefined)
|
|
1401
1395
|
result.versions = versions;
|
|
1402
1396
|
}
|
|
1403
|
-
else if (key === "tableName"
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1397
|
+
else if (key === "tableName" || key === "label" || key === "labelPlural") {
|
|
1398
|
+
const text = literalStringType(member.type);
|
|
1399
|
+
if (text !== null)
|
|
1400
|
+
result[key] = text;
|
|
1407
1401
|
}
|
|
1408
1402
|
}
|
|
1409
1403
|
return result;
|
|
@@ -1442,6 +1436,10 @@ function parseModelMeta(metaArg, sourceFile, modelName, fieldsArg, fields, resol
|
|
|
1442
1436
|
options.autoLocalize = true;
|
|
1443
1437
|
if (literal.versions !== undefined)
|
|
1444
1438
|
options.versions = literal.versions;
|
|
1439
|
+
if (literal.label !== undefined)
|
|
1440
|
+
options.label = literal.label;
|
|
1441
|
+
if (literal.labelPlural !== undefined)
|
|
1442
|
+
options.labelPlural = literal.labelPlural;
|
|
1445
1443
|
const access = parseModelAccess(metaArg, sourceFile, modelName, fields, resolveCtx);
|
|
1446
1444
|
if (literal.versions !== undefined)
|
|
1447
1445
|
assertVersionsWithoutFieldRules(access, modelName);
|
|
@@ -1817,8 +1815,10 @@ function parseModelIndexes(metaArg, sourceFile, fields) {
|
|
|
1817
1815
|
const key = getPropertyName(member.name);
|
|
1818
1816
|
if (!key)
|
|
1819
1817
|
continue;
|
|
1820
|
-
if (key === "name"
|
|
1821
|
-
|
|
1818
|
+
if (key === "name") {
|
|
1819
|
+
const name = literalStringType(member.type);
|
|
1820
|
+
if (name !== null)
|
|
1821
|
+
indexDef.name = name;
|
|
1822
1822
|
}
|
|
1823
1823
|
else if (key === "unique" && isBooleanLiteralType(member.type, true)) {
|
|
1824
1824
|
indexDef.unique = true;
|
|
@@ -2631,10 +2631,10 @@ function parseRelationOptions(optsArg, sourceFile) {
|
|
|
2631
2631
|
out.required = true;
|
|
2632
2632
|
continue;
|
|
2633
2633
|
}
|
|
2634
|
-
if (
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2634
|
+
if (key === "onDelete" || key === "onUpdate" || key === "through") {
|
|
2635
|
+
const text = literalStringType(member.type);
|
|
2636
|
+
if (text !== null)
|
|
2637
|
+
out[key] = text;
|
|
2638
2638
|
}
|
|
2639
2639
|
}
|
|
2640
2640
|
return out;
|