File tree 3 files changed +17
-11
lines changed
packages/node-integration-tests
suites/tracing/prisma-orm
3 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 8
8
"private" : true ,
9
9
"scripts" : {
10
10
"clean" : " rimraf -g **/node_modules" ,
11
- "prisma:init" : " (cd suites/tracing/prisma-orm && ./setup.sh )" ,
11
+ "prisma:init" : " (cd suites/tracing/prisma-orm && ts-node ./setup.ts )" ,
12
12
"lint" : " run-s lint:prettier lint:eslint" ,
13
13
"lint:eslint" : " eslint . --cache --cache-location '../../eslintcache/' --format stylish" ,
14
14
"lint:prettier" : " prettier --check \" {suites,utils}/**/*.ts\" " ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import { parseSemver } from '@sentry/utils' ;
2
+ import { execSync } from 'child_process' ;
3
+
4
+ const NODE_VERSION = parseSemver ( process . versions . node ) ;
5
+
6
+ if ( NODE_VERSION . major && NODE_VERSION . major < 12 ) {
7
+ // eslint-disable-next-line no-console
8
+ console . warn ( `Skipping Prisma tests on Node: ${ NODE_VERSION . major } ` ) ;
9
+ process . exit ( 0 ) ;
10
+ }
11
+
12
+ try {
13
+ execSync ( 'yarn && yarn setup' ) ;
14
+ } catch ( _ ) {
15
+ process . exit ( 1 ) ;
16
+ }
You can’t perform that action at this time.
0 commit comments