1
- import { enginesVersion } from " @prisma/engines-version" ;
2
- import { download } from " @prisma/fetch-engine" ;
3
- import path from " path" ;
1
+ import { enginesVersion } from ' @prisma/engines-version'
2
+ import { download } from ' @prisma/fetch-engine'
3
+ import path from ' path'
4
4
5
5
export function getEnginesPath ( ) {
6
- return path . join ( __dirname , " ../" ) ;
6
+ return path . join ( __dirname , ' ../' )
7
7
}
8
8
9
9
export async function ensureBinariesExist ( ) {
10
- const binaryDir = path . join ( __dirname , " ../" ) ;
11
- let binaryTargets = undefined ;
10
+ const binaryDir = path . join ( __dirname , ' ../' )
11
+ let binaryTargets = undefined
12
12
if ( process . env . PRISMA_CLI_BINARY_TARGETS ) {
13
- binaryTargets = process . env . PRISMA_CLI_BINARY_TARGETS . split ( "," ) ;
13
+ binaryTargets = process . env . PRISMA_CLI_BINARY_TARGETS . split ( ',' )
14
14
}
15
15
await download ( {
16
16
binaries : {
17
- " query-engine" : binaryDir ,
18
- " migration-engine" : binaryDir ,
19
- " introspection-engine" : binaryDir ,
20
- " prisma-fmt" : binaryDir ,
17
+ ' query-engine' : binaryDir ,
18
+ ' migration-engine' : binaryDir ,
19
+ ' introspection-engine' : binaryDir ,
20
+ ' prisma-fmt' : binaryDir ,
21
21
} ,
22
22
showProgress : true ,
23
23
version : enginesVersion ,
24
24
failSilent : false ,
25
25
binaryTargets,
26
- } ) ;
26
+ } )
27
27
}
28
28
29
- export { enginesVersion } from " @prisma/engines-version" ;
29
+ export { enginesVersion } from ' @prisma/engines-version'
30
30
31
31
/**
32
32
* This annotation is used for `node-file-trace`
@@ -35,33 +35,33 @@ export { enginesVersion } from "@prisma/engines-version";
35
35
* And needed for https://github.com/vercel/pkg#detecting-assets-in-source-code
36
36
*/
37
37
38
- path . join ( __dirname , " ../query-engine-darwin" ) ;
39
- path . join ( __dirname , " ../introspection-engine-darwin" ) ;
40
- path . join ( __dirname , " ../prisma-fmt-darwin" ) ;
38
+ path . join ( __dirname , ' ../query-engine-darwin' )
39
+ path . join ( __dirname , ' ../introspection-engine-darwin' )
40
+ path . join ( __dirname , ' ../prisma-fmt-darwin' )
41
41
42
- path . join ( __dirname , " ../query-engine-debian-openssl-1.0.x" ) ;
43
- path . join ( __dirname , " ../introspection-engine-debian-openssl-1.0.x" ) ;
44
- path . join ( __dirname , " ../prisma-fmt-debian-openssl-1.0.x" ) ;
42
+ path . join ( __dirname , ' ../query-engine-debian-openssl-1.0.x' )
43
+ path . join ( __dirname , ' ../introspection-engine-debian-openssl-1.0.x' )
44
+ path . join ( __dirname , ' ../prisma-fmt-debian-openssl-1.0.x' )
45
45
46
- path . join ( __dirname , " ../query-engine-debian-openssl-1.1.x" ) ;
47
- path . join ( __dirname , " ../introspection-engine-debian-openssl-1.1.x" ) ;
48
- path . join ( __dirname , " ../prisma-fmt-debian-openssl-1.1.x" ) ;
46
+ path . join ( __dirname , ' ../query-engine-debian-openssl-1.1.x' )
47
+ path . join ( __dirname , ' ../introspection-engine-debian-openssl-1.1.x' )
48
+ path . join ( __dirname , ' ../prisma-fmt-debian-openssl-1.1.x' )
49
49
50
- path . join ( __dirname , " ../query-engine-rhel-openssl-1.0.x" ) ;
51
- path . join ( __dirname , " ../introspection-engine-rhel-openssl-1.0.x" ) ;
52
- path . join ( __dirname , " ../prisma-fmt-rhel-openssl-1.0.x" ) ;
50
+ path . join ( __dirname , ' ../query-engine-rhel-openssl-1.0.x' )
51
+ path . join ( __dirname , ' ../introspection-engine-rhel-openssl-1.0.x' )
52
+ path . join ( __dirname , ' ../prisma-fmt-rhel-openssl-1.0.x' )
53
53
54
- path . join ( __dirname , " ../query-engine-rhel-openssl-1.1.x" ) ;
55
- path . join ( __dirname , " ../introspection-engine-rhel-openssl-1.1.x" ) ;
56
- path . join ( __dirname , " ../prisma-fmt-rhel-openssl-1.1.x" ) ;
54
+ path . join ( __dirname , ' ../query-engine-rhel-openssl-1.1.x' )
55
+ path . join ( __dirname , ' ../introspection-engine-rhel-openssl-1.1.x' )
56
+ path . join ( __dirname , ' ../prisma-fmt-rhel-openssl-1.1.x' )
57
57
58
58
// NAPI
59
- path . join ( __dirname , " ../libquery_engine_napi-darwin.dylib.node" ) ;
60
- path . join ( __dirname , " ../libquery_engine_napi-debian-openssl-1.0.x.so.node" ) ;
61
- path . join ( __dirname , " ../libquery_engine_napi-debian-openssl-1.1.x.so.node" ) ;
62
- path . join ( __dirname , " ../libquery_engine_napi-linux-arm-openssl-1.0.x.so.node" ) ;
63
- path . join ( __dirname , " ../libquery_engine_napi-linux-arm-openssl-1.1.x.so.node" ) ;
64
- path . join ( __dirname , " ../libquery_engine_napi-linux-musl.so.node" ) ;
65
- path . join ( __dirname , " ../libquery_engine_napi-rhel-openssl-1.0.x.so.node" ) ;
66
- path . join ( __dirname , " ../libquery_engine_napi-rhel-openssl-1.1.x.so.node" ) ;
67
- path . join ( __dirname , " ../query_engine_napi-windows.dll.node" ) ;
59
+ path . join ( __dirname , ' ../libquery_engine_napi-darwin.dylib.node' )
60
+ path . join ( __dirname , ' ../libquery_engine_napi-debian-openssl-1.0.x.so.node' )
61
+ path . join ( __dirname , ' ../libquery_engine_napi-debian-openssl-1.1.x.so.node' )
62
+ path . join ( __dirname , ' ../libquery_engine_napi-linux-arm-openssl-1.0.x.so.node' )
63
+ path . join ( __dirname , ' ../libquery_engine_napi-linux-arm-openssl-1.1.x.so.node' )
64
+ path . join ( __dirname , ' ../libquery_engine_napi-linux-musl.so.node' )
65
+ path . join ( __dirname , ' ../libquery_engine_napi-rhel-openssl-1.0.x.so.node' )
66
+ path . join ( __dirname , ' ../libquery_engine_napi-rhel-openssl-1.1.x.so.node' )
67
+ path . join ( __dirname , ' ../query_engine_napi-windows.dll.node' )
0 commit comments