(srcPath = join('..','..'))
| 59 | } |
| 60 | |
| 61 | async function configureGyp(srcPath = join('..','..')) { |
| 62 | process.env['CATBOOST_SRC_PATH'] = srcPath; |
| 63 | const result = await execProcess('node-gyp configure'); |
| 64 | if (result.code !== 0) { |
| 65 | console.error(`Node-gyp configuration failed: |
| 66 | ${result.code} ${result.signal} ${result.err?.message}`); |
| 67 | process.exit(1); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | export async function buildModel(buildNativeExtraArgs: string[]) { |
| 72 | await configureGyp(); |
no test coverage detected