Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: compiling issues for codemirror-lang-graphql
Andrew Bastin245b8a6e3c80
diff --git a/packages/codemirror-lang-graphql/.gitignore b/packages/codemirror-lang-graphql/.gitignoreindex a97c46617..0ef473202 100644--- a/packages/codemirror-lang-graphql/.gitignore+++ b/packages/codemirror-lang-graphql/.gitignore@@ -1,5 +1,4 @@/node_modulespackage-lock.json/dist-/src/*.js/src/*.d.tsdiff --git a/packages/codemirror-lang-graphql/rollup.config.js b/packages/codemirror-lang-graphql/rollup.config.jsindex d8d87c181..f4367e403 100644--- a/packages/codemirror-lang-graphql/rollup.config.js+++ b/packages/codemirror-lang-graphql/rollup.config.js@@ -2,7 +2,7 @@ import typescript from "rollup-plugin-ts"import {lezer} from "@lezer/generator/rollup"export default {- input: "src/index.ts",+ input: "src/index.js",external: id => id != "tslib" && !/^(\.?\/|\w:)/.test(id),output: [{file: "dist/index.cjs", format: "cjs"},diff --git a/packages/codemirror-lang-graphql/src/index.ts b/packages/codemirror-lang-graphql/src/index.jssimilarity index 100%rename from packages/codemirror-lang-graphql/src/index.tsrename to packages/codemirror-lang-graphql/src/index.jsdiff --git a/packages/codemirror-lang-graphql/src/syntax.grammar b/packages/codemirror-lang-graphql/src/syntax.grammarindex 42f25a51a..6417271f0 100644--- a/packages/codemirror-lang-graphql/src/syntax.grammar+++ b/packages/codemirror-lang-graphql/src/syntax.grammar@@ -338,7 +338,7 @@ TypeSystemDirectiveLocation {@tokens {Whitespace {- std.whitespace+ std.whitespace+}StringValue {"\"\"\"" (!["] | "\\n" | "\"" "\""? !["])* "\"\"\"" | "\"" !["\\\n]* "\""diff --git a/packages/codemirror-lang-graphql/tsconfig.json b/packages/codemirror-lang-graphql/tsconfig.jsonindex d87615219..d91b09866 100644--- a/packages/codemirror-lang-graphql/tsconfig.json+++ b/packages/codemirror-lang-graphql/tsconfig.json@@ -5,7 +5,8 @@"module": "es2020","newLine": "lf","declaration": true,- "moduleResolution": "node"+ "moduleResolution": "node",+ "allowJs": true,},- "include": ["src/*.ts"]-}+ "include": ["src/*"]+}\ No newline at end of file