From c99a1eb6336d9516f91b8817e51778b0104a7d18 Mon Sep 17 00:00:00 2001 From: Christopher Allford <6451942+ObliviousHarmony@users.noreply.github.com> Date: Tue, 25 Apr 2023 13:20:04 -0700 Subject: [PATCH] Fixed Beta Tester TSConfig (#37841) All of our TS projects need this to avoid pulling conflict types from higher `node_modules` directories. --- .../changelog/fix-beta-tester-tsconfig | 5 +++++ plugins/woocommerce-beta-tester/tsconfig.json | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 plugins/woocommerce-beta-tester/changelog/fix-beta-tester-tsconfig diff --git a/plugins/woocommerce-beta-tester/changelog/fix-beta-tester-tsconfig b/plugins/woocommerce-beta-tester/changelog/fix-beta-tester-tsconfig new file mode 100644 index 00000000000..9c3c32dcaa0 --- /dev/null +++ b/plugins/woocommerce-beta-tester/changelog/fix-beta-tester-tsconfig @@ -0,0 +1,5 @@ +Significance: patch +Type: dev +Comment: Only made a change to a tsconfig that doesn't impact build output + + diff --git a/plugins/woocommerce-beta-tester/tsconfig.json b/plugins/woocommerce-beta-tester/tsconfig.json index 3961d163119..255cf24d29c 100644 --- a/plugins/woocommerce-beta-tester/tsconfig.json +++ b/plugins/woocommerce-beta-tester/tsconfig.json @@ -2,6 +2,12 @@ "compilerOptions": { // Target latest version of ECMAScript. "target": "esnext", + + // Make sure we're not pulling types from external projects. + "typeRoots": [ + "./typings", + "./node_modules/@types" + ], // Search under node_modules for non-relative imports. "moduleResolution": "node",