修复获取插件信息失败的BUG

This commit is contained in:
fofolee
2025-02-16 16:55:45 +08:00
parent 5a65f4c5f9
commit 02f81db47c
3 changed files with 13 additions and 12 deletions

View File

@@ -1,10 +1,11 @@
const fs = require("fs");
const path = require("path");
const os = require("os");
const _ = require("lodash");
const pluginInfo = () => {
return JSON.parse(fs.readFileSync(path.join(__dirname, "plugin.json")));
return JSON.parse(
fs.readFileSync(path.resolve(__dirname, "..", "plugin.json"))
);
};
const getUtoolsPlugins = () => {