Questions tagged [rush]

29 questions
7
votes
0 answers

What's the rush equivalent of npm audit fix?

What's the rush equivalent of npm audit fix? Rush runs behind the scenes npm, but doesn't have a package-lock, so when they tell me "run npm audit fix" I can't do that.
laila
  • 379
  • 1
  • 3
  • 10
4
votes
2 answers

How to deploy Azure function with pnpm and rush?

How do you deploy an Azure function app with pnpm? I'm using a rush monorepo and the rush deploy task which works great locally. The problem is that I'm unable to get ALL of my pnpm node_modules dependencies AND get my Azure function started in the…
Luis Naranjo
  • 649
  • 7
  • 18
4
votes
1 answer

I'm getting a weird (ERRCODE 243) error when installing a 3rd party js package using Rush.js by running `rush add --package `

my team is migrating to rush and I had a problem while setting it up: I'm getting a weird error when trying to add any 3rd party lib (let's say react) to package.json using rush add --package react (for example). The error log: Found configuration…
ikusteu
  • 121
  • 1
  • 1
  • 5
4
votes
0 answers

pnpm, workspace dependency and also supporting publishing?

I am new to pnpm workspaces and am trying to resolve the following issue. My demo project: root packages common-ui main-lib common-ui is a Vite based package containing some Vue components that can be reused by other packages, in my example…
Jdruwe
  • 3,450
  • 6
  • 36
  • 57
3
votes
2 answers

Have Rush add dev dependencies to new project

When adding a new project to a Rush monorepo, is there a way for Rush to automatically insert the dev dependencies into the package.json? For example I want to use the same test frameworks between projects so it would be good to have Rush sync the…
kierans
  • 2,034
  • 1
  • 16
  • 43
3
votes
1 answer

How to pack a snapshot of a local dependency in a published package

In a JavaScript monorepo managed with Rush, I have three projects: backend/ frontend/ shared/ In backend/package.json and frontend/package.json, the shared project is declared as a dependency: "dependencies": { "shared": "0.0.0", In the…
Paleo
  • 21,831
  • 4
  • 65
  • 76
2
votes
0 answers

How to build for docker (rush monorepo)?

So I have a monorepo using rush (pnpm). I have multiple applications and multiple libraries. Applications depend on libraries, and libraries depend on libraries. I know pnpm creates a node_modules folder using symlinks. I know docker copy directive…
caeus
  • 3,084
  • 1
  • 22
  • 36
2
votes
1 answer

How do you test only one file with Heft

I'm working on a project that recently implemented Rush. We're using Heft as a test runner, so the main test command is heft test. The problem is, no one knows how to only test one file. I tried using it with the --locale flag as well as with the -t…
Ben
  • 5,085
  • 9
  • 39
  • 58
1
vote
0 answers

WebStorm re-indexing monorepo

I am working on a huge monorepo application. They use rush and pnpm as monorepo manager. When I open project or checkout a branch or run rush update, because of many file changes. My IDE goes slow and consume a lot of CPU for indexing How can I make…
WebMaster
  • 3,050
  • 4
  • 25
  • 77
1
vote
1 answer

Rush Monorepo - Shared dependency is duplicated in node_modules

I'm using Rush to manage a monorepo, in which multiple packages depend on react-redux. They both specify the exact same version in their package.json file. Project A: Project B: Project B also depends on Project A. I would expect that since they…
Matthew Winfield
  • 827
  • 4
  • 10
  • 25
1
vote
0 answers

rush: enforce specific npm package version in monorepo service

we decided to start using rush as our monorepo tooling, however, we are having a specific issue here: in mail service, we have "typescript": "^4.5.4" as devdependencies due to some breaking changes .... but other services use "typescript":…
Tobi Owolawi
  • 550
  • 1
  • 4
  • 14
1
vote
0 answers

Cannot install specific projects in monorepo (RushJS) on BitBucket

I have a monorepo project that is using Rush which each projects can be either both frontend or backend dependencies. Some projects are used by both frontend and backend while some are for only either. Thus, I only want to install each specific…
Nelson
  • 11
  • 1
1
vote
0 answers

Uncaught (in promise) TypeError: Failed to execute 'fetch' on 'WorkerGlobalScope': Illegal invocation

I have an object host in a typescript code, which is created as: const host: Host = { fetch: globalThis.fetch, ... } Now when the entire project is built and ran on google chrome (using rush), then the system crashes and the console shows…
Vedant
  • 11
  • 2
1
vote
1 answer

rush setup angular monorepo with libs

I try to setup a monorepo with rush and angular workspaces and libs. But I struggle to make it work. Normally you have a workspace with multiple libs and build the libs from the workspace with ng build . But in rush I must specify a project…
blacksheep_2011
  • 1,083
  • 3
  • 11
  • 22
1
vote
1 answer

rush rebuild specify projects order

I am using microsoft rush to build a mono-repo. I have to build two projects - tools-common and tools-backend tools-backend depends on tools-common. rush rebuild works fine on the local machine. But on azure devops, it tries to first build…
Amit Teli
  • 875
  • 11
  • 25
1
2