aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-13 22:01:39 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-13 22:01:39 -0500
commitf1ec265e86bdf744d84e5a3a0d48b5efdf23753b (patch)
tree55d0e7f2a1a671dc22e777700a84be200c7dbf10
parentec19a573903b8257d95256a834da87f1c7516dff (diff)
downloadtanzanite-f1ec265e86bdf744d84e5a3a0d48b5efdf23753b.tar.gz
tanzanite-f1ec265e86bdf744d84e5a3a0d48b5efdf23753b.tar.bz2
tanzanite-f1ec265e86bdf744d84e5a3a0d48b5efdf23753b.zip
I give up
-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