npm install --save-dev husky @commitlint/cli @commitlint/config-conventional 配置Husky 接下来,配置Husky以便在git commit命令执行前自动运行Commitlint检查。 init命令简化了项目中的husky设置。它会在.husky/中创建pre-commit脚本,并更新package.json中的prepare脚本。随后可根据你的工作流进行修改。 pnpm exec husk...
首先,你需要在项目中安装Husky和Commitlint,以及Commitlint的一个预设规则库(如@commitlint/config-conventional)来定义提交信息的格式规范。 npm install --save-dev husky @commitlint/cli @commitlint/config-conventional 配置Husky 接下来,配置Husky以便在git commit命令执行前自动运行Commitlint检查。 init命令简化了项目...
Not justpnpmnot found.npmalso not found when I donpm -vin.husky/commit-msg ornode -v I notice that it is running with some paths (I do that by addingenvto the file): PATH=/Library/Developer/CommandLineTools/usr/libexec/git-core:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin ...
# Don't run this script directly, use `pnpm bootstrap` to exec it. while [[ $# -gt 0 ]]; do key="$1" @@ -29,17 +29,17 @@ done # step1 if [[ ! -d node_modules ]]; then echo "No node_modules found. Install by yarn:" echo "No node_modules found. Install by pnpm...
name: Can pnpm-lock.yaml be deduped? 🤔 runs-on: ubuntu-latest # workflow_dispatch always lets you select the branch ref, even though in this case we only ever want to run the action on `main` thus we need an if check if: ${{ github.ref_name == 'next' }} Expand All @@ -...
"prepare": "husky install", "release": "yarn build && yarn changeset publish", "update:yarn": "yarn set version 1.x", "install:foundry": "curl -L https://foundry.paradigm.xyz | bash && yarn update:foundry", "release": "pnpm build && pnpm changeset publish", "install:foundry": ...