Skip to content

Commit 8fd1766

Browse files
committed
Fix TypeScript errors from terriajs-cesium workspace package @ts-check files
Cesium started adding `@ts-check` to their JS source files. Because terriajs-cesium can be a yarn workspace package symlinked into node_modules, TypeScript resolves the symlink to the real path outside node_modules and reports errors from those files. preserveSymlinks: true keeps the symlink path intact so TypeScript treats the cesium source as library code and suppresses error reporting.
1 parent a106280 commit 8fd1766

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"../../../node_modules/",
2727
"../../../node_modules/@types/"
2828
],
29+
"preserveSymlinks": true,
2930
"types": ["terriajs-cesium", "@testing-library/jasmine-dom"]
3031
},
3132
"include": ["./lib/**/*", "./test/**/*", "./buildprocess/**/*"]

0 commit comments

Comments
 (0)