Skip to content

Commit 1171936

Browse files
authored
fix: broken script in example package.json (#7833)
Fix example package.json script The script for run is supposed to eventually run `node app.js --watch` by running `node --run start` with the `--watch` parameter - but the name of the script was missing resulting in a syntax error. Signed-off-by: Dor Kleiman <[email protected]>
1 parent 2054bcc commit 1171936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/site/pages/en/learn/command-line/run-nodejs-scripts-from-the-command-line.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ The [`--run`](https://nodejs.org/docs/latest-v22.x/api/cli.html#--run) flag allo
7171
"type": "module",
7272
"scripts": {
7373
"start": "node app.js",
74-
"dev": "node --run -- --watch",
74+
"dev": "node --run start -- --watch",
7575
"test": "node --test"
7676
}
7777
}

0 commit comments

Comments
 (0)