From 5a5d8e11a348d492393780fb60c36b358c45e938 Mon Sep 17 00:00:00 2001 From: ymc9 <104139426+ymc9@users.noreply.github.com> Date: Sun, 23 Aug 2026 21:34:22 +0800 Subject: [PATCH] chore: regenerate stale fetch-client test lite schemas Follow-up to #2813: fetch-client's build script also runs test:generate, which rewrites tracked test schemas. These two files were missed because a local turbo cache hit skipped the generate step (test/ is not part of turbo's build inputs), while CI's cold-cache build executed it and dirtied the tree, failing publish again with ERR_PNPM_GIT_UNCLEAN. Co-Authored-By: Claude Fable 5 --- .../clients/fetch-client/test/schemas/basic/schema-lite.ts | 5 ++--- .../fetch-client/test/schemas/no-procs/schema-lite.ts | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/clients/fetch-client/test/schemas/basic/schema-lite.ts b/packages/clients/fetch-client/test/schemas/basic/schema-lite.ts index 822e88692..492879376 100644 --- a/packages/clients/fetch-client/test/schemas/basic/schema-lite.ts +++ b/packages/clients/fetch-client/test/schemas/basic/schema-lite.ts @@ -18,6 +18,7 @@ export class SchemaType implements SchemaDef { name: "id", type: "String", id: true, + attributes: [{ name: "@default", args: [{ name: "value", value: ExpressionUtils.call("cuid") }] }] as readonly AttributeApplication[], default: ExpressionUtils.call("cuid") as FieldDefault }, email: { @@ -50,6 +51,7 @@ export class SchemaType implements SchemaDef { name: "id", type: "String", id: true, + attributes: [{ name: "@default", args: [{ name: "value", value: ExpressionUtils.call("cuid") }] }] as readonly AttributeApplication[], default: ExpressionUtils.call("cuid") as FieldDefault }, title: { @@ -86,9 +88,6 @@ export class SchemaType implements SchemaDef { type: "String" } }, - attributes: [ - { name: "@@strict" } - ] as readonly AttributeApplication[], strict: true } } as const; diff --git a/packages/clients/fetch-client/test/schemas/no-procs/schema-lite.ts b/packages/clients/fetch-client/test/schemas/no-procs/schema-lite.ts index 6c42484a0..564e188cb 100644 --- a/packages/clients/fetch-client/test/schemas/no-procs/schema-lite.ts +++ b/packages/clients/fetch-client/test/schemas/no-procs/schema-lite.ts @@ -5,7 +5,7 @@ /* eslint-disable */ -import { type SchemaDef, type FieldDefault, ExpressionUtils } from "@zenstackhq/schema"; +import { type SchemaDef, type AttributeApplication, type FieldDefault, ExpressionUtils } from "@zenstackhq/schema"; export class SchemaType implements SchemaDef { provider = { type: "sqlite" @@ -18,6 +18,7 @@ export class SchemaType implements SchemaDef { name: "id", type: "String", id: true, + attributes: [{ name: "@default", args: [{ name: "value", value: ExpressionUtils.call("cuid") }] }] as readonly AttributeApplication[], default: ExpressionUtils.call("cuid") as FieldDefault } },