Skip to content

Commit

Permalink
Use policy entrypoint constant
Browse files Browse the repository at this point in the history
  • Loading branch information
wcalderipe committed Mar 18, 2024
1 parent 35043bb commit 8b11c74
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Policy } from '@narval/policy-engine-shared'
import { exec as execCommand } from 'child_process'
import { cp, mkdir, readFile, rm, writeFile } from 'fs/promises'
import { promisify } from 'util'
import { POLICY_ENTRYPOINT } from '../../open-policy-agent.constant'
import { transpile } from './rego-transpiler.util'

type BuildWebAssemblyOption = {
Expand Down Expand Up @@ -52,7 +53,7 @@ export const buildOpaBundle = async (option: { regoSourceDirectory: string; dist
'opa',
'build',
'--target wasm',
'--entrypoint main/evaluate',
`--entrypoint ${POLICY_ENTRYPOINT}`,
`--bundle ${option.regoSourceDirectory}`,
`--output ${bundleFile}`
]
Expand Down

0 comments on commit 8b11c74

Please sign in to comment.