Skip to content

Commit

Permalink
Switch Tinymath to use peggy instead of pegjs
Browse files Browse the repository at this point in the history
  • Loading branch information
wylieconlon committed Apr 21, 2021
1 parent 1fb0090 commit f675acd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions packages/kbn-tinymath/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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()
],
)

Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==

[email protected]:
version "0.10.0"
resolved "https://registry.yarnpkg.com/pegjs/-/pegjs-0.10.0.tgz#cf8bafae6eddff4b5a7efb185269eaaf4610ddbd"
Expand Down

0 comments on commit f675acd

Please sign in to comment.