Skip to content

Commit 4ce8eb6

Browse files
author
Ives van Hoorne
committed
Fix relative dependency typing resolving
1 parent 73ae3a5 commit 4ce8eb6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/app/src/app/components/CodeEditor/Monaco/workers/fetch-dependency-typings.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,11 @@ function fetchFromTypings(dependency, version, fetchedPaths) {
212212
);
213213

214214
// get all files in the specified directory
215-
return getFileMetaData(dependency, version, types).then(fileData =>
215+
return getFileMetaData(
216+
dependency,
217+
version,
218+
path.join('/', path.dirname(types))
219+
).then(fileData =>
216220
getFileTypes(
217221
depUrl,
218222
dependency,

0 commit comments

Comments
 (0)