mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
13 lines
334 B
JavaScript
13 lines
334 B
JavaScript
'use strict';
|
|
|
|
const { spawnSync } = require('child_process');
|
|
|
|
const { prebuild_upload: hasToken, APPVEYOR_REPO_TAG, TRAVIS_TAG } = process.env;
|
|
|
|
if (hasToken && (Boolean(APPVEYOR_REPO_TAG) || TRAVIS_TAG)) {
|
|
spawnSync(
|
|
'node ./node_modules/.bin/prebuild --runtime napi --target 3',
|
|
{ shell: true, stdio: 'inherit' }
|
|
);
|
|
}
|