All Questions
89
questions
0
votes
0
answers
18
views
How can I keep standalone lockfiles working in a mono-repo managed by Yarn?
I'm using a monorepo with Yarn workspaces as a means to manage a dozen or so WordPress plugins. Each plugin needs to be able to build (webpack) and deploy independently.
The issue happens occasionally ...
0
votes
0
answers
145
views
How to link a package from a monorepo that is using `yarn workspaces`?
I have a monorepo using yarn workspaces. It is actually the repo of redux-toolkit. I made some modifications on the toolkit package and I would like to test it locally with yarn link in another ...
0
votes
0
answers
128
views
Yarn 4 sharing dependencies between packages in monorepo
I have a monorepo that has a package packages/my-config containing babel configuration and all the required dependencies for that configuration.
When I was using yarn 1 when I imported that ...
3
votes
0
answers
200
views
Yarn monorepo performance issues during development: Many "The code generator has deoptimised the styling" messages
My monorepo looks as follows:
app1
packages/package1
packages/packageN
This is a yarn 3 monorepo with turborepo for caching build assets.
App1 consumes package1.
App1 is a simple Vite React app.
...
0
votes
0
answers
193
views
React Native reusable components with Yarn workspace
I want to make monorepo with multiple react native apps and shared packages. I had to add nohoist for every RN app and to configure Metro to watch shared code like:
watchFolders: [
path.resolve(...
0
votes
1
answer
467
views
Deploying monorepo project to vercel with yarn while ignoreing other projects in .vercelignore results in error YN0028
I have a monorepo with packages and apps that uses yarn 3.6.1. When I deploy the web app to Vercel I have to include the unrelated apps in .vercelignore since the website does not use them and it ...
0
votes
1
answer
520
views
Yarn workspaces with absolute path
I am using yarn 1.22.19, my package.json file contains
"workspaces": [
"/some/path/packages/*"
],
When I run yarn install it doesn't create symlink for the packages under ...
-1
votes
1
answer
1k
views
Yarn does not see workspaces
I have the following configuration in a root workspace. The strange thing is that for backend it works, but for frontend - doesn't, no matter how I rename this
{
"private": true,
&...
1
vote
0
answers
233
views
In yarn workspaces, can i import a submodule original ts file instead of "main": "lib/index.js" file?
In my repo, i use yarn workspaces to manage multiple packages.The structure like:
packages
pkg1
lib
index.js
src
index.ts
package.json
pkg2
lib
index.js
src
...
1
vote
0
answers
139
views
Is there any way to share the same dependencies in monorepo with yarn berry workspaces?
I'm currently building a monorepo with yarn berry.
So i've had to make a lot of many package.json to control the each of workspaces.
But i noticed there are too many the same dependencies in the each ...
1
vote
1
answer
701
views
How to add package from sub-directory of monorepo with yarn
I have a fork of the expo monorepo that has changes in only one of the sub-packages (e.g. expo-speech). I want to import only that sub-package in my application. Given these parameters:
GitHub ...
3
votes
0
answers
439
views
Yarn monorepo & typescript paths in packages
Has anyway succeeded in making this work? We have a yarn workspace, consisting of packages and apps. E.g.:
libs
ui
src
package.json
tsconfig.json
apps
app-1
src
package.json
...
1
vote
0
answers
537
views
Using Vue3 and Vue2 simultaneously in monorepo
I have a problem building Vue3 and Vue2 apps in monorepo.
When trying to build the apps I see an error in Vue3 app:
error in ./src/App.vue
Syntax Error: TypeError: Cannot read properties of ...
0
votes
1
answer
84
views
When implementing monorepo, where should I place configuration files such as webpack, eslint?
directory structure
project
│ README.md
│ .gitignore
│ package.json
│
└───packages
│ │
│ └───A
│ │ │ package.json
│ │ │ index.html
│ │ └───src
│ │
│ └───B
│ │ │ ...
3
votes
0
answers
740
views
Use Sentry Releases in a yarn monorepo
I'm using a Yarn monorepo which contains Typescript modules that provide content to the backend. I'm using a Github Action workflow for each module to deploy it. In the shared SDK is Sentry configured ...