mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
10 lines
393 B
JavaScript
10 lines
393 B
JavaScript
const fs = require('fs')
|
|
const path = require('path')
|
|
|
|
const rootPath = path.resolve(__dirname, '../')
|
|
const packageJSON = require(path.resolve(rootPath, 'package.json'))
|
|
const manifestPath = path.resolve(rootPath, 'src/manifest.json')
|
|
const manifest = require(manifestPath)
|
|
|
|
manifest.version = packageJSON.version
|
|
fs.writeFileSync(manifestPath, JSON.stringify(manifest, null, ' '), 'utf-8')
|