MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / bump

Function bump

gulpfile.js:107–119  ·  view source on GitHub ↗

* Bump `beta` in `package.json` to release a new beta version.

()

Source from the content-addressed store, hash-verified

105 * Bump `beta` in `package.json` to release a new beta version.
106 */
107async function bump() {
108 if (process.argv.includes('--reset')) {
109 delete pkg.beta;
110 } else {
111 pkg.beta = (+pkg.beta || 0) + 1;
112 }
113 await fs.writeFile('package.json', JSON.stringify(pkg, null, 2) + '\n', 'utf8');
114 if (process.argv.includes('--commit')) {
115 const version = `v${getVersion()}`;
116 spawn.sync('git', ['commit', '-am', version]);
117 spawn.sync('git', ['tag', '-m', version, version]);
118 }
119}
120
121function checkI18n() {
122 return i18n.read({

Callers

nothing calls this directly

Calls 1

getVersionFunction · 0.85

Tested by

no test coverage detected