fix: compiling issues for codemirror-lang-graphql

This commit is contained in:
Andrew Bastin
2021-11-10 14:31:00 +05:30
parent a967100be8
commit 245b8a6e3c
5 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,4 @@
/node_modules /node_modules
package-lock.json package-lock.json
/dist /dist
/src/*.js
/src/*.d.ts /src/*.d.ts

View File

@@ -2,7 +2,7 @@ import typescript from "rollup-plugin-ts"
import {lezer} from "@lezer/generator/rollup" import {lezer} from "@lezer/generator/rollup"
export default { export default {
input: "src/index.ts", input: "src/index.js",
external: id => id != "tslib" && !/^(\.?\/|\w:)/.test(id), external: id => id != "tslib" && !/^(\.?\/|\w:)/.test(id),
output: [ output: [
{file: "dist/index.cjs", format: "cjs"}, {file: "dist/index.cjs", format: "cjs"},

View File

@@ -338,7 +338,7 @@ TypeSystemDirectiveLocation {
@tokens { @tokens {
Whitespace { Whitespace {
std.whitespace std.whitespace+
} }
StringValue { StringValue {
"\"\"\"" (!["] | "\\n" | "\"" "\""? !["])* "\"\"\"" | "\"" !["\\\n]* "\"" "\"\"\"" (!["] | "\\n" | "\"" "\""? !["])* "\"\"\"" | "\"" !["\\\n]* "\""

View File

@@ -5,7 +5,8 @@
"module": "es2020", "module": "es2020",
"newLine": "lf", "newLine": "lf",
"declaration": true, "declaration": true,
"moduleResolution": "node" "moduleResolution": "node",
"allowJs": true,
}, },
"include": ["src/*.ts"] "include": ["src/*"]
} }