diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5305a03b..7787a37b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,8 +28,8 @@ jobs: working-directory: ./examples/ssr-spa - name: Test TypeScript examples/basic - run: pnpm exec tsc --noEmit + run: pnpm run test working-directory: ./examples/basic - name: Test TypeScript examples/ssr-spa - run: pnpm exec tsc --noEmit + run: pnpm run test working-directory: ./examples/ssr-spa diff --git a/examples/basic/package.json b/examples/basic/package.json index 213926d1..2b0ca418 100644 --- a/examples/basic/package.json +++ b/examples/basic/package.json @@ -2,7 +2,8 @@ "scripts": { "dev": "vite dev", "build": "vite build", - "preview": "vite preview" + "preview": "vite preview", + "test": "tsc --noEmit" }, "dependencies": { "@types/react": "^18.0.8", diff --git a/examples/ssr-spa/package.json b/examples/ssr-spa/package.json index 829cd33d..23cf7d0d 100644 --- a/examples/ssr-spa/package.json +++ b/examples/ssr-spa/package.json @@ -2,7 +2,8 @@ "scripts": { "dev": "vite dev", "build": "vite build", - "preview": "vite preview" + "preview": "vite preview", + "test": "tsc --noEmit" }, "dependencies": { "@types/react": "^18.0.8",