Skip to content

Commit 35a0d0c

Browse files
authored
Merge pull request #2445 from akirataguchi115/patch-10
Update part9b.md args
2 parents 1695efa + 77b0fa5 commit 35a0d0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/9/en/part9b.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ and setting up <i>scripts</i> within the package.json:
4949
}
5050
```
5151

52-
You can now use <i>ts-node</i> within this directory by running *npm run ts-node*. Note that if you are using ts-node through package.json, all command-line arguments for the script need to be prefixed with *--*. So if you want to run file.ts with <i>ts-node</i>, the whole command is:
52+
You can now use <i>ts-node</i> within this directory by running *npm run ts-node*. Note that if you are using ts-node through package.json, command-line arguments that include short or long form options for the `npm run` script need to be prefixed with *--*. So if you want to run file.ts with <i>ts-node</i> and options `-s` and `--someoption`, the whole command is:
5353

5454
```shell
55-
npm run ts-node -- file.ts
55+
npm run ts-node file.ts -- -s --someoption
5656
```
5757

5858
It is worth mentioning that TypeScript also provides an online playground, where you can quickly try out TypeScript code and instantly see the resulting JavaScript and possible compilation errors. You can access TypeScript's official playground [here](https://www.typescriptlang.org/play/index.html).

0 commit comments

Comments
 (0)