diff --git a/package.json b/package.json index 2eefaf0..9975246 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "dev:network": "astro dev --host", "build": "astro check && astro build", "typecheck": "npm run typecheck:app && npm run typecheck:playwright", - "typecheck:app": "tsc -p tsconfig.json --noEmit", + "typecheck:app": "astro sync && tsc -p tsconfig.json --noEmit", "typecheck:playwright": "tsc -p tsconfig.playwright.json --noEmit", "preview": "astro preview", "preview:network": "astro preview --host", diff --git a/tsconfig.playwright.json b/tsconfig.playwright.json index b108b2c..62e8594 100644 --- a/tsconfig.playwright.json +++ b/tsconfig.playwright.json @@ -1,6 +1,8 @@ { "extends": "./tsconfig.json", "compilerOptions": { + // `types` replaces (not merges) the parent array; `astro/client` is + // intentionally dropped because Playwright tests don't need it. "types": [ "node", "@playwright/test"