pre-rebuild.js 361 B

12345678
  1. const fs = require('fs');
  2. const path = require('path');
  3. const rootPath = path.join(__dirname, '..')
  4. const nslog = path.join(rootPath, 'node_modules', 'nslog', 'build', 'Release', 'nslog.node');
  5. const serial_port = path.join(rootPath, 'node_modules', 'serialport', 'build', 'Release', 'serialport.node');
  6. fs.unlinkSync(nslog);
  7. fs.unlinkSync(serial_port);