@marko/type-check 0.0.12 → 0.0.14
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 -3
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -45,8 +45,6 @@ var fsPathReg = /^(?:[./\\]|[A-Z]:)/i;
|
|
|
45
45
|
var modulePartsReg = /^((?:@(?:[^/]+)\/)?(?:[^/]+))(.*)$/;
|
|
46
46
|
var extractCache = /* @__PURE__ */ new WeakMap();
|
|
47
47
|
var requiredTSCompilerOptions = {
|
|
48
|
-
module: import_tsserverlibrary.default.ModuleKind.ESNext,
|
|
49
|
-
moduleResolution: import_tsserverlibrary.default.ModuleResolutionKind.Bundler,
|
|
50
48
|
allowJs: true,
|
|
51
49
|
declaration: true,
|
|
52
50
|
skipLibCheck: true,
|
|
@@ -229,6 +227,7 @@ function createCompilerHost(configFile, compilerOptions) {
|
|
|
229
227
|
const moduleName = moduleLiteral.text;
|
|
230
228
|
const processor = moduleName[0] !== "*" ? getProcessor(moduleName) : void 0;
|
|
231
229
|
if (processor) {
|
|
230
|
+
let isExternalLibraryImport = false;
|
|
232
231
|
let resolvedFileName;
|
|
233
232
|
if (fsPathReg.test(moduleName)) {
|
|
234
233
|
resolvedFileName = import_path.default.resolve(containingFile, "..", moduleName);
|
|
@@ -243,6 +242,7 @@ function createCompilerHost(configFile, compilerOptions) {
|
|
|
243
242
|
redirectedReference
|
|
244
243
|
);
|
|
245
244
|
if (resolvedModule) {
|
|
245
|
+
isExternalLibraryImport = true;
|
|
246
246
|
resolvedFileName = import_path.default.join(
|
|
247
247
|
resolvedModule.resolvedFileName,
|
|
248
248
|
"..",
|
|
@@ -280,7 +280,7 @@ function createCompilerHost(configFile, compilerOptions) {
|
|
|
280
280
|
resolvedModule: resolvedFileName ? {
|
|
281
281
|
resolvedFileName,
|
|
282
282
|
extension: processor.getScriptExtension(resolvedFileName),
|
|
283
|
-
isExternalLibraryImport
|
|
283
|
+
isExternalLibraryImport
|
|
284
284
|
} : void 0
|
|
285
285
|
});
|
|
286
286
|
} else if (resolvedModules) {
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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.14",
|
|
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",
|
|
12
|
-
"typescript": "5.1.
|
|
12
|
+
"typescript": "^5.1.6"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@types/babel__code-frame": "^7.0.3"
|