From f1c7d1e257e89f96b0d4018d5082809f295e14dd Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 26 Nov 2024 12:29:24 +0100 Subject: [PATCH] Add checks --- packages/builder/package.json | 8 +++++--- packages/builder/tsconfig.build.json | 14 ++++---------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/packages/builder/package.json b/packages/builder/package.json index 5b3d4413cf..7e00f3e550 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -4,14 +4,16 @@ "license": "GPL-3.0", "private": true, "scripts": { - "svelte-check": "svelte-check --no-tsconfig", - "build": "yarn svelte-check && routify -b && vite build --emptyOutDir", + "build": "routify -b && vite build --emptyOutDir", "start": "routify -c rollup", "dev": "routify -c dev:vite", "dev:vite": "vite --host 0.0.0.0", "rollup": "rollup -c -w", "test": "vitest run", - "test:watch": "vitest" + "test:watch": "vitest", + "svelte-check": "svelte-check --no-tsconfig", + "check:types": "yarn svelte-check && yarn check:ts", + "check:ts": "tsc --noEmit --target es2020" }, "jest": { "globals": { diff --git a/packages/builder/tsconfig.build.json b/packages/builder/tsconfig.build.json index 6a5ba315a1..ca1316f83c 100644 --- a/packages/builder/tsconfig.build.json +++ b/packages/builder/tsconfig.build.json @@ -9,15 +9,9 @@ "noImplicitAny": true, "esModuleInterop": true, "resolveJsonModule": true, - "incremental": true + "incremental": true, + "skipLibCheck": true }, - "include": [ - "./src/**/*" - ], - "exclude": [ - "node_modules", - "**/*.json", - "**/*.spec.ts", - "**/*.spec.js" - ] + "include": ["./src/**/*"], + "exclude": ["node_modules", "**/*.json", "**/*.spec.ts", "**/*.spec.js"] }