Skip to content

Commit 0d65b57

Browse files
committed
build: Use npx in build script
1 parent 2ee03d2 commit 0d65b57

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

bin/build.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
#!/bin/bash
22

33
# Process SVG files
4-
./node_modules/.bin/babel-node bin/process-svgs.js
4+
npx babel-node bin/process-svgs.js
55

66
# Create dist directory
7-
./node_modules/.bin/rimraf dist
7+
npx rimraf dist
88
mkdir dist
99

1010
# Build icons.json
11-
./node_modules/.bin/babel-node bin/build-icons-json.js
11+
npx babel-node bin/build-icons-json.js
1212

1313
# Build SVG sprite
14-
./node_modules/.bin/babel-node bin/build-sprite.js
14+
npx babel-node bin/build-sprite.js
1515

1616
# Create dist/icons directory
17-
./node_modules/.bin/rimraf dist/icons
17+
npx rimraf dist/icons
1818
mkdir dist/icons
1919

2020
# Build SVG icons
21-
./node_modules/.bin/babel-node bin/build-svgs.js
21+
npx babel-node bin/build-svgs.js
2222

2323
# Build JavaScript library
24-
./node_modules/.bin/webpack --output-filename feather.js --mode development
25-
./node_modules/.bin/webpack --output-filename feather.min.js --mode production
24+
npx webpack --output-filename feather.js --mode development
25+
npx webpack --output-filename feather.min.js --mode production

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"lint-staged": "^6.0.0",
5454
"npm-run-all": "^4.1.2",
5555
"prettier": "^1.8.2",
56-
"rimraf": "^2.6.2",
5756
"semantic-release": "^12.2.2",
5857
"svgo": "^0.7.2",
5958
"webpack": "^4.8.3",

0 commit comments

Comments
 (0)