-
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.
fix: deleted manual store update on webrtc detach (#76)
- Loading branch information
Showing
4 changed files
with
38 additions
and
2 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,29 @@ | ||
const fs = require('fs'); | ||
const { execSync } = require('child_process'); | ||
|
||
// Script for automatic version bumping of Phone-island component | ||
// Path to package.json | ||
const packageJsonPath = './package.json'; | ||
|
||
// Read package.json content | ||
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')); | ||
|
||
// Increment version number | ||
// Split version into major.minor.patch and convert to numbers | ||
const currentVersion = packageJson.version; | ||
const [major, minor, patch] = currentVersion.split('.').map(Number); | ||
const newVersion = `${major}.${minor}.${patch + 1}`; | ||
|
||
// Update version in package.json object | ||
packageJson.version = newVersion; | ||
|
||
// Write the new version back to package.json | ||
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2)); | ||
console.log(`Version updated: ${currentVersion} -> ${newVersion}`); | ||
|
||
// Regenerate package-lock.json to ensure dependency consistency | ||
console.log('Updating package-lock.json...'); | ||
execSync('npm install --package-lock-only', { stdio: 'inherit' }); | ||
|
||
console.log('Process completed.'); | ||
|
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