Skip to content

Commit

Permalink
chore: wip lambda - custom binary target
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Jul 28, 2020
1 parent e8db8b6 commit dc74861
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/packages/cli/scripts/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ async function main() {
)
} else {
createLockFile()
let binaryTargets = undefined
if (process.env.PRISMA_CLI_BINARY_TARGETS) {
binaryTargets = process.env.PRISMA_CLI_BINARY_TARGETS.split(',')
}
await download({
binaries: {
'query-engine': binaryDir,
Expand All @@ -35,6 +39,7 @@ async function main() {
showProgress: true,
version,
failSilent: true,
binaryTargets,
}).catch((e) => debug(e))

cleanupLockFile()
Expand Down

0 comments on commit dc74861

Please sign in to comment.