Replies: 1 comment
-
Nx is lacking documentation on a multi-version policy implementation. Multiple independently versioned projects are explicitly supported per their documentation but I could not find any other documentation on how to implement this especially while using My desired capability is to both be able to opt out of SVP for individual packages within a project or to opt out entirely if necessary. Opting out of SVP is sometimes necessary for example, pushing a security hotfix that breaks one project but not others, or handling a peer dependency conflict for a dependency other projects do not rely on during an upgrade. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Background
We're currently running a micro frontend architecture with multiple Next.js 14 applications using TypeScript, Tailwind CSS, and pnpm as our package manager on NX 19.42. Each micro frontend has significantly different requirements, and we want to avoid declaring all dependencies in the root package.json with a single version policy.
Purpose/Goal
We're seeking a solution that leverages pnpm workspaces effectively through NX while maintaining flexibility for individual applications. Additionally, we want to minimize NX's integration complexity and learning curve by using it at a minimal level initially, with the ability to adopt more features incrementally as needed.
Desired Outcome
We're looking for a setup where:
Specific Questions
1. Multi-Version Policy & pnpm Workspaces
2. CI/CD & Dependency Management
package install
during CI builds for specific applications when each app has its own dependencies?3. Incremental NX Adoption
Additional Critical Issue: Barrel File Exports
We're experiencing significant issues with barrel file exports that we consider a major problem:
Tree Shaking Limitations
sideEffects
fields in package.json is challenging and error-proneDirect Import Strategy
Current Setup: NX 19.42, Next.js 14, TypeScript, Tailwind CSS, pnpm, Micro Frontend Architecture
Any insights on both the versioning strategy and barrel file alternatives would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions