packages/docusaurus/docs/getting-started/extra/recipes.mdx
yarn init -2
yarn add --dev typescript
yarn dlx @yarnpkg/sdks vscode
yarn packages/my-new-lib init
yarn packages/app tsc --noEmit
You may sometimes need to use node_modules on just part of your workspace (for example, if you use React-Native).
node_modules project.mkdir nm-packages/myproj
touch nm-packages/myproj/yarn.lock
node-modules linker :yarn --cwd packages/myproj config set nodeLinker node-modules
.yarnrc.yml at the root of your monorepo:pnpIgnorePatterns:
- ./nm-packages/**
yarn install to apply pnpIgnorePatterns in the repo root.cd nm-packages/myproj && yarn to install the now isolated project.