fix: change // -> //z to @types comments once on postinstall (#19041)

This commit is contained in:
Tim Griesser
2021-11-22 13:16:29 -05:00
committed by GitHub
parent c64ba9eda7
commit a45825eafc
6 changed files with 22631 additions and 22629 deletions

View File

@@ -90,7 +90,7 @@ filesToUncomment.forEach((file) => {
const str = fs.readFileSync(filePath).toString()
const result = str.split('\n').map((line) => {
return line.startsWith('// ') ? line.substring(3) : line
return line.startsWith('//z ') ? line.substring(4) : line
}).join('\n')
fs.writeFileSync(filePath, result)