From 60163c65ab03486c9b7b3f8a67134da673c9d59b Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Sun, 2 Jul 2023 17:39:30 +0800 Subject: [PATCH] chore: add exclude config to tsconfig.json --- packages/create-vant-cli-app/tsconfig.json | 3 ++- packages/vant-area-data/tsconfig.json | 3 ++- packages/vant-cli/tsconfig.json | 3 ++- packages/vant-compat/tsconfig.json | 3 ++- packages/vant-popperjs/tsconfig.json | 3 ++- packages/vant-use/tsconfig.json | 3 ++- packages/vant/tsconfig.declaration.json | 2 +- packages/vant/tsconfig.json | 3 ++- 8 files changed, 15 insertions(+), 8 deletions(-) diff --git a/packages/create-vant-cli-app/tsconfig.json b/packages/create-vant-cli-app/tsconfig.json index 738ecb181..a5e16ef30 100644 --- a/packages/create-vant-cli-app/tsconfig.json +++ b/packages/create-vant-cli-app/tsconfig.json @@ -6,5 +6,6 @@ "module": "commonjs", "declaration": true }, - "include": ["src/**/*"] + "include": ["src/**/*"], + "exclude": ["**/node_modules", "**/.*/"] } diff --git a/packages/vant-area-data/tsconfig.json b/packages/vant-area-data/tsconfig.json index 04da53d75..8d24efe7b 100644 --- a/packages/vant-area-data/tsconfig.json +++ b/packages/vant-area-data/tsconfig.json @@ -4,5 +4,6 @@ "outDir": "./dist", "declaration": true }, - "include": ["src/**/*"] + "include": ["src/**/*"], + "exclude": ["**/node_modules", "**/.*/"] } diff --git a/packages/vant-cli/tsconfig.json b/packages/vant-cli/tsconfig.json index 12b1beb8b..632fd2594 100644 --- a/packages/vant-cli/tsconfig.json +++ b/packages/vant-cli/tsconfig.json @@ -5,5 +5,6 @@ "outDir": "./lib", "declaration": true }, - "include": ["src/**/*"] + "include": ["src/**/*"], + "exclude": ["**/node_modules", "**/.*/"] } diff --git a/packages/vant-compat/tsconfig.json b/packages/vant-compat/tsconfig.json index 04da53d75..8d24efe7b 100644 --- a/packages/vant-compat/tsconfig.json +++ b/packages/vant-compat/tsconfig.json @@ -4,5 +4,6 @@ "outDir": "./dist", "declaration": true }, - "include": ["src/**/*"] + "include": ["src/**/*"], + "exclude": ["**/node_modules", "**/.*/"] } diff --git a/packages/vant-popperjs/tsconfig.json b/packages/vant-popperjs/tsconfig.json index 04da53d75..8d24efe7b 100644 --- a/packages/vant-popperjs/tsconfig.json +++ b/packages/vant-popperjs/tsconfig.json @@ -4,5 +4,6 @@ "outDir": "./dist", "declaration": true }, - "include": ["src/**/*"] + "include": ["src/**/*"], + "exclude": ["**/node_modules", "**/.*/"] } diff --git a/packages/vant-use/tsconfig.json b/packages/vant-use/tsconfig.json index 04da53d75..8d24efe7b 100644 --- a/packages/vant-use/tsconfig.json +++ b/packages/vant-use/tsconfig.json @@ -4,5 +4,6 @@ "outDir": "./dist", "declaration": true }, - "include": ["src/**/*"] + "include": ["src/**/*"], + "exclude": ["**/node_modules", "**/.*/"] } diff --git a/packages/vant/tsconfig.declaration.json b/packages/vant/tsconfig.declaration.json index b617d2332..ce8fe263d 100644 --- a/packages/vant/tsconfig.declaration.json +++ b/packages/vant/tsconfig.declaration.json @@ -7,7 +7,7 @@ }, "include": ["es/**/*", "lib/**/*"], "exclude": [ - "node_modules", + "**/node_modules", "**/test/**/*", "**/demo/**/*", "**/vue-lazyload/*" diff --git a/packages/vant/tsconfig.json b/packages/vant/tsconfig.json index 11326058e..46ee8aeb3 100644 --- a/packages/vant/tsconfig.json +++ b/packages/vant/tsconfig.json @@ -4,5 +4,6 @@ "allowJs": true, "noImplicitThis": true }, - "include": ["src/**/*", "docs/**/*", "test/**/*"] + "include": ["src/**/*", "docs/**/*", "test/**/*"], + "exclude": ["**/node_modules", "**/.*/"] }