yarn-workspaces

How to deploy one app from a large monorepo with dependencies to packages in the same repo to google app engine?

邮差的信 提交于 2021-02-18 04:56:29
问题 I have a large node.js monorepo with several applications and packages and inter dependencies. It is all managed with yarn workspaces and a little bit of lerna. Everything works great for me, however I am having trouble trying to deploy one of the applications in this monorepo to google app engine. The main issue is that the app engine wants to install packages that are located only locally and are not on npm, and it throws an error. I've scoured the google cloud documentations but did not

React Native in yarn workspaces not resolving external packages

痞子三分冷 提交于 2021-02-17 04:51:13
问题 I am using yarn workspaces to create monorepo for react and react-native . I tried to add redux to @app/common and it works fine with react , but it is not resolving in native. You can see the source at https://github.com/Faisal-Manzer/react-and-react-native-monorepo/tree/08-redux. When loading bundle it is giving the following error. error: Error: Unable to resolve module `redux` from `../common/reducers/index.js`: redux could not be found within the project or in these directories: ../..

Yarn workspaces: nohoist exclude

烈酒焚心 提交于 2021-01-29 20:29:11
问题 In my package.json, I currently have "workspaces": { "nohoist": ** } I would like to specify JUST TWO packages to hoist, and nohoist on everything else. Is there a simple way to do this without pasting all of my packages except those two into nohoist ? 回答1: After days of digging I ended up with the following configuration. Yarn seems to use some kind of Bash glob pattern matching (see this Linux journal article for a tutorial). In this configuration the "nohoist" rule disables hoisting for

Firebase Functions with Yarn workspaces

依然范特西╮ 提交于 2020-06-24 08:36:05
问题 We're starting to adopt a monorepo setup using yarn workspaces and we'd like to have our firebase functions inside it. The repo structure is something like: repo node_modules <- all dependencies packages core commom functions <- firebase functions So, I have 2 problems with this setup: The dependencies of the functions don't live on the same folder as the entry file from functions The functions depends on other packages such as core and commom that are in the repo so yarn symlinks from node

How to use yarn workspaces with typescript and out folders?

最后都变了- 提交于 2020-02-27 22:35:04
问题 I'm trying to set up a monorepo using yarn. I'm confused as to how to set up typescript with project references such that things resolve properly. For example, if I have a folder structure like /cmd /client And I want cmd to depend on client I could have: cmd/tsconfig.json : { "compilerOptions": { "types": ["reflect-metadata", "jest"], "experimentalDecorators": true, "emitDecoratorMetadata": true, "moduleResolution": "node", "declaration": true, "importHelpers": true, "composite": true,