Skip to content

Commit 76430a0

Browse files
committed
chore: using npx
1 parent 66df50b commit 76430a0

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Makefile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1-
NODE_BIN = ./node_modules/.bin
2-
31
# Development
42
lint:
53
@echo "Linting..."
6-
@$(NODE_BIN)/eslint .
4+
@npx eslint .
75
lint-fix:
86
@echo "Fix linting..."
9-
@$(NODE_BIN)/eslint --fix .
7+
@npx eslint --fix .
108
dev:
119
@echo "Start server..."
12-
@NODE_ENV=development $(NODE_BIN)/rollup -c rollup.config.demo.js -w
10+
@NODE_ENV=development npx rollup -c rollup.config.demo.js -w
1311
.PHONY: lint lint-fix dev
1412

1513
# Deployment
1614
build:
1715
@echo "Building lib..."
1816
@rm -rf ./dist
19-
@$(NODE_BIN)/rollup -c rollup.config.js
17+
@npx rollup -c rollup.config.js
2018
@echo "Copy type into dist..."
2119
@cp react-nice-avatar.d.ts dist/react-nice-avatar.d.ts
2220
build-demo:
2321
@echo "Building demo..."
2422
@rm -rf ./demo/dist
25-
@NODE_ENV=production $(NODE_BIN)/rollup -c rollup.config.demo.js
23+
@NODE_ENV=production npx rollup -c rollup.config.demo.js
2624
.PHONY: build build-demo

0 commit comments

Comments
 (0)