@prisma/engines
Advanced tools
Comparing version 2.10.0-ops-change-publish-839167265cb5911733a89a0f23cc8ff4b15741d3 to 2.10.1-1-af1ae11a423edfb5d24092a85be11fa77c5e499c
export declare function getEnginesPath(): string; | ||
export declare function ensureBinariesExist(): Promise<void>; | ||
export { enginesVersion } from '@prisma/engines-version'; |
@@ -6,4 +6,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.enginesVersion = exports.getEnginesPath = void 0; | ||
exports.enginesVersion = exports.ensureBinariesExist = exports.getEnginesPath = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
const engines_version_1 = require("@prisma/engines-version"); | ||
const fetch_engine_1 = require("@prisma/fetch-engine"); | ||
function getEnginesPath() { | ||
@@ -13,4 +15,44 @@ return path_1.default.join(__dirname, '../'); | ||
exports.getEnginesPath = getEnginesPath; | ||
var engines_version_1 = require("@prisma/engines-version"); | ||
Object.defineProperty(exports, "enginesVersion", { enumerable: true, get: function () { return engines_version_1.enginesVersion; } }); | ||
async function ensureBinariesExist() { | ||
const binaryDir = path_1.default.join(__dirname, '../'); | ||
let binaryTargets = undefined; | ||
if (process.env.PRISMA_CLI_BINARY_TARGETS) { | ||
binaryTargets = process.env.PRISMA_CLI_BINARY_TARGETS.split(','); | ||
} | ||
await fetch_engine_1.download({ | ||
binaries: { | ||
'query-engine': binaryDir, | ||
'migration-engine': binaryDir, | ||
'introspection-engine': binaryDir, | ||
'prisma-fmt': binaryDir, | ||
}, | ||
showProgress: true, | ||
version: engines_version_1.enginesVersion, | ||
failSilent: false, | ||
binaryTargets, | ||
}); | ||
} | ||
exports.ensureBinariesExist = ensureBinariesExist; | ||
var engines_version_2 = require("@prisma/engines-version"); | ||
Object.defineProperty(exports, "enginesVersion", { enumerable: true, get: function () { return engines_version_2.enginesVersion; } }); | ||
/** | ||
* This annotation is used for `node-file-trace` | ||
* See https://github.com/zeit/node-file-trace/issues/104 | ||
* It's necessary to run this package standalone or within the sdk in Vercel | ||
*/ | ||
path_1.default.join(__dirname, '../query-engine-darwin'); | ||
path_1.default.join(__dirname, '../introspection-engine-darwin'); | ||
path_1.default.join(__dirname, '../prisma-fmt-darwin'); | ||
path_1.default.join(__dirname, '../query-engine-debian-openssl-1.0.x'); | ||
path_1.default.join(__dirname, '../introspection-engine-debian-openssl-1.0.x'); | ||
path_1.default.join(__dirname, '../prisma-fmt-debian-openssl-1.0.x'); | ||
path_1.default.join(__dirname, '../query-engine-debian-openssl-1.1.x'); | ||
path_1.default.join(__dirname, '../introspection-engine-debian-openssl-1.1.x'); | ||
path_1.default.join(__dirname, '../prisma-fmt-debian-openssl-1.1.x'); | ||
path_1.default.join(__dirname, '../query-engine-rhel-openssl-1.0.x'); | ||
path_1.default.join(__dirname, '../introspection-engine-rhel-openssl-1.0.x'); | ||
path_1.default.join(__dirname, '../prisma-fmt-rhel-openssl-1.0.x'); | ||
path_1.default.join(__dirname, '../query-engine-rhel-openssl-1.1.x'); | ||
path_1.default.join(__dirname, '../introspection-engine-rhel-openssl-1.1.x'); | ||
path_1.default.join(__dirname, '../prisma-fmt-rhel-openssl-1.1.x'); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@prisma/engines", | ||
"version": "2.10.0ops-change-publish-839167265cb5911733a89a0f23cc8ff4b15741d3", | ||
"version": "2.10.1-1-af1ae11a423edfb5d24092a85be11fa77c5e499c", | ||
"main": "dist/index.js", | ||
@@ -10,3 +10,3 @@ "types": "dist/index.d.ts", | ||
"@prisma/debug": "^2.9.0", | ||
"@prisma/engines-version": "2.10.0ops-change-publish-839167265cb5911733a89a0f23cc8ff4b15741d3", | ||
"@prisma/engines-version": "2.10.1-1-af1ae11a423edfb5d24092a85be11fa77c5e499c", | ||
"@prisma/fetch-engine": "^2.9.0", | ||
@@ -13,0 +13,0 @@ "@types/node": "^14.11.8", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
1175103
1255
11
101