Skip to content

Commit 16434eb

Browse files
fix(posts): fix broken npm links
- 2017-04-29-pass-args-npm-script.md - 2017-05-06-webpack-dev-server.md - 2020-01-12-eslint-sort-imports.md - 2020-05-22-migrate-tslint-to-eslint.md - 2020-06-07-npm-environment-variables.md - 2020-10-23-npm-run-script-different-directory.md ``` External link https://docs.npmjs.com/cli/run-script failed (status code 404) ```
1 parent 3b3e744 commit 16434eb

6 files changed

+6
-6
lines changed

_posts/2017/2017-04-29-pass-args-npm-script.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ node index.js --arg
1818
[ '--arg' ]
1919
```
2020

21-
But how do we pass our arguments to an [npm script](https://docs.npmjs.com/cli/run-script)?
21+
But how do we pass our arguments to an [npm script](https://docs.npmjs.com/cli/commands/npm-run)?
2222

2323
Given the following `package.json`:
2424

_posts/2017/2017-05-06-webpack-dev-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Run the server with `npx`:
6666
npx webpack serve
6767
```
6868

69-
Or create an [npm script](https://docs.npmjs.com/cli/run-script):
69+
Or create an [npm script](https://docs.npmjs.com/cli/commands/npm-run):
7070

7171
```json
7272
{

_posts/2020/2020-01-12-eslint-sort-imports.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Execute the `eslint` binary with [npx](https://www.npmjs.com/package/npx):
8484
npx eslint .
8585
```
8686

87-
Or create a `package.json` [script](https://docs.npmjs.com/cli/run-script):
87+
Or create a `package.json` [script](https://docs.npmjs.com/cli/commands/npm-run):
8888

8989
```json
9090
{

_posts/2020/2020-05-22-migrate-tslint-to-eslint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Add [`env`](https://eslint.org/docs/user-guide/configuring#specifying-environmen
8181

8282
## Script
8383

84-
Update your `lint` [script](https://docs.npmjs.com/cli/run-script) in `package.json`:
84+
Update your `lint` [script](https://docs.npmjs.com/cli/commands/npm-run) in `package.json`:
8585

8686
```diff
8787
{

_posts/2020/2020-06-07-npm-environment-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ You won't see anything logged to the console.
5858

5959
That's because npm environment variables are only available via npm.
6060

61-
So create an [npm script](https://docs.npmjs.com/cli/run-script) in your `package.json`:
61+
So create an [npm script](https://docs.npmjs.com/cli/commands/npm-run) in your `package.json`:
6262

6363
```json
6464
{

_posts/2020/2020-10-23-npm-run-script-different-directory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ categories: npm yarn script nodejs cli
88

99
## npm
1010

11-
To run an [npm script](https://docs.npmjs.com/cli-commands/run-script.html) from another directory, use `--prefix`:
11+
To run an [npm script](https://docs.npmjs.com/cli/commands/npm-run) from another directory, use `--prefix`:
1212

1313
```sh
1414
npm --prefix <path> run <command>

0 commit comments

Comments
 (0)