Skip to content

Commit d17e6f5

Browse files
authored
build(scripts): use npx to execute scripts (#70)
### Summary Use [`npx`](https://www.npmjs.com/package/npx) to run local binaries
1 parent bd792df commit d17e6f5

File tree

2 files changed

+40
-21
lines changed

2 files changed

+40
-21
lines changed

package-lock.json

Lines changed: 30 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@
1010
"build"
1111
],
1212
"scripts": {
13-
"build": "rollup -c",
14-
"codecov": "codecov",
15-
"commitmsg": "commitlint -e $GIT_PARAMS",
16-
"deploy-storybook-ci": "storybook-to-ghpages --ci",
13+
"build": "npx rollup -c",
14+
"codecov": "npx codecov",
15+
"commitmsg": "npx commitlint -e $GIT_PARAMS",
16+
"deploy-storybook-ci": "npx storybook-to-ghpages --ci",
1717
"gc": "commit",
18-
"lint": "eslint --ext .js,.jsx .",
18+
"lint": "npx eslint --ext .js,.jsx .",
1919
"prepare": "npm run build",
20-
"semantic-release": "semantic-release",
21-
"start": "rollup -c -w",
22-
"storybook": "start-storybook -p 6006",
23-
"test": "jest --coverage",
24-
"travis-deploy-once": "travis-deploy-once",
20+
"semantic-release": "npx semantic-release",
21+
"start": "npm run build -- -w",
22+
"storybook": "npx start-storybook -p 6006",
23+
"test": "npx jest --coverage",
24+
"travis-deploy-once": "npx travis-deploy-once",
2525
"is-build-es5": "npx es-check es5 './build/**/*.!(esm).js'"
2626
},
2727
"repository": {

0 commit comments

Comments
 (0)