From 112816a3c7cf05614460547d500c259c1eb6568a Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Fri, 13 Dec 2019 14:24:24 -0500 Subject: [PATCH] Framework: Resolve WordPress package type imports (#18927) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Framework: Resolve WordPress package type imports * Framework: Resolve non-tranpspiled package source Co-Authored-By: Grzegorz (Greg) Ziółkowski --- tsconfig.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tsconfig.json b/tsconfig.json index 3e17b22c2eeb4..a3f2b8b31158f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,6 +10,15 @@ "resolveJsonModule": true, "target": "esnext", + /* Project Imports */ + "baseUrl": ".", + "paths": { + "@wordpress/*": [ + "packages/*/index.js", + "packages/*/src/index.js" + ] + }, + /* Strict Type-Checking Options */ "strict": true, /* Enable all strict type-checking options. */ "strictNullChecks": true,