@volar/typescript
Advanced tools
Comparing version 1.6.2 to 1.6.3
@@ -123,14 +123,7 @@ "use strict"; | ||
else { | ||
let scriptTarget = ts.ScriptTarget.JSON; | ||
if (fileName.endsWith('.js') | ||
|| fileName.endsWith('.ts') | ||
|| fileName.endsWith('.jsx') | ||
|| fileName.endsWith('.tsx') | ||
|| fileName.endsWith('.mjs') | ||
|| fileName.endsWith('.mts') | ||
|| fileName.endsWith('.cjs') | ||
|| fileName.endsWith('.cts')) { | ||
scriptTarget = ts.ScriptTarget.Latest; | ||
} | ||
file = ts.createSourceFile(fileName, docText, scriptTarget); | ||
file = ts.createSourceFile(fileName, docText, ts.ScriptTarget.Latest, undefined, ts.ScriptKind.Deferred); | ||
// fix https://github.com/vuejs/language-tools/issues/2622 for TS 5.0 | ||
file.originalFileName = fileName; | ||
file.path = fileName.toLowerCase(); | ||
file.resolvedPath = fileName.toLowerCase(); | ||
} | ||
@@ -137,0 +130,0 @@ } |
{ | ||
"name": "@volar/typescript", | ||
"version": "1.6.2", | ||
"version": "1.6.3", | ||
"main": "out/index.js", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/language-core": "1.6.2" | ||
"@volar/language-core": "1.6.3" | ||
}, | ||
@@ -22,3 +22,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "1a044d2d633de5beb7e1a14689141037854ea441" | ||
"gitHead": "79c29a4632028168280819ecd6c0d68e31c08848" | ||
} |
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
21340
443
+ Added@volar/language-core@1.6.3(transitive)
+ Added@volar/source-map@1.6.3(transitive)
- Removed@volar/language-core@1.6.2(transitive)
- Removed@volar/source-map@1.6.2(transitive)
Updated@volar/language-core@1.6.3