mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-06 06:29:45 -06:00
fix: change // -> //z to @types comments once on postinstall (#19041)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user