(jsonFile, cb)
| 158 | }); |
| 159 | |
| 160 | function modifyJson(jsonFile, cb) { |
| 161 | const json = fs.readFileSync(jsonFile).toString('utf-8'); |
| 162 | const [key, value] = cb(json); |
| 163 | const edits = jsonc.modify(json, [key], value, {}); |
| 164 | const updatedJson = jsonc.applyEdits(json, edits); |
| 165 | fs.writeFileSync(jsonFile, updatedJson); |
| 166 | } |
| 167 | |
| 168 | gulp.task('updatePackageJsonForBundle', async () => { |
| 169 | // When building a web only VSIX, we need to remove the desktop entry point |