Skip to content

Instantly share code, notes, and snippets.

View konstantinpflege's full-sized avatar

konstantinpflege

View GitHub Profile
@konstantinpflege
konstantinpflege / type-check.mjs
Created May 27, 2026 14:48
Checks a nuxt project (ts + vue + project references) for errors while filtering out node_modules errors
#!/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(