From 5f422dc6a0d93c3653e8591581efcafe9132ab40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nacho=20Cord=C3=B3n?= Date: Thu, 19 Oct 2023 15:46:21 +0200 Subject: [PATCH] Uses incremental compilations and doesn't check semantic analysis file --- packages/language-support/package.json | 1 - .../src/highlighting/syntaxValidation/semanticAnalysis.js | 1 + tsconfig.base.json | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/language-support/package.json b/packages/language-support/package.json index 15d78b1b1..44002edc3 100644 --- a/packages/language-support/package.json +++ b/packages/language-support/package.json @@ -14,7 +14,6 @@ }, "scripts": { "gen-parser": "antlr4 -Dlanguage=TypeScript -visitor src/antlr-grammar/CypherParser.g4 src/antlr-grammar/CypherLexer.g4 -o src/generated-parser/ -Xexact-output-dir", - "postinstall": "npm run gen-parser", "build": "npm run gen-parser && concurrently \"npm:build-esm\" \"npm:build-commonjs\"", "build-esm": "tsc --module esnext --outDir esm", "build-commonjs": "tsc --module commonjs --outDir dist", diff --git a/packages/language-support/src/highlighting/syntaxValidation/semanticAnalysis.js b/packages/language-support/src/highlighting/syntaxValidation/semanticAnalysis.js index 385164a99..90d94f8ef 100644 --- a/packages/language-support/src/highlighting/syntaxValidation/semanticAnalysis.js +++ b/packages/language-support/src/highlighting/syntaxValidation/semanticAnalysis.js @@ -1,3 +1,4 @@ +// @ts-nocheck "use strict"; export function semanticAnalysis(queryText){ var main; diff --git a/tsconfig.base.json b/tsconfig.base.json index bd5e9b336..e73b11c15 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -9,7 +9,8 @@ "skipLibCheck": true, "sourceMap": true, "target": "ESNext", - "outDir": "dist" + "outDir": "dist", + "incremental": false }, "exclude": ["node_modules", ".vscode-test"] }