From 08253f9d874cfa31b0f49ca445421b760978d6ea Mon Sep 17 00:00:00 2001 From: Zixuan Chen Date: Fri, 12 Apr 2024 18:21:49 +0800 Subject: [PATCH] chore(ci): fix deno type conflict --- loro-js/tsconfig.json | 7 ++++++- loro-js/vite.config.ts | 12 +++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/loro-js/tsconfig.json b/loro-js/tsconfig.json index ba993f6e..32ba9135 100644 --- a/loro-js/tsconfig.json +++ b/loro-js/tsconfig.json @@ -97,5 +97,10 @@ /* Completeness */ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ "skipLibCheck": true /* Skip type checking all .d.ts files. */ - } + }, + "exclude": [ + "node_modules", + "dist", + "deno" + ] } diff --git a/loro-js/vite.config.ts b/loro-js/vite.config.ts index 7fa568cf..01fb3929 100644 --- a/loro-js/vite.config.ts +++ b/loro-js/vite.config.ts @@ -1,10 +1,12 @@ -/// +import { configDefaults, defineConfig } from 'vitest/config' import wasm from "vite-plugin-wasm"; -import { defineConfig } from "vite"; export default defineConfig({ plugins: [wasm()], - // test: { - // reporters:['hanging-process'] - // }, + test: { + exclude: [ + ...configDefaults.exclude, + "deno/*" + ] + }, });