Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bin name instead of relative path in scripts #34

Merged
merged 1 commit into from
Oct 25, 2019

Conversation

TrevorBurnham
Copy link
Contributor

Specifying

"build": "./node_modules/webpack-cli/bin/webpack.js"

in a package.json script is unnecessarily verbose. When you run a script, npm adds binaries from the local node_modules/ to the PATH. Therefore, you can simply write

"build": "webpack"

Specifying

```js
"build": "./node_modules/webpack-cli/bin/webpack.js"
```

in a `package.json` script is unnecessarily verbose. When you run a script, npm adds binaries from the local `node_modules/` to the `PATH`. Therefore, you can simply write

```js
"build": "webpack"
```
@dwalkr
Copy link
Contributor

dwalkr commented Apr 9, 2018

#35

@DirtyF DirtyF merged commit c68be89 into forestryio:master Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants