From 2c1444d99147dff7ec0d3cf20be96e82b4607ed5 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 21 Mar 2019 23:42:50 +0000 Subject: [PATCH 1/4] fix: add type definition for configuring forkTsChecker --- packages/config/types/build.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/config/types/build.d.ts b/packages/config/types/build.d.ts index 3325cf1bea..2cc5d416f2 100644 --- a/packages/config/types/build.d.ts +++ b/packages/config/types/build.d.ts @@ -58,6 +58,9 @@ export interface NuxtConfigurationBuild { templates?: any terser?: TerserPluginOptions | boolean transpile?: (string | RegExp)[] + typescript?: { + typeCheck?: { [key: string]: string } | boolean // TBD - Couldn't find typedefs for the forkTsCheckerWebpackPlugin options + } useForkTsChecker?: { [key: string]: string } | boolean // TBD - Couldn't find typedefs for the forkTsCheckerWebpackPlugin options watch?: string[] } From 55dd4cb4df6812626899af4fc7ae212433834091 Mon Sep 17 00:00:00 2001 From: Kevin Marrec Date: Sat, 23 Mar 2019 14:06:49 +0000 Subject: [PATCH 2/4] greater flexibility for typeCheck options Co-Authored-By: danielroe --- packages/config/types/build.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/config/types/build.d.ts b/packages/config/types/build.d.ts index 2cc5d416f2..fc7ec1a5f1 100644 --- a/packages/config/types/build.d.ts +++ b/packages/config/types/build.d.ts @@ -59,7 +59,7 @@ export interface NuxtConfigurationBuild { terser?: TerserPluginOptions | boolean transpile?: (string | RegExp)[] typescript?: { - typeCheck?: { [key: string]: string } | boolean // TBD - Couldn't find typedefs for the forkTsCheckerWebpackPlugin options + typeCheck?: { [key: string]: any} | boolean // TBD - Couldn't find typedefs for the forkTsCheckerWebpackPlugin options } useForkTsChecker?: { [key: string]: string } | boolean // TBD - Couldn't find typedefs for the forkTsCheckerWebpackPlugin options watch?: string[] From 69d8001d0f6772f7d60bac00f491a0f8e720c91a Mon Sep 17 00:00:00 2001 From: Kevin Marrec Date: Sat, 23 Mar 2019 14:08:36 +0000 Subject: [PATCH 3/4] remove old plugin options key Co-Authored-By: danielroe --- packages/config/types/build.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/config/types/build.d.ts b/packages/config/types/build.d.ts index fc7ec1a5f1..c35726e255 100644 --- a/packages/config/types/build.d.ts +++ b/packages/config/types/build.d.ts @@ -61,6 +61,5 @@ export interface NuxtConfigurationBuild { typescript?: { typeCheck?: { [key: string]: any} | boolean // TBD - Couldn't find typedefs for the forkTsCheckerWebpackPlugin options } - useForkTsChecker?: { [key: string]: string } | boolean // TBD - Couldn't find typedefs for the forkTsCheckerWebpackPlugin options watch?: string[] } From b2a92ac4e354ebc020874fac72007cbf946a1a55 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sat, 23 Mar 2019 20:41:31 +0430 Subject: [PATCH 4/4] Update build.d.ts --- packages/config/types/build.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/config/types/build.d.ts b/packages/config/types/build.d.ts index c35726e255..43df12e941 100644 --- a/packages/config/types/build.d.ts +++ b/packages/config/types/build.d.ts @@ -59,7 +59,7 @@ export interface NuxtConfigurationBuild { terser?: TerserPluginOptions | boolean transpile?: (string | RegExp)[] typescript?: { - typeCheck?: { [key: string]: any} | boolean // TBD - Couldn't find typedefs for the forkTsCheckerWebpackPlugin options + typeCheck?: { [key: string]: any } | boolean // TBD - Couldn't find typedefs for the forkTsCheckerWebpackPlugin options } watch?: string[] }