mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 13:00:31 +00:00
添加版本脚本
This commit is contained in:
8
scripts/version.cjs
Normal file
8
scripts/version.cjs
Normal file
@@ -0,0 +1,8 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const pkgPath = path.join(__dirname, '..', 'package.json');
|
||||
const pkg = JSON.parse(fs.readFileSync(pkgPath));
|
||||
|
||||
const version = pkg.version;
|
||||
console.log(version);
|
||||
Reference in New Issue
Block a user