-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(cli): fix pnpm fail to create bin on install #106
Conversation
β Deploy Preview for cz-git canceled.
|
Co-authored-by: Zhengqbbb <1074059947@qq.com>
@jrson83 LGTM. π But current in my other repo has not been reproduced yet. pnpm install -D czg@next |
@Zhengqbbb I did not have any issues when installing the NPM package with pnpm. The issue exists only in the cz-git monorepo. To reproduce: git clone https://github.com/Zhengqbbb/cz-git.git
cd cz-git
pnpm install Then you should see the console warnings. |
I thought it had an impact on your project, so it this is directed at my project is it lol. thx π€£ |
@Zhengqbbb Ah okay π Yeah it is working very well on windows and I like it very much cause it has so small install size! The only issue I had was related to husky/prepare-commit-msg hook. Cause windows terminal does not support interaction, I use the following workaround to run czg in a new terminal when running #!/usr/bin/env sh
FILE=commit.cmd
if test -f "$FILE"; then
echo "$FILE exists."
rm commit.cmd
exit 0;
fi
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*)
echo "npx czg && exit" > commit.cmd
start commit.cmd
exit 1;
esac
. "$(dirname "$0")/_/husky.sh"
exec < /dev/tty && npx czg --hook || true |
So you handled show editor after |
No π before running |
lol OK ~ there are only way you can hide editor. Alias your git command
Follow this thread #87 add .bashrc or .zshrc git() {
local _cmd="$*"
if [ "$1" = "commit" ] && [ "${_cmd%%"--help"}" = "$_cmd" ]; then
shift 1; command git commit -m ''
else
command git "$@"
fi
} Anyway thx your support and point out the problem π€ π€ |
No problem π You gonna merge the PR? I gonna do another after. |
@jrson83 !!! git config core.editor cat
git commit # try it ! |
Related ISSUE
None
Type Of Change
Clear Describe
fix: pnpm fail to create bin when running
pnpm install
Description
When running
pnpm install
in the repo root for the first time, pnpm can't createnode_modules\.bin
folders, cause they do not exist (cause they are not build yet) and throws warnings:Test Case
No need for additional test case.