-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
npm/run-script
#78Labels
Bugthing that needs fixingthing that needs fixingPriority 2secondary priority issuesecondary priority issueRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release
Description
Current Behavior:
Executing this script passes to the husky wrong argument, but it properly worked at npm@6
npx husky add .husky/commit-msg 'npx --no-install commitlint --edit "$1"'
The result is:
npx --no-install commitlint --edit ""
Expected Behavior:
The result is:
npx --no-install commitlint --edit "$1"
Steps To Reproduce:
- Created a new folder
git init
npm init
npm install husky -D
npm set-script prepare "husky install"
npm run prepare
npx husky add .husky/prepare-commit-msg 'npx --no-install jira-prepare-commit-msg "$1"'
I made some research here
Environment:
- Ubuntu 20.04
- Node: 15.3.1
- npm: 7.9.0
anthony-telljohann, andersk, typicode, Runnnnn and RebeccaStevens
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingPriority 2secondary priority issuesecondary priority issueRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release