mirror of
https://github.com/krisk/Fuse.git
synced 2025-12-08 21:26:15 +00:00
22 lines
495 B
JavaScript
22 lines
495 B
JavaScript
//Load the library and specify options
|
|
const replace = require('replace-in-file')
|
|
const pckg = require('../package.json')
|
|
const VERSION = process.env.VERSION || pckg.version
|
|
|
|
const options = {
|
|
files: './docs/getting-started/installation.md',
|
|
from: /(\d+\.)(\d+\.)(\d+)/g,
|
|
to: VERSION
|
|
}
|
|
|
|
async function bump() {
|
|
try {
|
|
const results = await replace(options)
|
|
console.log('Replacement results:', results)
|
|
} catch (error) {
|
|
console.error('Error occurred:', error)
|
|
}
|
|
}
|
|
|
|
bump()
|