This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| /* eslint-disable no-console -- cli tool */ | |
| // original: https://gist.github.com/felskov/84fa477e87fb18f3ff7bee4ee2ce1c57 | |
| // related issues: https://github.com/microsoft/TypeScript/issues/40426 https://github.com/microsoft/TypeScript/issues/47387 | |
| import ts from 'typescript' | |
| import { proxyCreateProgram } from '@volar/typescript' | |
| import { createVueLanguagePlugin, createParsedCommandLine } from '@vue/language-core'; | |
| const configFilePath = ts.findConfigFile( |