From c2397b758a5d453c52f9cb17406bf9eca545cf88 Mon Sep 17 00:00:00 2001 From: Grzegorz Godlewski Date: Mon, 25 Sep 2023 13:10:33 +0200 Subject: [PATCH] fix: renamed the startup script from run to start JST-454 --- data/project-templates/js-node/package.json | 4 ++-- data/project-templates/js-node/src/index.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/data/project-templates/js-node/package.json b/data/project-templates/js-node/package.json index 79e5e37..0e63d35 100644 --- a/data/project-templates/js-node/package.json +++ b/data/project-templates/js-node/package.json @@ -5,7 +5,7 @@ "main": "src/index.js", "type": "module", "scripts": { - "run": "node src/index.js", + "start": "node src/", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", @@ -20,6 +20,6 @@ "dotenv": "^16.3.1" }, "devDependencies": { - "@golem-sdk/cli": "^1.0.0-beta.1" + "@golem-sdk/cli": "^1.0.0" } } diff --git a/data/project-templates/js-node/src/index.js b/data/project-templates/js-node/src/index.js index d45ac05..56524a5 100644 --- a/data/project-templates/js-node/src/index.js +++ b/data/project-templates/js-node/src/index.js @@ -31,6 +31,8 @@ dotenv.config(); try { // Your code goes here + const result = await executor.run((ctx) => ctx.run("node -v")); + console.log("Version of NodeJS on Provider:", result.stdout.trim()); } catch (err) { console.error("Running the task on Golem failed due to", err); } finally {