feat(aklive2d): add ability to read and increase version number

This commit is contained in:
Haoyu Xu
2023-02-27 16:33:42 -05:00
parent 5c80834c30
commit 00e6916ad1
19 changed files with 64 additions and 21 deletions

View File

@@ -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
}