From de85df943f917d0352b505e65407c1194c2d1e99 Mon Sep 17 00:00:00 2001 From: Elijah R Date: Sun, 23 Jun 2024 19:35:40 -0400 Subject: [PATCH] disable allowJs, fix ExecStart --- collabvm-anyosbot.service | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/collabvm-anyosbot.service b/collabvm-anyosbot.service index 7dddf08..bfcb98c 100644 --- a/collabvm-anyosbot.service +++ b/collabvm-anyosbot.service @@ -12,7 +12,7 @@ Type=simple WorkingDirectory=/srv/collabvm/anyos-bot-new-new -ExecStart=/bin/node index.js --max-old-space-size=1024 --use-largepages=on +ExecStart=/bin/node dist/index.js --max-old-space-size=1024 --use-largepages=on # Hardening PrivateTmp=yes diff --git a/tsconfig.json b/tsconfig.json index e84eadb..6654683 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -44,7 +44,7 @@ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ - "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */