Skip to content

Commit 1efd3b5

Browse files
authored
devops: update extension manifest version (#904)
1 parent 1d1db1e commit 1efd3b5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

utils/set-version.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,22 @@ async function updatePackageJSON(dir, version) {
4242
});
4343
}
4444

45+
async function updateExtensionManifest(dir, version) {
46+
const manifestPath = path.join(dir, 'manifest.json');
47+
const manifest = await readJSON(manifestPath);
48+
console.log(`Updating ${manifestPath} to version ${version}`);
49+
manifest.version = version;
50+
await writeJSON(manifestPath, manifest);
51+
}
52+
4553
async function setVersion(version) {
4654
if (version.startsWith('v'))
4755
throw new Error('version must not start with "v"');
4856

4957
const packageRoot = path.join(__dirname, '..');
5058
await updatePackageJSON(packageRoot, version)
5159
await updatePackageJSON(path.join(packageRoot, 'extension'), version)
60+
await updateExtensionManifest(path.join(packageRoot, 'extension'), version)
5261
}
5362

5463
if (argv.length !== 3) {

0 commit comments

Comments
 (0)