Merge pull request #17677 from atom/leave-vsts-locked

Don't delete the package-lock.json in /script/vsts
This commit is contained in:
David Wilson
2018-07-12 07:09:18 -07:00
committed by GitHub

View File

@@ -10,7 +10,7 @@ const path = require('path')
module.exports = function () {
console.log('Deleting problematic package-lock.json files')
let paths = glob.sync(path.join(CONFIG.repositoryRootPath, '**', 'package-lock.json'), {ignore: path.join('**', 'node_modules', '**')})
let paths = glob.sync(path.join(CONFIG.repositoryRootPath, '**', 'package-lock.json'), {ignore: [path.join('**', 'node_modules', '**'), path.join('**', 'vsts', '**')]})
for (let path of paths) {
fs.unlinkSync(path)