Tried to fix typescript not working on pterodactyl

This commit is contained in:
DJj123dj
2024-08-22 10:28:24 +02:00
parent 1dd8c0246a
commit 8e730fdfae
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -8,6 +8,7 @@
"scripts": { "scripts": {
"verify": "tsc -p ./tsconfig.json", "verify": "tsc -p ./tsconfig.json",
"start": "npx tsx ./src/index.ts", "start": "npx tsx ./src/index.ts",
"backupstart": "node ./src/backupStartup.mjs",
"test": "npm run verify && npx tsx ./src/index.ts --dev-config --dev-database" "test": "npm run verify && npx tsx ./src/index.ts --dev-config --dev-database"
}, },
"type": "commonjs", "type": "commonjs",
+12
View File
@@ -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")