You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constfs=require('fs');constpackageJsonPath='package.json';// Read package.jsonconstpackageJson=JSON.parse(fs.readFileSync(packageJsonPath,'utf-8'));// Bump the version (custom logic)constversionParts=packageJson.version.split('.');versionParts[2]=parseInt(versionParts[2])+1;// Incrementing patch version// Update package.json with the new versionpackageJson.version=versionParts.join('.');fs.writeFileSync(packageJsonPath,JSON.stringify(packageJson,null,2));console.log(`Bumped version to ${packageJson.version}`);
and modified README.md to up to date
The text was updated successfully, but these errors were encountered:
Add bump version script something like this
file:
bump-version.js
and modified
README.md
to up to dateThe text was updated successfully, but these errors were encountered: