@volar/typescript
Advanced tools
Comparing version 2.2.0-alpha.11 to 2.2.0-alpha.12
@@ -16,2 +16,3 @@ "use strict"; | ||
case 'tsx': return 'typescriptreact'; | ||
case 'json': return 'json'; | ||
} | ||
@@ -18,0 +19,0 @@ }, |
import type * as ts from 'typescript'; | ||
import type { LanguagePlugin } from '@volar/language-core'; | ||
export declare let getLanguagePlugins: (ts: typeof import('typescript'), options: ts.CreateProgramOptions) => LanguagePlugin[]; | ||
export declare let getLanguageId: (fileName: string) => string; | ||
export declare function runTsc(tscPath: string, extensions: string[], _getLanguagePlugins: typeof getLanguagePlugins, _getLanguageId: typeof getLanguageId): void; | ||
export declare function runTsc(tscPath: string, extensions: string[], _getLanguagePlugins: typeof getLanguagePlugins): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.runTsc = exports.getLanguageId = exports.getLanguagePlugins = void 0; | ||
exports.runTsc = exports.getLanguagePlugins = void 0; | ||
const fs = require("fs"); | ||
let getLanguagePlugins = () => []; | ||
exports.getLanguagePlugins = getLanguagePlugins; | ||
let getLanguageId = () => 'ts'; | ||
exports.getLanguageId = getLanguageId; | ||
function runTsc(tscPath, extensions, _getLanguagePlugins, _getLanguageId) { | ||
function runTsc(tscPath, extensions, _getLanguagePlugins) { | ||
exports.getLanguagePlugins = _getLanguagePlugins; | ||
exports.getLanguageId = _getLanguageId; | ||
const proxyApiPath = require.resolve('../node/proxyCreateProgram'); | ||
@@ -28,3 +25,2 @@ const readFileSync = fs.readFileSync; | ||
`require(${JSON.stringify(__filename)}).getLanguagePlugins`, | ||
`require(${JSON.stringify(__filename)}).getLanguageId`, | ||
].join(', ') | ||
@@ -31,0 +27,0 @@ + `);\n` |
{ | ||
"name": "@volar/typescript", | ||
"version": "2.2.0-alpha.11", | ||
"version": "2.2.0-alpha.12", | ||
"license": "MIT", | ||
@@ -15,3 +15,3 @@ "files": [ | ||
"dependencies": { | ||
"@volar/language-core": "2.2.0-alpha.11", | ||
"@volar/language-core": "2.2.0-alpha.12", | ||
"path-browserify": "^1.0.1" | ||
@@ -22,5 +22,5 @@ }, | ||
"@types/path-browserify": "latest", | ||
"@volar/language-service": "2.2.0-alpha.11" | ||
"@volar/language-service": "2.2.0-alpha.12" | ||
}, | ||
"gitHead": "b3e82d02777af164097a7f268e602bc7f94ea1cd" | ||
"gitHead": "bf61f7a5a4a51669621e951f32ddf102f03a333d" | ||
} |
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
179184
3844
+ Added@volar/language-core@2.2.0-alpha.12(transitive)
+ Added@volar/source-map@2.2.0-alpha.12(transitive)
- Removed@volar/language-core@2.2.0-alpha.11(transitive)
- Removed@volar/source-map@2.2.0-alpha.11(transitive)