From 059fea6ba8b1655b4f5f12b6aa99c7b92cc43b6f Mon Sep 17 00:00:00 2001 From: Sanna Jammeh <50969683+sannajammeh@users.noreply.github.com> Date: Tue, 16 May 2023 00:41:10 +0200 Subject: [PATCH] ci: add typecheck script --- package.json | 1 + packages/client/package.json | 3 ++- packages/infinite/package.json | 3 ++- packages/next/package.json | 3 ++- packages/ssr/package.json | 2 +- pnpm-lock.yaml | 11 +---------- turbo.json | 4 ++++ 7 files changed, 13 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 8fcce64..efe01d2 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "dev": "turbo run dev", "build": "turbo run build", "start": "turbo run start", + "typecheck": "turbo run typecheck", "test": "turbo run test --filter={test/**}", "test:e2e": "turbo run test:e2e", "prepublishOnly": "turbo run build --filter=packages*", diff --git a/packages/client/package.json b/packages/client/package.json index f65250e..8c3a224 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -19,7 +19,8 @@ }, "scripts": { "dev": "bunchee -w", - "build": "bunchee" + "build": "bunchee", + "typecheck": "tsc --noEmit" }, "files": [ "dist", diff --git a/packages/infinite/package.json b/packages/infinite/package.json index ea77de0..6da4ea5 100644 --- a/packages/infinite/package.json +++ b/packages/infinite/package.json @@ -13,7 +13,8 @@ }, "scripts": { "dev": "bunchee index.ts -w", - "build": "bunchee index.ts" + "build": "bunchee index.ts", + "typecheck": "tsc --noEmit" }, "keywords": [], "author": "Sanna Jammeh", diff --git a/packages/next/package.json b/packages/next/package.json index c3fd37e..9de3451 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -13,7 +13,8 @@ }, "scripts": { "dev": "bunchee index.ts -w", - "build": "bunchee index.ts" + "build": "bunchee index.ts", + "typecheck": "tsc --noEmit" }, "keywords": [], "author": "Sanna Jammeh", diff --git a/packages/ssr/package.json b/packages/ssr/package.json index 0567869..364a43c 100644 --- a/packages/ssr/package.json +++ b/packages/ssr/package.json @@ -14,7 +14,7 @@ "scripts": { "dev": "bunchee index.ts -w", "build": "bunchee index.ts", - "run:test": "node --loader @swc-node/register/esm --test test/*.mts" + "typecheck": "tsc --noEmit" }, "files": [ "dist", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0ea7317..2594f00 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7521,7 +7521,7 @@ packages: resolution: {integrity: sha512-zNy02qivjjRosswoYmPi8hIKJRr8MpQyeKT6qlcq/OnOgA3Rhoae+IYOqsM9V5+JnHWmxKnWOT2GxvtqdtOCXA==} engines: {node: '>=10'} dependencies: - semver: 7.5.0 + semver: 7.5.1 dev: false /node-fetch@2.6.9: @@ -8617,21 +8617,12 @@ packages: hasBin: true dev: true - /semver@7.5.0: - resolution: {integrity: sha512-+XC0AD/R7Q2mPSRuy2Id0+CGTZ98+8f+KvwirxOKIEyid+XSx6HbC63p+O4IndTHuX5Z+JxQ0TghCkO5Cg/2HA==} - engines: {node: '>=10'} - hasBin: true - dependencies: - lru-cache: 6.0.0 - dev: false - /semver@7.5.1: resolution: {integrity: sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==} engines: {node: '>=10'} hasBin: true dependencies: lru-cache: 6.0.0 - dev: true /send@0.18.0: resolution: {integrity: sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==} diff --git a/turbo.json b/turbo.json index 58c9036..7a5fa26 100644 --- a/turbo.json +++ b/turbo.json @@ -18,6 +18,10 @@ "dependsOn": ["^build", "^migrate:db"], "outputs": ["playwright-report/**"] }, + "typecheck": { + "dependsOn": ["^build"], + "outputs": [] + }, "dev": { "cache": false, "persistent": true