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