minusNoValue.js 454 B

123456789101112131415161718
  1. 'use strict';
  2. /**
  3. *
  4. *
  5. * @author Mai
  6. * @date
  7. * @version
  8. */
  9. const fs = require('fs');
  10. const path = require('path');
  11. const filename = path.join(path.resolve(__dirname, '..'), 'package.json');
  12. const packageJSON = JSON.parse(fs.readFileSync(filename, 'utf8'));
  13. packageJSON.name = 'calc_minusNoValue' ;
  14. packageJSON.scripts['start-qa-minus'] = "egg-scripts start --daemon --port 7005";
  15. fs.writeFileSync(filename, JSON.stringify(packageJSON, '', '\t'));