mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 13:00:31 +00:00
提取 github 变量
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
const pkgPath = path.join(__dirname, '..', 'package.json');
|
||||
const pkgPath = path.join(__dirname, "..", "package.json");
|
||||
const pkg = JSON.parse(fs.readFileSync(pkgPath));
|
||||
|
||||
const version = pkg.version;
|
||||
console.log(version);
|
||||
console.log(version);
|
||||
|
||||
Reference in New Issue
Block a user