feat(aklive2d): add ability to read and increase version number
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import path from 'path'
|
||||
import { read } from './yaml.js'
|
||||
import { read as readVersion } from './version.js'
|
||||
|
||||
export default function () {
|
||||
return process(read(path.join(__projetRoot, 'config.yaml')))
|
||||
@@ -16,5 +17,11 @@ function process(config) {
|
||||
operator.link = operatorName
|
||||
}
|
||||
|
||||
// version
|
||||
config.version = {
|
||||
showcase: readVersion(path.join(__projetRoot)),
|
||||
directory: readVersion(path.join(__projetRoot, 'directory')),
|
||||
}
|
||||
|
||||
return config
|
||||
}
|
||||
Reference in New Issue
Block a user