@waiting/shared-types-dev
Advanced tools
Comparing version 12.0.0 to 12.0.1
@@ -48,5 +48,12 @@ import assert from 'node:assert'; | ||
// const checker = project.getTypeChecker() | ||
const pathFix = genAbsolutePath(sourcePath); | ||
const sourceFile = project.addSourceFileAtPath(pathFix); | ||
return sourceFile; | ||
try { | ||
const pathFix = genAbsolutePath(sourcePath); | ||
const sourceFile = project.addSourceFileAtPath(pathFix); | ||
return sourceFile; | ||
} | ||
catch (ex) { | ||
throw new Error(`createSourceFile() failed with sourcePath: "${sourcePath}"`, { | ||
cause: ex, | ||
}); | ||
} | ||
} | ||
@@ -53,0 +60,0 @@ export function isTypeImported(file, matchTypeName, moduleName) { |
{ | ||
"name": "@waiting/shared-types-dev", | ||
"author": "waiting", | ||
"version": "12.0.0", | ||
"version": "12.0.1", | ||
"description": "shared typescript types devel", | ||
@@ -69,3 +69,3 @@ "private": false, | ||
}, | ||
"gitHead": "5a4bae34048752ec40cbdfdccb52bc0528f797a4" | ||
"gitHead": "99dadddc3cacb112fd370a311c7ffaf44d067b6c" | ||
} |
@@ -71,5 +71,12 @@ import assert from 'node:assert' | ||
// const checker = project.getTypeChecker() | ||
const pathFix = genAbsolutePath(sourcePath) | ||
const sourceFile = project.addSourceFileAtPath(pathFix) | ||
return sourceFile | ||
try { | ||
const pathFix = genAbsolutePath(sourcePath) | ||
const sourceFile = project.addSourceFileAtPath(pathFix) | ||
return sourceFile | ||
} | ||
catch (ex) { | ||
throw new Error(`createSourceFile() failed with sourcePath: "${sourcePath}"`, { | ||
cause: ex, | ||
}) | ||
} | ||
} | ||
@@ -76,0 +83,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176798
3132