mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-28 03:05:04 -06:00
45a3d8ee70
This commit addresses issues around vendoring the 3rd party GraphQL parser library, `vektah/gqlparser`, which is used by our GraphQL builtins. By directly depending on the library, we accidentally forced all of our library users to have to match `gqlparser` versions, which could cause problems if they wanted to use downstream GraphQL libraries. To fix this version clash problem, this PR internalizes `vektah/gqlparser` v2.4.8 into the `internal/gqlparser` package (we can update to v2.5.0 later). Scripts are included to automate some of the internalizing process if we wish to update the library in the future. Fixes: #5065 Signed-off-by: Philip Conrad <philipaconrad@gmail.com>
20 lines
421 B
JSON
20 lines
421 B
JSON
{
|
|
"scripts": {
|
|
"fmt": "prettier -w '*.js'"
|
|
},
|
|
"dependencies": {
|
|
"@babel/cli": "^7.16.8",
|
|
"@babel/core": "^7.16.12",
|
|
"@babel/node": "^7.16.8",
|
|
"@babel/plugin-transform-typescript": "^7.16.8",
|
|
"@babel/preset-env": "^7.16.11",
|
|
"@babel/preset-flow": "^7.16.7",
|
|
"chai": "^4.3.6",
|
|
"iterall": "^1.3.0",
|
|
"js-yaml": "^4.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"prettier": "^2.5.1"
|
|
}
|
|
}
|