fix: correct broken codemirror-lang-graphql in node 22 (#4514)

This commit is contained in:
Andrew Bastin
2024-11-05 16:06:39 +05:30
committed by GitHub
parent 223dd25788
commit 6ad2b5a3bb
4 changed files with 91 additions and 307 deletions

View File

@@ -5,7 +5,7 @@
"author": "Hoppscotch (support@hoppscotch.io)",
"license": "MIT",
"scripts": {
"prepare": "rollup -c"
"prepare": "rollup -c && tsc --emitDeclarationOnly --declaration"
},
"type": "module",
"main": "dist/index.cjs",
@@ -25,8 +25,7 @@
"@lezer/generator": "1.5.1",
"mocha": "9.2.2",
"rollup": "3.29.4",
"rollup-plugin-dts": "6.0.2",
"rollup-plugin-ts": "3.4.5",
"@rollup/plugin-typescript": "12.1.1",
"typescript": "5.2.2"
}
}
}

View File

@@ -1,4 +1,4 @@
import typescript from "rollup-plugin-ts"
import typescript from "@rollup/plugin-typescript"
import { lezer } from "@lezer/generator/rollup"
export default {
@@ -8,5 +8,10 @@ export default {
{ file: "dist/index.cjs", format: "cjs" },
{ dir: "./dist", format: "es" },
],
plugins: [lezer(), typescript()],
plugins: [
lezer(),
typescript({
tsconfig: "./tsconfig.json"
})
],
}

View File

@@ -5,6 +5,7 @@
"module": "es2020",
"newLine": "lf",
"declaration": true,
"declarationDir": "./dist",
"moduleResolution": "node",
"allowJs": true
},