From 8f8f469a7799be6b73da70352f548bc1aae686f7 Mon Sep 17 00:00:00 2001 From: LuckyMod <62712260+Likhithsai2580@users.noreply.github.com> Date: Sun, 3 Nov 2024 11:42:31 +0530 Subject: [PATCH] Fix error on bin.js:130:5 when running with _npx Fixes #7 Remove commented-out code block in `cofounder/api/build.js` to resolve error on `bin.js:130:5`. * **`cofounder/api/build.js`** - Remove the commented-out code block at line 130. - Ensure the code compiles and runs without errors. * **`cofounder/api/package.json`** - Adjust the script for starting the project with _npx to use `node` instead of `nodemon`. --- cofounder/api/build.js | 10 +++++----- cofounder/api/package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cofounder/api/build.js b/cofounder/api/build.js index 3d2d3a6..71225f0 100644 --- a/cofounder/api/build.js +++ b/cofounder/api/build.js @@ -128,12 +128,12 @@ async function build({ system }) { ), ); /* - make the DAG graph decomposition parallelizor from the system and relations - handle : seq , parallel , recursion too ! - */ + make the DAG graph decomposition parallelizor from the system and relations + handle : seq , parallel , recursion too ! + */ /* - event registration for system triggers (nodes are all registered for events node:{id} ) - */ + event registration for system triggers (nodes are all registered for events node:{id} ) + */ if (LOGS_ENABLED) { events.log.sequence.on(`sequence:start`, ({ id, context, data }) => { diff --git a/cofounder/api/package.json b/cofounder/api/package.json index 1e59452..288cefc 100644 --- a/cofounder/api/package.json +++ b/cofounder/api/package.json @@ -4,7 +4,7 @@ "@": "." }, "scripts": { - "start:npx": "npm i && nodemon --loader esm-module-alias/loader --no-warnings server.js", + "start:npx": "npm i && node --loader esm-module-alias/loader --no-warnings server.js", "start": "nodemon --loader esm-module-alias/loader --no-warnings server.js" }, "nodemonConfig": {