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
package-lock.json
/dist
/src/*.js
/src/*.d.ts

View File

@@ -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"},

View File

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

View File

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