Browse Source

Removes README note from pre-releases

Since pre-releases feed the marketplace content
main
Eric Amodio 2 years ago
parent
commit
aa7ccd988d
3 changed files with 8 additions and 5 deletions
  1. +0
    -1
      README.pre.md
  2. +4
    -2
      scripts/applyInsidersPatch.js
  3. +4
    -2
      scripts/applyPreReleasePatch.js

+ 0
- 1
README.pre.md View File

@ -1 +0,0 @@
> **This is the pre-release edition of GitLens for early feedback, and testing. It works best with [VS Code Insiders](https://code.visualstudio.com/insiders).**

+ 4
- 2
scripts/applyInsidersPatch.js View File

@ -3,8 +3,10 @@ const fs = require('fs');
// Patch README
const insert = fs.readFileSync('./README.insiders.md', { encoding: 'utf8' });
const data = fs.readFileSync('./README.md', { encoding: 'utf8' });
fs.writeFileSync('./README.md', `${insert}\n${data}`);
if (insert.trim().length !== 0) {
const data = fs.readFileSync('./README.md', { encoding: 'utf8' });
fs.writeFileSync('./README.md', `${insert}\n${data}`);
}
// Patch package.json
const date = new Date(new Date().toLocaleString('en-US', { timeZone: 'America/New_York' }));

+ 4
- 2
scripts/applyPreReleasePatch.js View File

@ -3,8 +3,10 @@ const fs = require('fs');
// Patch README
const insert = fs.readFileSync('./README.pre.md', { encoding: 'utf8' });
const data = fs.readFileSync('./README.md', { encoding: 'utf8' });
fs.writeFileSync('./README.md', `${insert}\n${data}`);
if (insert.trim().length !== 0) {
const data = fs.readFileSync('./README.md', { encoding: 'utf8' });
fs.writeFileSync('./README.md', `${insert}\n${data}`);
}
// Patch package.json
const date = new Date(new Date().toLocaleString('en-US', { timeZone: 'America/New_York' }));

Loading…
Cancel
Save