File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,22 @@ async function updatePackageJSON(dir, version) {
42
42
} ) ;
43
43
}
44
44
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
+
45
53
async function setVersion ( version ) {
46
54
if ( version . startsWith ( 'v' ) )
47
55
throw new Error ( 'version must not start with "v"' ) ;
48
56
49
57
const packageRoot = path . join ( __dirname , '..' ) ;
50
58
await updatePackageJSON ( packageRoot , version )
51
59
await updatePackageJSON ( path . join ( packageRoot , 'extension' ) , version )
60
+ await updateExtensionManifest ( path . join ( packageRoot , 'extension' ) , version )
52
61
}
53
62
54
63
if ( argv . length !== 3 ) {
You can’t perform that action at this time.
0 commit comments