Objective
To create a mono repo using the PNPM package manager and its workspace feature.
The main advantage of the PNPM workspace when...
For further actions, you may consider blocking this person and/or reporting abuse
This article is gold. Thanks man
Amazinnngggg, I learned a lot
awesome article ! I learn how to config a monorepo project
太棒了 非常规范的提交 学到了很多
Great article!!!
Only one question remains open:
Is it possible to have
main.ts
in watch-mode with hmr-updates while developing? That would be really helpful!And maybe
-e
should be added afterecho
where.prettierrc.json
is created.I found out, that this does the job:
"watch": "concurrently \"tsc --watch\" \"vite build --watch\"",
in
./packages/common/package.json
and then (afterpnpm add -D concurrently
):pnpm --filter common watch
.But is there a better solution, especially when common grows?
Thank you so much for your article, it is amazing.
I followed your instructions to set up and configure my pnpm monorepo, but I'm encountering an issue using the "common" package in the webapp. When I try to use it, TypeScript can't resolve the path. However, I downloaded your repository, installed it, and it works perfectly, so I believe there might be a specific issue with my setup
My mistake! I copied this:
into the main package.json file, but I should have added it to packages/common/package.json.
Cool :)
I really thank you. Very clean and well detailed article.
Very good article!!
The sample is for front-end libraries, but for node back end libraries you have another sample?
Thank you. I'm not a backend developer so haven't got the opportunity to try it out. Probably you can try and share it with us. 🙂
this seems to be article about eslint instead of monorepo