Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

24 rindas
788 B

  1. /* eslint-disable import/order */
  2. /* eslint-disable @typescript-eslint/no-var-requires */
  3. const fs = require('fs');
  4. // Patch README
  5. const insert = fs.readFileSync('./README.insiders.md', { encoding: 'utf8' });
  6. const data = fs.readFileSync('./README.md', { encoding: 'utf8' });
  7. fs.writeFileSync('./README.md', `${insert}\n${data}`);
  8. // Patch package.json
  9. const date = new Date(new Date().toLocaleString('en-US', { timeZone: 'America/New_York' }));
  10. let json = require('../package.json');
  11. json = JSON.stringify({
  12. ...json,
  13. name: `${json.name}-insiders`,
  14. displayName: 'GitLens (Insiders)',
  15. version: `${String(date.getFullYear())}.${date.getMonth() + 1}.${date.getDate()}${String(date.getHours()).padStart(
  16. 2,
  17. '0',
  18. )}`,
  19. preview: true,
  20. });
  21. fs.writeFileSync('./package.json', json);