-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.4.3 - fixes version correlation issue which was causing AS to brea…
…k completely
- Loading branch information
Showing
4 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import fs from 'fs'; | ||
import { execSync } from 'child_process'; | ||
|
||
// Run `yarn version --patch` to update the version in package.json | ||
execSync('yarn version --patch', { stdio: 'inherit' }); | ||
|
||
// Read the updated version from package.json | ||
const packageJson = JSON.parse(fs.readFileSync('package.json', 'utf-8')); | ||
const newVersion = packageJson.version; | ||
|
||
// Read module.json | ||
const moduleJsonPath = 'module.json'; | ||
const moduleJson = JSON.parse(fs.readFileSync(moduleJsonPath, 'utf-8')); | ||
|
||
// Update the version in module.json | ||
moduleJson.version = newVersion; | ||
|
||
// Write back the updated module.json | ||
fs.writeFileSync(moduleJsonPath, JSON.stringify(moduleJson, null, 4), 'utf-8'); | ||
|
||
console.log(`Updated module.json to version ${newVersion}`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters