commitizen / commitizen/cz-cli

YARN 3- Usage Error: Couldn't find a script named "cz".

未关闭
#951 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
17.5k
派生
566
平均合并
8 小时 16 分钟
30 天内合并 PR
1

描述

We've been using Yarn Classic for our project, which is a monorepo with different workspaces.. We decided to upgrade yarn to Yarn version 3.2.3.

We used to run:

`yarn workspace @repo/plugin cz`

and it worked.

Now with the new version, it throws, even though we have it already installed at the root level

```

Usage Error: Couldn't find a script named "cz".

$ yarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] ...
```

We have already set the following in settings inside the package.json workspace

```
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
```
It works fine if I install the dependency inside the plugin, but it shouldn't happen as it is already installed at the root level, and as I explained before it still works with yarn classic.

I've been stuck with issues for a while, so I wonder if Yarn 3.2.3 has a different way of doing things that throws that error or if it is a compatibility issue.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。