mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
disabled cli bin
This commit is contained in:
parent
3193f00e39
commit
0f1ba04d2b
@ -9,9 +9,6 @@
|
|||||||
"build": "corenode-cli build --parallel --clean --fix && chmod -R 777 ./dist",
|
"build": "corenode-cli build --parallel --clean --fix && chmod -R 777 ./dist",
|
||||||
"test": "mocha"
|
"test": "mocha"
|
||||||
},
|
},
|
||||||
"bin": {
|
|
||||||
"linebridge": "./bin/server.js"
|
|
||||||
},
|
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env EXPERIMENTAL_FASTCALL=1 node
|
||||||
const corenode = require("corenode")
|
const corenode = require("corenode")
|
||||||
|
|
||||||
corenode.runInNewRuntime(() => {
|
corenode.runInNewRuntime(() => {
|
||||||
const { randomWord } = require("@corenode/utils")
|
|
||||||
const server = require("../server/index.js")
|
const server = require("../server/index.js")
|
||||||
|
|
||||||
// create server
|
|
||||||
new server({
|
new server({
|
||||||
autoInit: true,
|
id: process.env.serverID,
|
||||||
id: process.env.serverID ?? randomWord.generate(),
|
|
||||||
})
|
})
|
||||||
})
|
})
|
Loading…
x
Reference in New Issue
Block a user