mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-10-10 07:23:23 +08:00
修复获取插件信息失败的BUG
This commit is contained in:
@@ -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 = () => {
|
||||
|
Reference in New Issue
Block a user