From 016d838c932434fc3f3eb5f267c9bea36f44c3ea Mon Sep 17 00:00:00 2001 From: Katalina Okano Date: Fri, 12 Mar 2021 17:06:06 -0500 Subject: [PATCH] chore: fix type linting scope for api --- package.json | 1 + packages/api/package.json | 1 + tsconfig.json | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7ca0a52..f6d8c1b 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "lint:stylelint": "cross-env stylelint '**/*.{ts,tsx}'", "lint:terraform": "terraform fmt -recursive -check ./terraform", "lint:types": "tsc --noEmit", + "lint:types-api": "yarn workspace @roleypoly/api run lint:types", "postinstall": "is-ci || husky install", "start": "run-p -c start:*", "start:design-system": "yarn workspace @roleypoly/design-system start", diff --git a/packages/api/package.json b/packages/api/package.json index 8f0e2f5..de9e682 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -3,6 +3,7 @@ "version": "0.1.0", "scripts": { "build": "yarn workspace @roleypoly/worker-emulator build --basePath `pwd`", + "lint:types": "tsc --noEmit", "start": "yarn workspace @roleypoly/worker-emulator start --basePath `pwd`" }, "devDependencies": { diff --git a/tsconfig.json b/tsconfig.json index b99f6a8..8cb4a9e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -25,5 +25,5 @@ "isolatedModules": true }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules", "**/*.stories.tsx", "src/backend-worker"] + "exclude": ["node_modules", "**/*.stories.tsx", "packages/api"] }