Skip to content

Commit a9b57f8

Browse files
Salnikafengmk2
andauthored
fix(cli): remove unsupported catalogMode for yarn monorepo (#873)
When creating a monorepo with `yarn` as package manager, the default template uses the `catalogMode` field which is not supported by [`yarn`](https://yarnpkg.com/features/catalogs). This PR removes the field in the `_yarnrc.yml` template file. ``` vp create --verbose VITE+ - The Unified Toolchain for the Web Vite+ Monorepo ◇ Package name: yarn-monorepo ◇ Which package manager would you like to use? yarn ◇ yarn@4.12.0 installed ◇ Which agents are you using? ChatGPT (Codex) ◇ Which editor are you using? VSCode ◇ Set up pre-commit hooks to run formatting, linting, and type checking with auto-fixes? Yes ◇ Initialize git repository: Yes Target directory: ./yarn-monorepo Creating Vite+ monorepo... Monorepo template created Git repository initialized Creating default application in apps/website... Running: yarn dlx create-vite@latest apps/website --template vanilla-ts --no-interactive --no-immediate --no-rolldown Usage Error: Unrecognized or legacy configuration settings found: catalogMode - run "yarn config" to see the list of settings supported in Yarn (in /private/var/folders/h4/nx53m7310nl_w6v5568pjb480000gq/T/xfs-4f51d873/dlx-38907/.yarnrc.yml) $ yarn add [--json] [-F,--fixed] [-E,--exact] [-T,--tilde] [-C,--caret] [-D,--dev] [-P,--peer] [-O,--optional] [--prefer-dev] [-i,--interactive] [--cached] [--mode #0] ... Failed to create default application: 1 Failed to create monorepo, exit code: 1 ``` --------- Signed-off-by: MK (fengmk2) <fengmk2@gmail.com> Co-authored-by: MK (fengmk2) <fengmk2@gmail.com>
1 parent badd963 commit a9b57f8

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# used for install vite-plus
2-
catalogMode: prefer
3-
42
catalog:
53
'@types/node': ^24
64
typescript: ^5

0 commit comments

Comments
 (0)