From 049bb49c07c9a31d57f6b4ef4b21a15d82810f1d Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Mon, 3 Jun 2024 17:46:42 +0200 Subject: [PATCH] chore: fix type error (#2486) We only checking types in CI in `src/` + `tests/`. This PR adds the other folders. --- deno.json | 2 +- plugin-tailwindcss/src/compiler.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deno.json b/deno.json index 1d7d51c2..10b07643 100644 --- a/deno.json +++ b/deno.json @@ -14,7 +14,7 @@ "www": "deno task --cwd=www start", "build-www": "deno task --cwd=www build", "screenshot": "deno run -A www/utils/screenshot.ts", - "check:types": "deno check src/**/*.ts src/**/*.tsx tests/**/*.ts tests/**/*.tsx", + "check:types": "deno check src/**/*.ts src/**/*.tsx tests/**/*.ts tests/**/*.tsx update/**/*.ts plugin-tailwindcss/**/*.ts init/**/*.ts", "ok": "deno fmt --check && deno lint && deno task check:types && deno task test", "test:www": "deno test -A tests/www/", "manifests": "deno run -A genAllManifest.ts" diff --git a/plugin-tailwindcss/src/compiler.ts b/plugin-tailwindcss/src/compiler.ts index 76a4fb0f..4e296dd1 100644 --- a/plugin-tailwindcss/src/compiler.ts +++ b/plugin-tailwindcss/src/compiler.ts @@ -71,7 +71,7 @@ export async function initTailwind( autoprefixer(options.autoprefixer) as any, ]; - if (config.mode === "build") { + if (config.mode === "production") { plugins.push(cssnano()); }