mirror of https://github.com/Wox-launcher/Wox
Fix build error
This commit is contained in:
parent
5b221b331e
commit
8565f00ed2
|
@ -32,18 +32,6 @@ call_lefthook()
|
|||
elif test -f "$dir/node_modules/lefthook/bin/index.js"
|
||||
then
|
||||
"$dir/node_modules/lefthook/bin/index.js" "$@"
|
||||
elif test -f "$dir/Wox.UI.React/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook"
|
||||
then
|
||||
"$dir/Wox.UI.React/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook" "$@"
|
||||
elif test -f "$dir/Wox.UI.React/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook"
|
||||
then
|
||||
"$dir/Wox.UI.React/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook" "$@"
|
||||
elif test -f "$dir/Wox.UI.React/node_modules/@evilmartians/lefthook-installer/bin/lefthook"
|
||||
then
|
||||
"$dir/Wox.UI.React/node_modules/@evilmartians/lefthook-installer/bin/lefthook" "$@"
|
||||
elif test -f "$dir/Wox.UI.React/node_modules/lefthook/bin/index.js"
|
||||
then
|
||||
"$dir/Wox.UI.React/node_modules/lefthook/bin/index.js" "$@"
|
||||
elif test -f "$dir/Wox/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook"
|
||||
then
|
||||
"$dir/Wox/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook" "$@"
|
||||
|
|
|
@ -32,18 +32,6 @@ call_lefthook()
|
|||
elif test -f "$dir/node_modules/lefthook/bin/index.js"
|
||||
then
|
||||
"$dir/node_modules/lefthook/bin/index.js" "$@"
|
||||
elif test -f "$dir/Wox.UI.React/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook"
|
||||
then
|
||||
"$dir/Wox.UI.React/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook" "$@"
|
||||
elif test -f "$dir/Wox.UI.React/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook"
|
||||
then
|
||||
"$dir/Wox.UI.React/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook" "$@"
|
||||
elif test -f "$dir/Wox.UI.React/node_modules/@evilmartians/lefthook-installer/bin/lefthook"
|
||||
then
|
||||
"$dir/Wox.UI.React/node_modules/@evilmartians/lefthook-installer/bin/lefthook" "$@"
|
||||
elif test -f "$dir/Wox.UI.React/node_modules/lefthook/bin/index.js"
|
||||
then
|
||||
"$dir/Wox.UI.React/node_modules/lefthook/bin/index.js" "$@"
|
||||
elif test -f "$dir/Wox/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook"
|
||||
then
|
||||
"$dir/Wox/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook" "$@"
|
||||
|
|
|
@ -33,9 +33,9 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@wox-launcher/wox-plugin": "^0.0.82",
|
||||
"dayjs": "^1.11.9",
|
||||
"dayjs": "^1.11.13",
|
||||
"promise-deferred": "^2.0.4",
|
||||
"winston": "^3.10.0",
|
||||
"winston": "^3.17.0",
|
||||
"winston-daily-rotate-file": "^4.7.1",
|
||||
"ws": "^8.14.1"
|
||||
},
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,4 @@
|
|||
import winston, { format } from "winston"
|
||||
import dayjs from "dayjs"
|
||||
import winston from "winston"
|
||||
import WebSocket from "ws"
|
||||
import { PluginJsonRpcTypeSystemLog } from "./jsonrpc"
|
||||
import crypto from "crypto"
|
||||
|
@ -11,7 +10,6 @@ let ws: WebSocket | undefined = undefined
|
|||
|
||||
const winstonLogger = winston.createLogger({
|
||||
level: "info",
|
||||
format: format.combine(format.printf(i => `${dayjs(i.timestamp).format("YYYY-MM-DD HH:mm:ss.SSS")} ${i.message}`)),
|
||||
transports: [new winston.transports.File({ filename: "node.log", dirname: logDirectory })]
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue