From 784024fd1ff9164c88fd7080ee194309e82ac867 Mon Sep 17 00:00:00 2001 From: samuel Date: Fri, 16 Feb 2024 14:11:16 +0100 Subject: [PATCH] fix --- apps/authz/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/authz/Makefile b/apps/authz/Makefile index bc8dc6486..fa2cb7c73 100644 --- a/apps/authz/Makefile +++ b/apps/authz/Makefile @@ -78,7 +78,13 @@ authz/rego/build: authz/rego/eval: npx ts-node \ --compiler-options "{\"module\":\"CommonJS\"}" \ - ${AUTHZ_PROJECT_DIR}/src/opa/rego/script.ts + ${AUTHZ_PROJECT_DIR}/src/opa/template/evaluation.script.ts + +authz/rego/translate: + npx dotenv -e ${AUTHZ_PROJECT_DIR}/.env -- \ + ts-node -r tsconfig-paths/register \ + --project ${AUTHZ_PROJECT_DIR}/tsconfig.app.json ${AUTHZ_PROJECT_DIR}/src/opa/template/translate-legacy-policy.script.ts + authz/rego/test: opa test \ @@ -91,7 +97,3 @@ authz/rego/test: authz/rego/test/watch: make authz/rego/test ARGS=--watch -authz/rego/translate-legacy-policy: - npx dotenv -e ${AUTHZ_PROJECT_DIR}/.env -- \ - ts-node -r tsconfig-paths/register \ - --project ${AUTHZ_PROJECT_DIR}/tsconfig.app.json ${AUTHZ_PROJECT_DIR}/src/opa/template/translate-legacy-policy.script.ts