Skip to content

Commit

Permalink
feat: add Edge version patching
Browse files Browse the repository at this point in the history
  • Loading branch information
timbru31 committed Aug 7, 2019
1 parent 4a8f084 commit 7dddcd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -58,7 +58,7 @@
},
"standard-version": {
"scripts": {
"prebump": "ts-node scripts/patch-manifest-version.ts",
"prebump": "ts-node scripts/patch-versions.ts",
"postbump": "prettier --write src/manifest.json && git add src/manifest.json",
"postchangelog": "prettier --write CHANGELOG.md"
}
Expand Down
Expand Up @@ -28,6 +28,11 @@ getNextVersion(packageJson.version)
const manifest = JSON.parse(readFileSync('./src/manifest.json', { encoding: 'utf-8' }));
manifest.version = version;
writeFileSync('./src/manifest.json', JSON.stringify(manifest, null, '\t'));


let edgeManifest = readFileSync('./edge/AppXManifest.xml', { encoding: 'utf-8' });
edgeManifest = edgeManifest.replace(/(Version=")((?:\d\.){3}\d)(")/, `$1${version}.0$3`);
writeFileSync('./edge/AppXManifest.xml', edgeManifest);
})
// tslint:disable-next-line: no-console
.catch((error: Error) => console.error(error));

0 comments on commit 7dddcd0

Please sign in to comment.