mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Switch Tinymath to use peggy instead of pegjs (#97906)
This commit is contained in:
parent
8bbf9c0e28
commit
d25bd680eb
4 changed files with 10 additions and 4 deletions
|
@ -300,6 +300,7 @@
|
|||
"p-retry": "^4.2.0",
|
||||
"papaparse": "^5.2.0",
|
||||
"pdfmake": "^0.1.65",
|
||||
"peggy": "^1.0.0",
|
||||
"pegjs": "0.10.0",
|
||||
"pluralize": "3.1.0",
|
||||
"pngjs": "^3.4.0",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
|
||||
load("@npm//pegjs:index.bzl", "pegjs")
|
||||
load("@npm//peggy:index.bzl", "peggy")
|
||||
|
||||
PKG_BASE_NAME = "kbn-tinymath"
|
||||
PKG_REQUIRE_NAME = "@kbn/tinymath"
|
||||
|
@ -30,16 +30,16 @@ DEPS = [
|
|||
"@npm//lodash",
|
||||
]
|
||||
|
||||
pegjs(
|
||||
peggy(
|
||||
name = "grammar",
|
||||
data = [
|
||||
":grammar/grammar.pegjs"
|
||||
":grammar/grammar.peggy"
|
||||
],
|
||||
output_dir = True,
|
||||
args = [
|
||||
"-o",
|
||||
"$(@D)/index.js",
|
||||
"./%s/grammar/grammar.pegjs" % package_name()
|
||||
"./%s/grammar/grammar.peggy" % package_name()
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -21252,6 +21252,11 @@ pdfmake@^0.1.65:
|
|||
pdfkit "^0.11.0"
|
||||
svg-to-pdfkit "^0.1.8"
|
||||
|
||||
peggy@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/peggy/-/peggy-1.0.0.tgz#df6c7816c9df0ef35e071aaf96836cb866fe7eb4"
|
||||
integrity sha512-lH12sxAXj4Aug+vH6IGoByIQOREIlhH+x4Uzb9kce6DD8wcGeidkC0JYEOwHormKrLt5BFLTbR4PuD/tiMOirQ==
|
||||
|
||||
pegjs@0.10.0:
|
||||
version "0.10.0"
|
||||
resolved "https://registry.yarnpkg.com/pegjs/-/pegjs-0.10.0.tgz#cf8bafae6eddff4b5a7efb185269eaaf4610ddbd"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue