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",
|
||||
"test": "mocha"
|
||||
},
|
||||
"bin": {
|
||||
"linebridge": "./bin/server.js"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
@ -1,13 +1,10 @@
|
||||
#!/usr/bin/env node
|
||||
#!/usr/bin/env EXPERIMENTAL_FASTCALL=1 node
|
||||
const corenode = require("corenode")
|
||||
|
||||
corenode.runInNewRuntime(() => {
|
||||
const { randomWord } = require("@corenode/utils")
|
||||
const server = require("../server/index.js")
|
||||
|
||||
// create server
|
||||
new server({
|
||||
autoInit: true,
|
||||
id: process.env.serverID ?? randomWord.generate(),
|
||||
id: process.env.serverID,
|
||||
})
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user