Skip to content

Commit

Permalink
ci(compile-references): add error info for configureTypeScriptNavigation
Browse files Browse the repository at this point in the history
Signed-off-by: zwing <[email protected]>
  • Loading branch information
zWingz authored and vince-fugnitto committed Jun 30, 2021
1 parent 3b49f05 commit 74cc16e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/compile-references.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function configureTypeScriptNavigation(targetPackage, tsconfigPath) {
const currentFsPaths = currentPaths[originalImportPath];

if (typeof currentFsPaths === 'undefined' || currentFsPaths.length !== 1 || currentFsPaths[0] !== mappedFsPath) {
console.error(`error: ${targetPackage.name} invalid mapped path: ${JSON.stringify({ [originalImportPath]: currentFsPaths })}`);
console.error(`error: ${targetPackage.name} invalid mapped path: {"${originalImportPath}": "${currentFsPaths}"}`);
currentPaths[originalImportPath] = [mappedFsPath];
needRewrite = true;
}
Expand Down

0 comments on commit 74cc16e

Please sign in to comment.