Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Commit

Permalink
fix: npm bin dissapeared
Browse files Browse the repository at this point in the history
  • Loading branch information
jehon committed Nov 25, 2022
1 parent 4d32efe commit 5b196e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

"$(npm bin)"/commitlint --edit "$1"
"$(npm root)"/.bin/commitlint --edit "$1"
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

"$(npm bin)"/lint-staged
"$(npm root)"/.bin/lint-staged
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ KIOSK_CONFIG ?= $(ROOT)/etc/kiosk.yml
SHELL := /bin/bash
.SECONDEXPANSION:

PATH := $(shell npm bin):$(PATH)
NPM_BIN=$(shell npm root)/.bin
PATH := $(NPM_BIN):$(PATH)

dump:
$(info ROOT: $(ROOT))
Expand Down Expand Up @@ -106,11 +107,11 @@ node_modules/.packages-installed.json: package.json package-lock.json

.PHONY: browserslist
browserslist:
$(shell npm bin)/browserslist --update-db
$(NPM_BIN)/browserslist --update-db

tmp/importmap.json:
mkdir -p "$(dir $@)"
$(shell npm bin)/importly < package-lock.json > "$@"
$(NPM_BIN)/importly < package-lock.json > "$@"

.PHONY: test
test: test-server test-client
Expand Down

0 comments on commit 5b196e5

Please sign in to comment.