From e5d894ab4617a37d21b17dc10fa401db82a8cd74 Mon Sep 17 00:00:00 2001 From: smouillour Date: Thu, 12 Oct 2023 16:47:12 +0200 Subject: [PATCH] add compiler option in http to add type jest --- fork/dynamic-cdn-webpack-plugin/src/find.js | 1 - packages/http/tsconfig.json | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fork/dynamic-cdn-webpack-plugin/src/find.js b/fork/dynamic-cdn-webpack-plugin/src/find.js index f8d937ba951..b2c9a2c7d16 100644 --- a/fork/dynamic-cdn-webpack-plugin/src/find.js +++ b/fork/dynamic-cdn-webpack-plugin/src/find.js @@ -86,7 +86,6 @@ function findPackagesFromNonScopeFolder(scope, name, nonScopeFolderPath) { } function findPackages(scope, name, buff = []) { - console.log('findPackages', scope, name, buff); // https://nodejs.org/dist/latest-v14.x/docs/api/modules.html#modules_require_resolve_paths_request const roots = require.resolve.paths(name).filter(p => fs.existsSync(p)); if (roots === null) { diff --git a/packages/http/tsconfig.json b/packages/http/tsconfig.json index 23310ba411a..845fe55cb54 100644 --- a/packages/http/tsconfig.json +++ b/packages/http/tsconfig.json @@ -5,6 +5,7 @@ "allowJs": false, "declaration": true, "target": "ES5", - "module": "CommonJs" + "module": "CommonJs", + "types": ["jest"] } }