Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix: Reconcile MCP commits and Cloudflare scaffold types (#6131)
Oleg Isonen42f5291168a1
diff --git a/fixtures/react-router-cloudflare/app/__generated__/$resources.sitemap.xml.ts b/fixtures/react-router-cloudflare/app/__generated__/$resources.sitemap.xml.tsindex 5cb5b92832..3e7714863f 100644--- a/fixtures/react-router-cloudflare/app/__generated__/$resources.sitemap.xml.ts+++ b/fixtures/react-router-cloudflare/app/__generated__/$resources.sitemap.xml.ts@@ -1,5 +1,5 @@- export const sitemap = [+ export const sitemap: Array<{ path: string; lastModified: string }> = [{"path": "/","lastModified": "2025-01-04"diff --git a/fixtures/react-router-docker/app/__generated__/$resources.sitemap.xml.ts b/fixtures/react-router-docker/app/__generated__/$resources.sitemap.xml.tsindex 5cb5b92832..3e7714863f 100644--- a/fixtures/react-router-docker/app/__generated__/$resources.sitemap.xml.ts+++ b/fixtures/react-router-docker/app/__generated__/$resources.sitemap.xml.ts@@ -1,5 +1,5 @@- export const sitemap = [+ export const sitemap: Array<{ path: string; lastModified: string }> = [{"path": "/","lastModified": "2025-01-04"diff --git a/fixtures/react-router-netlify/app/__generated__/$resources.sitemap.xml.ts b/fixtures/react-router-netlify/app/__generated__/$resources.sitemap.xml.tsindex 5cb5b92832..3e7714863f 100644--- a/fixtures/react-router-netlify/app/__generated__/$resources.sitemap.xml.ts+++ b/fixtures/react-router-netlify/app/__generated__/$resources.sitemap.xml.ts@@ -1,5 +1,5 @@- export const sitemap = [+ export const sitemap: Array<{ path: string; lastModified: string }> = [{"path": "/","lastModified": "2025-01-04"diff --git a/fixtures/react-router-vercel/app/__generated__/$resources.sitemap.xml.ts b/fixtures/react-router-vercel/app/__generated__/$resources.sitemap.xml.tsindex 5cb5b92832..3e7714863f 100644--- a/fixtures/react-router-vercel/app/__generated__/$resources.sitemap.xml.ts+++ b/fixtures/react-router-vercel/app/__generated__/$resources.sitemap.xml.ts@@ -1,5 +1,5 @@- export const sitemap = [+ export const sitemap: Array<{ path: string; lastModified: string }> = [{"path": "/","lastModified": "2025-01-04"diff --git a/fixtures/ssg-cloudflare-pages/app/__generated__/$resources.sitemap.xml.ts b/fixtures/ssg-cloudflare-pages/app/__generated__/$resources.sitemap.xml.tsindex 2853d60abb..f578cb1e62 100644--- a/fixtures/ssg-cloudflare-pages/app/__generated__/$resources.sitemap.xml.ts+++ b/fixtures/ssg-cloudflare-pages/app/__generated__/$resources.sitemap.xml.ts@@ -1,5 +1,5 @@- export const sitemap = [+ export const sitemap: Array<{ path: string; lastModified: string }> = [{"path": "/","lastModified": "2024-07-29"diff --git a/fixtures/ssg-netlify-by-project-id/app/__generated__/$resources.sitemap.xml.ts b/fixtures/ssg-netlify-by-project-id/app/__generated__/$resources.sitemap.xml.tsindex ae27edefca..a82c2d28d4 100644--- a/fixtures/ssg-netlify-by-project-id/app/__generated__/$resources.sitemap.xml.ts+++ b/fixtures/ssg-netlify-by-project-id/app/__generated__/$resources.sitemap.xml.ts@@ -1,5 +1,5 @@- export const sitemap = [+ export const sitemap: Array<{ path: string; lastModified: string }> = [{"path": "/","lastModified": "2026-01-04"diff --git a/fixtures/webstudio-cloudflare-template/app/__generated__/$resources.sitemap.xml.ts b/fixtures/webstudio-cloudflare-template/app/__generated__/$resources.sitemap.xml.tsindex 2853d60abb..f578cb1e62 100644--- a/fixtures/webstudio-cloudflare-template/app/__generated__/$resources.sitemap.xml.ts+++ b/fixtures/webstudio-cloudflare-template/app/__generated__/$resources.sitemap.xml.ts@@ -1,5 +1,5 @@- export const sitemap = [+ export const sitemap: Array<{ path: string; lastModified: string }> = [{"path": "/","lastModified": "2024-07-29"diff --git a/fixtures/webstudio-features/app/__generated__/$resources.sitemap.xml.ts b/fixtures/webstudio-features/app/__generated__/$resources.sitemap.xml.tsindex 34362a7e93..2fdbefdeb9 100644--- a/fixtures/webstudio-features/app/__generated__/$resources.sitemap.xml.ts+++ b/fixtures/webstudio-features/app/__generated__/$resources.sitemap.xml.ts@@ -1,5 +1,5 @@- export const sitemap = [+ export const sitemap: Array<{ path: string; lastModified: string }> = [{"path": "/","lastModified": "2026-01-15"diff --git a/packages/cli/src/prebuild.test.ts b/packages/cli/src/prebuild.test.tsindex 43a33e14f1..327e1b2412 100644--- a/packages/cli/src/prebuild.test.ts+++ b/packages/cli/src/prebuild.test.ts@@ -70,7 +70,7 @@ const elementComponent = "ws:element";const slowPrebuildTestTimeout = 15_000;const runGeneratedCommand = async (- command: "react-router" | "vite" | "vike",+ command: "react-router" | "tsc" | "vite" | "vike",args: string[]) => {const env = { ...process.env };@@ -1167,6 +1167,51 @@ describe("prebuild", () => {).resolves.not.toContain('"path": "/draft"');});+ test(+ "types an empty generated sitemap",+ async () => {+ await writeSiteData(+ createSiteData({+ pages: [+ {+ id: "draft",+ name: "Draft",+ title: "Draft",+ path: "/draft",+ rootInstanceId: "root",+ meta: {},+ isDraft: true,+ },+ ],+ })+ );++ await prebuild({+ assets: false,+ template: ["react-router"],+ });+ await writeFile(+ "sitemap-typecheck.ts",+ `import { sitemap } from "./app/__generated__/$resources.sitemap.xml";+sitemap.map((page) => page.path);`+ );+ await runGeneratedCommand("tsc", [+ "--ignoreConfig",+ "--noEmit",+ "--strict",+ "--skipLibCheck",+ "--moduleResolution",+ "bundler",+ "--module",+ "esnext",+ "--target",+ "es2022",+ "sitemap-typecheck.ts",+ ]);+ },+ slowPrebuildTestTimeout+ );+test("generates draft routes for local verification without publishing them", async () => {await writeSiteData(createSiteData({diff --git a/packages/cli/src/prebuild.ts b/packages/cli/src/prebuild.tsindex 345922de79..6136363bad 100644--- a/packages/cli/src/prebuild.ts+++ b/packages/cli/src/prebuild.ts@@ -1443,7 +1443,7 @@ export const prebuild = async (options: {await writeGeneratedFile(join(generatedDir, "$resources.sitemap.xml.ts"),`- export const sitemap = ${JSON.stringify(sitemap, null, 2)};+ export const sitemap: Array<{ path: string; lastModified: string }> = ${JSON.stringify(sitemap, null, 2)};`);diff --git a/packages/project-build/src/project-session.test.ts b/packages/project-build/src/project-session.test.tsindex 7a8fa7ced4..a0ce1c6d0f 100644--- a/packages/project-build/src/project-session.test.ts+++ b/packages/project-build/src/project-session.test.ts@@ -1220,7 +1220,7 @@ describe("project session", () => {transport.commitPatch = async (input) => {attempts += 1;transport.commits.push([...input.transactions]);- if (attempts === 1) {+ if (attempts <= 2) {throw Object.assign(new Error("Build version mismatch"), {code: "CONFLICT",});@@ -1245,7 +1245,117 @@ describe("project session", () => {expect(transport.loadedNamespaces).toEqual([["pages", "instances", "dataSources"],]);+ expect(transport.commits).toHaveLength(3);+ });++ test("confirms an ambiguous commit with the same transaction", async () => {+ const storage = createStorage(createPersistedSnapshot());+ const transport = createTransport();+ let committedTransactionId: string | undefined;+ transport.commitPatch = async (input) => {+ transport.commits.push([...input.transactions]);+ const transactionId = input.transactions[0]?.id;+ if (transactionId === committedTransactionId) {+ return { version: input.baseVersion + 1 };+ }+ committedTransactionId = transactionId;+ throw Object.assign(new Error("Build version mismatch"), {+ code: "CONFLICT",+ });+ };+ const session = createSession({ storage, transport });++ await session.initialize();+ const result = await session.mutate("pages.update", {+ pageId: "page-home",+ values: { name: "Home updated" },+ });++ expect(result.state.committed).toBe(true);+ expect(result.version).toBe(2);+ expect(result.diagnostics).toEqual([+ expect.objectContaining({ code: "COMMIT_RETRY_CONFIRMED" }),+ ]);+ expect(transport.loadedNamespaces).toEqual([]);expect(transport.commits).toHaveLength(2);+ expect(transport.commits[0]?.[0]?.id).toBe(transport.commits[1]?.[0]?.id);+ });++ test("refreshes without replaying after confirmation fails", async () => {+ const storage = createStorage(createPersistedSnapshot());+ const transport = createTransport();+ let attempts = 0;+ transport.commitPatch = async () => {+ attempts += 1;+ if (attempts === 1) {+ throw Object.assign(new Error("Build version mismatch"), {+ code: "CONFLICT",+ });+ }+ throw Object.assign(new Error("Connection reset"), {+ code: "ECONNRESET",+ });+ };+ const session = createSession({ storage, transport });++ await session.initialize();+ const result = await session.mutate("pages.update", {+ pageId: "page-home",+ values: { name: "Conflict" },+ });++ expect(result.state.committed).toBe(false);+ expect(result.diagnostics).toEqual([+ expect.objectContaining({+ code: "CONFLICT",+ details: expect.objectContaining({+ confirmationFailure: {+ code: "ECONNRESET",+ message: "Connection reset",+ },+ }),+ }),+ expect.objectContaining({ code: "CONFLICT_REFRESHED" }),+ ]);+ expect(transport.loadedNamespaces).toEqual([+ ["pages", "instances", "dataSources"],+ ]);+ expect(attempts).toBe(2);+ });++ test("clears cached permissions after authorization confirmation failure", async () => {+ const storage = createStorage(createPersistedSnapshot());+ const transport = createTransport();+ let attempts = 0;+ transport.commitPatch = async (input) => {+ attempts += 1;+ if (attempts === 1) {+ throw Object.assign(new Error("Build version mismatch"), {+ code: "CONFLICT",+ });+ }+ if (attempts === 2) {+ throw Object.assign(new Error("Token expired"), {+ code: "UNAUTHORIZED",+ });+ }+ return { version: input.baseVersion + 1 };+ };+ const session = createSession({ storage, transport });++ await session.initialize();+ await session.mutate(+ "pages.update",+ { pageId: "page-home", values: { name: "First" } },+ { permit: "build" }+ );+ await session.mutate(+ "pages.update",+ { pageId: "page-home", values: { name: "Second" } },+ { permit: "build" }+ );++ expect(transport.permissionReads).toBe(2);});test("checks and caches permissions for local runtime mutations", async () => {@@ -1446,6 +1556,52 @@ describe("project session", () => {expect(transport.restoreCommits).toHaveLength(1);});+ test("confirms an ambiguous restore with the same transaction", async () => {+ const target = createPersistedSnapshot();+ const current = structuredClone(target);+ current.version = 2;+ current.revision = "rev-2";+ const currentHome = current.state.pages?.pages.get("page-home");+ if (currentHome === undefined) {+ throw new Error("Home page fixture is missing");+ }+ currentHome.name = "Edited after restore point";+ const storage = createStorage(current);+ const transport = createTransport({+ projectId: current.projectId,+ buildId: current.buildId,+ version: current.version,+ state: current.state,+ });+ let committedTransactionId: string | undefined;+ transport.commitRestorePoint = async (input) => {+ transport.commits.push([...input.transactions]);+ transport.restoreCommits.push([...input.transactions]);+ const transactionId = input.transactions[0]?.id;+ if (transactionId === committedTransactionId) {+ return { version: input.baseVersion + 1 };+ }+ committedTransactionId = transactionId;+ throw Object.assign(new Error("Build version mismatch"), {+ code: "CONFLICT",+ });+ };+ const session = createSession({ storage, transport });++ await session.initialize();+ const restored = await session.restoreSnapshot(target);++ expect(restored.state.committed).toBe(true);+ expect(restored.version).toBe(3);+ expect(restored.diagnostics).toEqual([+ expect.objectContaining({ code: "COMMIT_RETRY_CONFIRMED" }),+ ]);+ expect(transport.restoreCommits).toHaveLength(2);+ expect(transport.restoreCommits[0]?.[0]?.id).toBe(+ transport.restoreCommits[1]?.[0]?.id+ );+ });+test("keeps separately persisted assets outside restore points", async () => {const current = createPersistedSnapshot();current.state.assets = new Map([diff --git a/packages/project-build/src/project-session.ts b/packages/project-build/src/project-session.tsindex 1f3af66506..5445763e53 100644--- a/packages/project-build/src/project-session.ts+++ b/packages/project-build/src/project-session.ts@@ -96,6 +96,13 @@ export type ProjectSessionCommitResult = {version: number;};+type ProjectSessionCommitInput = {+ projectId: string;+ buildId: string;+ baseVersion: number;+ transactions: readonly BuilderPatchTransaction[];+};+export type ProjectSessionPermissions = {canView: boolean;canEdit: boolean;@@ -119,18 +126,12 @@ export type ProjectSessionTransport = {projectId: string;namespaces: readonly BuilderNamespace[];}) => Promise<ProjectSessionRemoteSnapshot>;- commitPatch: (input: {- projectId: string;- buildId: string;- baseVersion: number;- transactions: readonly BuilderPatchTransaction[];- }) => Promise<ProjectSessionCommitResult>;- commitRestorePoint: (input: {- projectId: string;- buildId: string;- baseVersion: number;- transactions: readonly BuilderPatchTransaction[];- }) => Promise<ProjectSessionCommitResult>;+ commitPatch: (+ input: ProjectSessionCommitInput+ ) => Promise<ProjectSessionCommitResult>;+ commitRestorePoint: (+ input: ProjectSessionCommitInput+ ) => Promise<ProjectSessionCommitResult>;executeServerOperation?: <Result>(input: {operationId: string;input: unknown;@@ -575,16 +576,107 @@ const errorDiagnostic = (error: unknown): ProjectSessionDiagnostic => {};};+const getCommitConfirmationFailureCode = (error: unknown) => {+ if (+ typeof error !== "object" ||+ error === null ||+ !("confirmationFailure" in error)+ ) {+ return;+ }+ const failure = error.confirmationFailure;+ if (+ typeof failure !== "object" ||+ failure === null ||+ !("code" in failure) ||+ typeof failure.code !== "string"+ ) {+ return;+ }+ return failure.code;+};++const isAuthorizationErrorCode = (code: string | undefined) =>+ code === "UNAUTHORIZED" || code === "FORBIDDEN" || code === "PLAN_REQUIRED";+const shouldRefreshPermissionsAfterError = (error: unknown) => {- const code = getProjectSessionErrorCode(error);return (- code === "UNAUTHORIZED" || code === "FORBIDDEN" || code === "PLAN_REQUIRED"+ isAuthorizationErrorCode(getProjectSessionErrorCode(error)) ||+ isAuthorizationErrorCode(getCommitConfirmationFailureCode(error)));};const isVersionConflictError = (error: unknown) =>getProjectSessionErrorCode(error) === "CONFLICT";+const createCommitConfirmationConflictError = ({+ conflictError,+ confirmationError,+}: {+ conflictError: unknown;+ confirmationError: unknown;+}) =>+ Object.assign(+ new Error(+ conflictError instanceof Error+ ? conflictError.message+ : "Build version conflict",+ { cause: confirmationError }+ ),+ {+ code: "CONFLICT",+ confirmationFailure: {+ code: getProjectSessionErrorCode(confirmationError),+ message:+ confirmationError instanceof Error+ ? confirmationError.message+ : "Unknown error",+ },+ }+ );++const commitWithConflictConfirmation = async ({+ commit,+ input,+}: {+ commit: (+ input: ProjectSessionCommitInput+ ) => Promise<ProjectSessionCommitResult>;+ input: ProjectSessionCommitInput;+}) => {+ try {+ return {+ result: await commit(input),+ confirmedAfterRetry: false,+ };+ } catch (conflictError) {+ if (isVersionConflictError(conflictError) === false) {+ throw conflictError;+ }+ try {+ return {+ result: await commit(input),+ confirmedAfterRetry: true,+ };+ } catch (confirmationError) {+ if (isVersionConflictError(confirmationError)) {+ throw confirmationError;+ }+ throw createCommitConfirmationConflictError({+ conflictError,+ confirmationError,+ });+ }+ }+};++const commitRetryConfirmedDiagnostic: ProjectSessionDiagnostic = {+ level: "info",+ code: "COMMIT_RETRY_CONFIRMED",+ message:+ "The transaction was confirmed committed after retrying the same transaction ID.",+};+const isProjectSessionBusyError = (error: unknown) =>getProjectSessionErrorCode(error) === "PROJECT_SESSION_BUSY";@@ -822,12 +914,19 @@ export class ProjectSession {transaction,});}- const commit = await this.#options.transport.commitRestorePoint({- projectId: snapshot.projectId,- buildId: snapshot.buildId,- baseVersion: snapshot.version,- transactions: [transaction],- });+ const { result: commit, confirmedAfterRetry } =+ await commitWithConflictConfirmation({+ commit: (input) => this.#options.transport.commitRestorePoint(input),+ input: {+ projectId: snapshot.projectId,+ buildId: snapshot.buildId,+ baseVersion: snapshot.version,+ transactions: [transaction],+ },+ });+ const diagnostics = confirmedAfterRetry+ ? [commitRetryConfirmedDiagnostic]+ : [];const applied = applyBuilderPatchTransactions(snapshot.state, [transaction,]);@@ -847,7 +946,7 @@ export class ProjectSession {const persisted = await this.#synchronizeAfterCommit({snapshot: committedSnapshot,namespaces: restorePointNamespaces,- diagnostics: [],+ diagnostics,});return this.createEnvelope({source: "local",@@ -1187,7 +1286,11 @@ export class ProjectSession {message:"Remote build changed. Required namespaces were refreshed; rerun the operation against the latest snapshot.",});- if (contract.retryOnConflict && options.dryRun !== true) {+ if (+ contract.retryOnConflict &&+ options.dryRun !== true &&+ getCommitConfirmationFailureCode(error) === undefined+ ) {return await this.commitMutation({operationId,input,@@ -1291,12 +1394,20 @@ export class ProjectSession {input);}- const commit = await this.#options.transport.commitPatch({+ const commitInput = {projectId: snapshot.projectId,buildId: snapshot.buildId,baseVersion: snapshot.version,transactions: [transaction],- });+ };+ const { result: commit, confirmedAfterRetry } =+ await commitWithConflictConfirmation({+ commit: (input) => this.#options.transport.commitPatch(input),+ input: commitInput,+ });+ const commitDiagnostics = confirmedAfterRetry+ ? [...diagnostics, commitRetryConfirmedDiagnostic]+ : diagnostics;const applied = applyBuilderPatchTransactions(snapshot.state, [transaction,]);@@ -1328,7 +1439,7 @@ export class ProjectSession {contract.writeNamespaces,mutation.invalidatesNamespaces),- diagnostics,+ diagnostics: commitDiagnostics,});return this.createEnvelope({source: "local",diff --git a/packages/wsauth/package.json b/packages/wsauth/package.jsonindex 520f8b5196..a380afac78 100644--- a/packages/wsauth/package.json+++ b/packages/wsauth/package.json@@ -31,7 +31,7 @@}},"files": [- "lib/*",+ "lib/**/*","README.md","!*.{test,stories}.*"],diff --git a/packages/wsauth/src/package.test.ts b/packages/wsauth/src/package.test.tsnew file mode 100644index 0000000000..6ad630fc37--- /dev/null+++ b/packages/wsauth/src/package.test.ts@@ -0,0 +1,129 @@+import { execFile } from "node:child_process";+import { createRequire } from "node:module";+import { cp, mkdtemp, mkdir, rm, writeFile } from "node:fs/promises";+import { tmpdir } from "node:os";+import { delimiter, dirname, join } from "node:path";+import { fileURLToPath } from "node:url";+import { promisify } from "node:util";+import { afterEach, test } from "vitest";++const execFileAsync = promisify(execFile);+const require = createRequire(import.meta.url);+const packageDirectory = fileURLToPath(new URL("..", import.meta.url));+const workspaceDirectory = fileURLToPath(new URL("../../..", import.meta.url));+const tsc = join(workspaceDirectory, "node_modules/.bin/tsc");+const packageBinDirectory = join(workspaceDirectory, "node_modules/.bin");+let temporaryDirectory: string | undefined;++afterEach(async () => {+ if (temporaryDirectory !== undefined) {+ await rm(temporaryDirectory, { recursive: true, force: true });+ temporaryDirectory = undefined;+ }+});++test("publishes type declarations for every public entrypoint", async () => {+ temporaryDirectory = await mkdtemp(join(tmpdir(), "webstudio-wsauth-pack-"));+ const packDirectory = join(temporaryDirectory, "pack");+ const stagingDirectory = join(temporaryDirectory, "staging");+ const projectDirectory = join(temporaryDirectory, "project");+ await Promise.all([+ mkdir(packDirectory, { recursive: true }),+ mkdir(stagingDirectory, { recursive: true }),+ mkdir(projectDirectory, { recursive: true }),+ ]);+ await Promise.all([+ ...[+ "package.json",+ "README.md",+ "src",+ "tsconfig.json",+ "tsconfig.dts.json",+ ].map((entry) =>+ cp(join(packageDirectory, entry), join(stagingDirectory, entry), {+ recursive: true,+ })+ ),+ ...[+ ["zod", dirname(require.resolve("zod/package.json"))],+ ["@types/node", dirname(require.resolve("@types/node/package.json"))],+ [+ "@webstudio-is/tsconfig",+ dirname(require.resolve("@webstudio-is/tsconfig/package.json")),+ ],+ ["undici-types", dirname(require.resolve("undici-types/package.json"))],+ ].map(async ([name, source]) => {+ const destination = join(stagingDirectory, "node_modules", name);+ await mkdir(dirname(destination), { recursive: true });+ await cp(source, destination, { recursive: true });+ }),+ ]);++ const env = {+ ...process.env,+ PATH: `${packageBinDirectory}${delimiter}${process.env.PATH ?? ""}`,+ };+ await execFileAsync("pnpm", ["build"], { cwd: stagingDirectory, env });+ await execFileAsync("pnpm", ["dts"], { cwd: stagingDirectory, env });+ const packed = JSON.parse(+ (+ await execFileAsync(+ "npm",+ ["pack", "--json", "--pack-destination", packDirectory],+ { cwd: stagingDirectory }+ )+ ).stdout+ ) as Array<{ filename: string }>;+ const archive = join(packDirectory, packed[0]?.filename ?? "");+ await writeFile(+ join(projectDirectory, "package.json"),+ JSON.stringify({+ private: true,+ type: "module",+ dependencies: {+ "@webstudio-is/wsauth": `file:${archive}`,+ zod: `file:${dirname(require.resolve("zod/package.json"))}`,+ },+ }),+ "utf8"+ );+ await execFileAsync(+ "npm",+ [+ "install",+ "--ignore-scripts",+ "--no-package-lock",+ "--no-audit",+ "--no-fund",+ ],+ { cwd: projectDirectory }+ );+ await writeFile(+ join(projectDirectory, "index.ts"),+ `import type { WsAuthResources } from "@webstudio-is/wsauth";+import type { WsAuthConfig } from "@webstudio-is/wsauth/schema";++const routes: WsAuthResources["routes"] = [];+const config: WsAuthConfig = { version: 1, routes: {} };+void [routes, config];+`,+ "utf8"+ );++ await execFileAsync(+ tsc,+ [+ "--ignoreConfig",+ "--noEmit",+ "--strict",+ "--moduleResolution",+ "bundler",+ "--module",+ "esnext",+ "--target",+ "es2022",+ "index.ts",+ ],+ { cwd: projectDirectory }+ );+}, 30_000);diff --git a/packages/wsauth/tsconfig.dts.json b/packages/wsauth/tsconfig.dts.jsonindex c3ee0f7002..8b6d30c341 100644--- a/packages/wsauth/tsconfig.dts.json+++ b/packages/wsauth/tsconfig.dts.json@@ -1,10 +1,9 @@{- "extends": "@webstudio-is/tsconfig/base.json",+ "extends": "./tsconfig.json","include": ["src"],+ "exclude": ["**/*.test.ts"],"compilerOptions": {- "emitDeclarationOnly": true,- "declaration": true,- "outDir": "lib/types",+ "declarationDir": "lib/types","rootDir": "./src"}}