From 349063623166de0d0052e6b6cae264be2aafb7f6 Mon Sep 17 00:00:00 2001 From: Cooper Bills Date: Thu, 24 Mar 2022 10:54:43 -0700 Subject: [PATCH] fix rule typo --- README.md | 8 ++++++-- prisma/prisma.bzl | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3cb0dff..a864ee5 100644 --- a/README.md +++ b/README.md @@ -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" ) ``` @@ -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 diff --git a/prisma/prisma.bzl b/prisma/prisma.bzl index 80daa6c..e696f9c 100644 --- a/prisma/prisma.bzl +++ b/prisma/prisma.bzl @@ -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 = {