Tried to fix typescript not working on pterodactyl
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
"scripts": {
|
||||
"verify": "tsc -p ./tsconfig.json",
|
||||
"start": "npx tsx ./src/index.ts",
|
||||
"backupstart": "node ./src/backupStartup.mjs",
|
||||
"test": "npm run verify && npx tsx ./src/index.ts --dev-config --dev-database"
|
||||
},
|
||||
"type": "commonjs",
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/** === ALTERNATIVE STARTUP METHOD ===
|
||||
* This file can be used to start the bot when the default `npm start` (npx tsx src/index.ts) doesn't work!
|
||||
* It is not recommended to use this by default, but it is a backup option for certain panels that don't support typescript.
|
||||
*
|
||||
* RECOMMENDED ON:
|
||||
* - pterodactyl based panels
|
||||
* - pebblehost
|
||||
* - and more
|
||||
*/
|
||||
|
||||
import "tsx"
|
||||
import("./index.ts")
|
||||
Reference in New Issue
Block a user