Skip to main content

All Questions

Tagged with
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 ...
m_i_rite's user avatar
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 ...
1mplement1t's user avatar
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 ...
Peter S.'s user avatar
  • 357
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. ...
aborted's user avatar
  • 4,521
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(...
Nemanja Pavlović's user avatar
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 ...
Jake's user avatar
  • 393
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 ...
Dor Meiri's user avatar
  • 467
-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, &...
Kirill Zlobin's user avatar
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 ...
eder's user avatar
  • 73
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 ...
YO Y's user avatar
  • 111
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 ...
gabe's user avatar
  • 1,911
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 ...
Daniel Stoyanoff's user avatar
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 ...
plachu's user avatar
  • 11
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 │ │ │ ...
yjlee's user avatar
  • 505
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 ...
NiRo's user avatar
  • 31

15 30 50 per page
1
2 3 4 5 6