From 9c6ccd76f1fefc692388aa06b1232b58715b0ff1 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Tue, 7 Jul 2026 18:18:57 +0900 Subject: [PATCH] chore: fix no-op tsc in test script (#5093) * chore: fix no-op tsc in test script * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- build/build.ts | 4 +--- package.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/build/build.ts b/build/build.ts index 63ee9496..1b9ef932 100644 --- a/build/build.ts +++ b/build/build.ts @@ -103,9 +103,7 @@ const runBuild = async (config: BuildOptions) => { await Promise.all([ runBuild(esmConfig), runBuild(cjsConfig), - $`tsc ${ - isWatch ? ['-w'] : [] - } --emitDeclarationOnly --declaration --project tsconfig.build.json`.nothrow(), + $`tsc ${isWatch ? ['-w'] : []} --emitDeclarationOnly --declaration --project tsconfig.build.json`, ]) // Remove #private fields diff --git a/package.json b/package.json index 7cf5df56..4de9545d 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "!dist/**/*.tsbuildinfo" ], "scripts": { - "test": "tsc --noEmit && vitest --run", + "test": "tsc -p tsconfig.spec.json && vitest --run", "test:watch": "vitest --watch", "test:deno": "deno test --allow-read --allow-env --allow-write --allow-net -c runtime-tests/deno/deno.json runtime-tests/deno && deno test --no-lock -c runtime-tests/deno-jsx/deno.precompile.json runtime-tests/deno-jsx && deno test --no-lock -c runtime-tests/deno-jsx/deno.react-jsx.json runtime-tests/deno-jsx", "test:bun": "bun test --jsx-import-source ../../src/jsx runtime-tests/bun/*",