Skip to content

Commit

Permalink
Merge pull request #42 from golemfactory/bugfix/JST-454/rename-start-…
Browse files Browse the repository at this point in the history
…script

fix: renamed the startup script from run to start
  • Loading branch information
grisha87 authored Sep 26, 2023
2 parents 46ad82e + c2397b7 commit 9e550ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/project-templates/js-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand All @@ -20,6 +20,6 @@
"dotenv": "^16.3.1"
},
"devDependencies": {
"@golem-sdk/cli": "^1.0.0-beta.1"
"@golem-sdk/cli": "^1.0.0"
}
}
2 changes: 2 additions & 0 deletions data/project-templates/js-node/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9e550ea

Please sign in to comment.