aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ecosystem.config.cjs4
-rw-r--r--package.json6
-rw-r--r--start.sh4
3 files changed, 5 insertions, 9 deletions
diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs
index 85ec54e..90c39e5 100644
--- a/ecosystem.config.cjs
+++ b/ecosystem.config.cjs
@@ -3,7 +3,7 @@ module.exports = {
{
name: 'bush-bot',
script: 'yarn',
- args: 'start',
+ args: 'node --experimental-json-modules --no-warnings dist/src/bot.js',
out_file: '../bushbot.log',
error_file: '../bushbot.log',
max_memory_restart: '1G',
@@ -17,7 +17,7 @@ module.exports = {
{
name: 'bush-bot-beta',
script: 'yarn',
- args: 'start',
+ args: 'node --experimental-json-modules --no-warnings dist/src/bot.js',
out_file: '../bushbot-beta.log',
error_file: '../bushbot-beta.log',
max_memory_restart: '1G',
diff --git a/package.json b/package.json
index 0669579..4d27682 100644
--- a/package.json
+++ b/package.json
@@ -28,9 +28,9 @@
"build:esbuild": "yarn rimraf dist && yarn esbuild --sourcemap=inline --outdir=dist --platform=node --target=es2020 --format=esm --log-level=warning src/**/*.ts",
"build:tsc": "yarn rimraf dist && yarn tsc",
"build:tsc:no-emit": "yarn rimraf dist && yarn tsc --noEmit",
- "_start": "yarn build:esbuild && ./start.sh",
- "start": "yarn build:tsc && ./start.sh",
- "dev": "yarn build:tsc && ./start.sh",
+ "_start": "yarn build:esbuild && node --experimental-json-modules --no-warnings dist/src/bot.js",
+ "start": "yarn build:tsc && node --experimental-json-modules --no-warnings dist/src/bot.js",
+ "dev": "yarn build:tsc && node --experimental-json-modules --no-warnings dist/src/bot.js",
"test": "yarn lint && yarn tsc --noEmit",
"format": "yarn prettier . --write",
"lint": "yarn eslint --ext js,jsx,ts,tsx src",
diff --git a/start.sh b/start.sh
deleted file mode 100644
index a859a59..0000000
--- a/start.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/zsh
-source $NVM_DIR/nvm.sh
-nvm install 17.2.0 > /dev/null 2>&1
-~/.nvm/versions/node/v17.2.0/bin/node --experimental-json-modules --no-warnings dist/src/bot.js \ No newline at end of file