switching to peggy (#103169)

This commit is contained in:
Peter Pisljar 2021-06-24 12:23:41 +02:00 committed by GitHub
parent 4c2449fd28
commit 9a1f5a4a7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
load("@npm//pegjs:index.bzl", "pegjs")
load("@npm//peggy:index.bzl", "peggy")
load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
PKG_BASE_NAME = "kbn-interpreter"
@ -37,10 +37,10 @@ TYPES_DEPS = [
DEPS = SRC_DEPS + TYPES_DEPS
pegjs(
peggy(
name = "grammar",
data = [
":grammar/grammar.pegjs"
":grammar/grammar.peggy"
],
output_dir = True,
args = [
@ -48,7 +48,7 @@ pegjs(
"expression,argument",
"-o",
"$(@D)/index.js",
"./%s/grammar/grammar.pegjs" % package_name()
"./%s/grammar/grammar.peggy" % package_name()
],
)