Skip to content

Commit

Permalink
Fix Prettier format
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldraper committed Oct 16, 2023
1 parent 3bbc315 commit dc752ca
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion prettier/rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@ load("//nodejs:rules.bzl", "nodejs_binary")
load("//util:path.bzl", "runfile_path")

def configure_prettier(name, config, config_dep, dep = "@better_rules_javascript//prettier:prettier_lib", plugins = [], visibility = None):
js_export(
name = "%s.prettier" % name,
dep = dep,
deps = plugins,
visibility = ["//visibility:private"],
)

js_export(
name = "%s.main" % name,
dep = "@better_rules_javascript//prettier/format:lib",
deps = [dep] + plugins,
deps = [":%s.prettier" % name],
extra_deps = [config_dep],
visibility = ["//visibility:private"],
)
Expand Down

0 comments on commit dc752ca

Please sign in to comment.