From 6cc5417574e1b1c62b97b9f8813b610b709a796e Mon Sep 17 00:00:00 2001 From: daishi Date: Fri, 18 Oct 2024 11:04:17 +0900 Subject: [PATCH] chore: run tsc on examples --- examples/03_demo/tsconfig.json | 2 +- examples/04_cssmodules/src/types.d.ts | 1 + examples/43_weave-render/src/components/BarLayout.tsx | 2 +- examples/43_weave-render/src/components/HomeLayout.tsx | 2 +- package.json | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 examples/04_cssmodules/src/types.d.ts diff --git a/examples/03_demo/tsconfig.json b/examples/03_demo/tsconfig.json index 84d0d542f..33d25f480 100644 --- a/examples/03_demo/tsconfig.json +++ b/examples/03_demo/tsconfig.json @@ -9,7 +9,7 @@ "skipLibCheck": true, "noUncheckedIndexedAccess": true, "exactOptionalPropertyTypes": true, - "types": ["react/experimental"], + "types": ["node", "react/experimental"], "jsx": "react-jsx" } } diff --git a/examples/04_cssmodules/src/types.d.ts b/examples/04_cssmodules/src/types.d.ts new file mode 100644 index 000000000..60260a3ad --- /dev/null +++ b/examples/04_cssmodules/src/types.d.ts @@ -0,0 +1 @@ +declare module '*.module.css'; diff --git a/examples/43_weave-render/src/components/BarLayout.tsx b/examples/43_weave-render/src/components/BarLayout.tsx index 1efaa9cdd..b0c177793 100644 --- a/examples/43_weave-render/src/components/BarLayout.tsx +++ b/examples/43_weave-render/src/components/BarLayout.tsx @@ -41,7 +41,7 @@ const BarLayout = ({ children }: { children: ReactNode }) => {
  • } notPending={} > diff --git a/examples/43_weave-render/src/components/HomeLayout.tsx b/examples/43_weave-render/src/components/HomeLayout.tsx index 508d1cdfa..c3e00603d 100644 --- a/examples/43_weave-render/src/components/HomeLayout.tsx +++ b/examples/43_weave-render/src/components/HomeLayout.tsx @@ -50,7 +50,7 @@ const HomeLayout = ({ children }: { children: ReactNode }) => {
  • } notPending={} > diff --git a/package.json b/package.json index eb48b44b8..74086315a 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "dev": "pnpm -r --filter='./packages/*' run dev", "compile": "pnpm -r --filter='./packages/*' run compile", "csb-install-FIXME": "pnpm install --no-frozen-lockfile", - "test": "prettier -c . && eslint . && tsc -b && pnpm run --filter waku test", + "test": "prettier -c . && eslint . && tsc -b && tsc -b --noEmit `find examples -mindepth 1 -maxdepth 1 -type d ! -name '*_js'` && pnpm run --filter waku test", "e2e": "playwright test", "examples:dev": "(cd ./examples/${NAME} && pnpm run dev)", "examples:build": "(cd ./examples/${NAME} && pnpm run build)",