How to use the @prisma/fetch-engine.ensureBinaries function in @prisma/fetch-engine

To help you get started, we’ve selected a few @prisma/fetch-engine examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github prisma / photonjs / packages / photon-generate / scripts / download.js View on Github external
const { ensureBinaries } = require('@prisma/fetch-engine')
const path = require('path')
const debug = require('debug')('download')
// Until https://github.com/zeit/ncc/issues/390 is resolved we have to do this 🙈
const runtimePath = eval(`path.join(__dirname, '../runtime')`)
debug(`Downloading binaries to ${runtimePath}`)
ensureBinaries(runtimePath)

@prisma/fetch-engine

This package is intended for Prisma's internal use

Apache-2.0
Latest version published 5 days ago

Package Health Score

95 / 100
Full package analysis

Similar packages