XeNote/.yarn/unplugged/fsevents-patch-268c0b888d/node_modules/fsevents/install.js

14 lines
347 B
JavaScript
Raw Normal View History

2021-05-17 01:16:19 +00:00
const { spawn } = require('child_process');
const rebuildIfDarwin = () => {
if (process.platform !== 'darwin') {
console.log();
console.log(`Skipping 'fsevents' build as platform ${process.platform} is not supported`);
process.exit(0);
} else {
spawn('node-gyp', ['rebuild'], { stdio: 'inherit' });
}
};
rebuildIfDarwin();