From c759f2663252e90543d83e6602a9c6be1ea8b19c Mon Sep 17 00:00:00 2001 From: Toast <96593068+AnxietyisReal@users.noreply.github.com> Date: Sun, 6 Aug 2023 20:47:44 +1000 Subject: [PATCH] PM2 workaround Sadly, no console logging for now. --- .gitignore | 1 + package.json | 3 --- startWithYarn.cjs | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 startWithYarn.cjs diff --git a/.gitignore b/.gitignore index bed96b7..ebf85f0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ # Yarn stuff .yarn/cache/ .yarn/unplugged/ +.yarn/sdks/ .yarn/install-state.gz # NodeJS stuff .ncurc.json diff --git a/package.json b/package.json index 2102cac..f5f41bd 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,6 @@ "type": "git", "url": "git+https://github.com/AnxietyisReal/Daggerbot-TS.git" }, - "scripts": { - "start": "yarn node ." - }, "author": "Toast", "license": "ISC", "os": [ diff --git a/startWithYarn.cjs b/startWithYarn.cjs new file mode 100644 index 0000000..1cf834e --- /dev/null +++ b/startWithYarn.cjs @@ -0,0 +1 @@ +require('node:child_process').exec('yarn node dist/index.js', {windowsHide:true}, (error,stdout)=>{console.log(stdout); console.error(error)}) \ No newline at end of file