Comparing version 1.8.19 to 1.8.22
import type * as ts from 'typescript/lib/tsserverlibrary'; | ||
import * as vue from '@vue/language-core'; | ||
import * as vueTs from '@vue/typescript'; | ||
export type Hook = (program: _Program) => void; | ||
@@ -13,3 +12,4 @@ export type _Program = ts.Program & { | ||
vueCompilerOptions: Partial<vue.VueCompilerOptions>; | ||
languageService: ReturnType<typeof vueTs.createLanguageService>; | ||
langaugeContext: vue.LanguageContext; | ||
languageService: ts.LanguageService; | ||
} | ||
@@ -16,0 +16,0 @@ export declare function createProgram(options: ts.CreateProgramOptions): _Program; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createProgram = void 0; | ||
const vue = __importStar(require("@vue/language-core")); | ||
const vueTs = __importStar(require("@vue/typescript")); | ||
const vue = require("@vue/language-core"); | ||
const volarTs = require("@volar/typescript"); | ||
const shared_1 = require("./shared"); | ||
@@ -59,2 +36,5 @@ const windowsPathReg = /\\/g; | ||
}, | ||
get langaugeContext() { | ||
return languageContext; | ||
}, | ||
}; | ||
@@ -77,4 +57,7 @@ const vueCompilerOptions = getVueCompilerOptions(); | ||
}; | ||
const vueTsLs = vueTs.createLanguageService(languageHost, vueCompilerOptions, ts, ts.sys); | ||
program = vueTs.getProgram(ts, vueTsLs.__internal__.context, vueTsLs, ts.sys); | ||
const languageContext = vue.createLanguageContext(languageHost, vue.createLanguages(languageHost.getCompilationSettings(), vueCompilerOptions, ts)); | ||
const languageServiceHost = volarTs.createLanguageServiceHost(languageContext, ts, ts.sys, undefined); | ||
const vueTsLs = ts.createLanguageService(languageServiceHost, volarTs.getDocumentRegistry(ts, ts.sys.useCaseSensitiveFileNames, languageHost.workspacePath)); | ||
volarTs.decorateLanguageService(languageContext.virtualFiles, vueTsLs, false); | ||
program = volarTs.getProgram(ts, languageContext, vueTsLs, ts.sys); | ||
program.__vue = ctx; | ||
@@ -81,0 +64,0 @@ function getVueCompilerOptions() { |
{ | ||
"name": "vue-tsc", | ||
"version": "1.8.19", | ||
"version": "1.8.22", | ||
"main": "out/index.js", | ||
@@ -14,3 +14,3 @@ "license": "MIT", | ||
"url": "https://github.com/vuejs/language-tools.git", | ||
"directory": "packages/vue-tsc" | ||
"directory": "packages/tsc" | ||
}, | ||
@@ -21,4 +21,4 @@ "bin": { | ||
"dependencies": { | ||
"@vue/language-core": "1.8.19", | ||
"@vue/typescript": "1.8.19", | ||
"@volar/typescript": "~1.10.5", | ||
"@vue/language-core": "1.8.22", | ||
"semver": "^7.5.4" | ||
@@ -29,3 +29,3 @@ }, | ||
}, | ||
"gitHead": "2e17f3c9cfa827c71e1ed07331730b3ee2596b76" | ||
"gitHead": "1e8d09af0282c42dd816671ffcd5a2321276e3c3" | ||
} |
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
11279
217
+ Added@volar/typescript@~1.10.5
+ Added@vue/language-core@1.8.22(transitive)
+ Addedcomputeds@0.0.1(transitive)
- Removed@vue/typescript@1.8.19
- Removed@vue/language-core@1.8.19(transitive)
- Removed@vue/reactivity@3.5.6(transitive)
- Removed@vue/typescript@1.8.19(transitive)
Updated@vue/language-core@1.8.22