From ab44001b5e6c11e461f529157507d1a3178e5ffe Mon Sep 17 00:00:00 2001 From: Aurelien Lourot Date: Wed, 20 Sep 2023 15:34:59 +0200 Subject: [PATCH] qual: run `pnpm run test` in CI instead of tsc directly Aligning with https://github.com/magne4000/vike-solid See https://github.com/magne4000/vike-solid/pull/14 --- .github/workflows/build.yml | 4 ++-- examples/basic/package.json | 3 ++- examples/ssr-spa/package.json | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) 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",