* Move CodeMirror LRLanguage to new file This separates the base language support from the LSP and color picker. * Move the base CodeMirror KCL support to a local package * Start CodeMirror grammar tests * Exclude vitest config in tsconfig * Add KCL path to tsconfig * Remove stray import * Drop extension from import * Use __filename for commonjs compat * Check exec return before access * Build ES and CJS to dist * Format * Exclude all.test.ts from codespell This is to work around "fileTests" imported from Lezer. Future codespell versions look like they'll allow the code to be annotated, which would be nicer. --------- Co-authored-by: Matt Mundell <matt@mundell.me>
41 lines
1.1 KiB
JSON
41 lines
1.1 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"baseUrl": "src",
|
|
"paths": {
|
|
"@kittycad/codemirror-lsp-client": [
|
|
"../packages/codemirror-lsp-client/src/index.ts"
|
|
],
|
|
"@kittycad/codemirror-lang-kcl": [
|
|
"../packages/codemirror-lang-kcl/src/index.ts"
|
|
],
|
|
"/*": ["src/*"]
|
|
},
|
|
"types": [
|
|
"vite/client",
|
|
"@types/wicg-file-system-access",
|
|
"node",
|
|
"mocha",
|
|
"@lezer/generator"
|
|
],
|
|
"target": "esnext",
|
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
"allowJs": true,
|
|
"skipLibCheck": true,
|
|
"esModuleInterop": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"strict": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"module": "commonjs",
|
|
"moduleResolution": "node",
|
|
"resolveJsonModule": true,
|
|
"composite": true,
|
|
"isolatedModules": true,
|
|
"noEmit": true,
|
|
"jsx": "react-jsx"
|
|
},
|
|
"include": ["src", "e2e", "packages", "*.ts"],
|
|
"exclude": ["node_modules", "./*.grammar", "vite.config.ts"],
|
|
"references": [{ "path": "./tsconfig.node.json" }]
|
|
}
|