Skip to content

Commit

Permalink
fix rule typo
Browse files Browse the repository at this point in the history
  • Loading branch information
CooperBills committed Mar 24, 2022
1 parent 3a3b082 commit 3490636
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ npm install --save-dev prisma @prisma/client @prisma/engines
Add the following to your WORKSPACE after `rules_nodejs` and `@npm` have been initialized:

```python
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "rules_prisma",
...TODO
sha256 = "8feef60d3ac0faf369868bef3794677a7fc2f09fda00a6a70bf073e0400b8307",
strip_prefix = "rules_prisma-0.0.1",
url = "https://github.com/CooperBills/rules_prisma/archive/refs/tags/v0.0.1.tar.gz"
)
```

Expand All @@ -30,7 +34,7 @@ http_archive(
This target runs `prisma generate` on the given schema and can be targeted by typescript and javascript rules.

```python
load("@rules_prisma/prisma:prisma.bzl", "prisma_js_library")
load("@rules_prisma//prisma:prisma.bzl", "prisma_js_library")

prisma_js_library(
# name of target must match output directory defined in prisma schema
Expand Down
2 changes: 1 addition & 1 deletion prisma/prisma.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _prisma_js_library_impl(ctx):
ctx.actions.run(
mnemonic = "CompilePrisma",
outputs = [out_dir, out_schema] + out_js_arr + out_ts_arr,
executable = ctx.executable._prisma_wrapper,
executable = ctx.executable.prisma_wrapper,
arguments = [args],
inputs = inputs,
env = {
Expand Down

0 comments on commit 3490636

Please sign in to comment.