@marko/type-check 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +3 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -229,6 +229,7 @@ function createCompilerHost(configFile, compilerOptions) {
|
|
|
229
229
|
const moduleName = moduleLiteral.text;
|
|
230
230
|
const processor = moduleName[0] !== "*" ? getProcessor(moduleName) : void 0;
|
|
231
231
|
if (processor) {
|
|
232
|
+
let isExternalLibraryImport = false;
|
|
232
233
|
let resolvedFileName;
|
|
233
234
|
if (fsPathReg.test(moduleName)) {
|
|
234
235
|
resolvedFileName = import_path.default.resolve(containingFile, "..", moduleName);
|
|
@@ -243,6 +244,7 @@ function createCompilerHost(configFile, compilerOptions) {
|
|
|
243
244
|
redirectedReference
|
|
244
245
|
);
|
|
245
246
|
if (resolvedModule) {
|
|
247
|
+
isExternalLibraryImport = true;
|
|
246
248
|
resolvedFileName = import_path.default.join(
|
|
247
249
|
resolvedModule.resolvedFileName,
|
|
248
250
|
"..",
|
|
@@ -280,7 +282,7 @@ function createCompilerHost(configFile, compilerOptions) {
|
|
|
280
282
|
resolvedModule: resolvedFileName ? {
|
|
281
283
|
resolvedFileName,
|
|
282
284
|
extension: processor.getScriptExtension(resolvedFileName),
|
|
283
|
-
isExternalLibraryImport
|
|
285
|
+
isExternalLibraryImport
|
|
284
286
|
} : void 0
|
|
285
287
|
});
|
|
286
288
|
} else if (resolvedModules) {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/type-check",
|
|
3
3
|
"description": "A CLI to type check Marko projects",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.13",
|
|
5
5
|
"bugs": "https://github.com/marko-js/language-server/issues/new?template=Bug_report.md",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@babel/code-frame": "^7.22.5",
|
|
8
|
-
"@marko/language-tools": "^2.0.
|
|
8
|
+
"@marko/language-tools": "^2.0.11",
|
|
9
9
|
"arg": "^5.0.2",
|
|
10
10
|
"kleur": "^4.1.5",
|
|
11
11
|
"strip-json-comments": "^3.1.1",
|