Comments (7)
@milo- Thanks for reporting. I have no experience using overrides, but it sounds like an easy fix so I will soon look into it.
Could you maybe post an example package manifest here so I'm sure what it looks like?
from isolate-package.
Sure thing @0x80
{
"name": "XXX",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
},
"dependencies": {},
"devDependencies": {},
"engines": {
"node": "20",
"pnpm": ">=3"
},
"packageManager": "[email protected]",
"pnpm": {
"overrides": {
"lodash@<4.17.11": ">=4.17.11",
"lodash@<4.17.5": ">=4.17.5",
"minimatch@<3.0.2": ">=3.0.2",
"lodash@<4.17.12": ">=4.17.12",
"lodash@<4.17.21": ">=4.17.21",
"minimatch@<3.0.5": ">=3.0.5",
"undici": "^5.28.3",
"jose@>=3.0.0 <=4.15.4": ">=4.15.5",
"@google-cloud/firestore": "7.3.1"
}
}
}
from isolate-package.
Thanks, I'm going to assume that we can ditch the whole pnpm field then, unless you tell me otherwise. I don't know what other things can be part of it, or what it will be used for in the future, but I think it's probably safer to omit it completely if we don't know.
from isolate-package.
I think the two options that will work are:
- Copy pnpm.overrides from the root package.json into isolate/package.json
- Remove overrides from isolate/pnpm-lock.yaml
⬇️ This is an example of the lock file
lockfileVersion: '6.0'
overrides:
lodash@<4.17.11: '>=4.17.11'
lodash@<4.17.5: '>=4.17.5'
from isolate-package.
Ah, right. But to be version correct / true to the original lockfile, we should go for option 1 I think?
from isolate-package.
Yeah I think so 👍
from isolate-package.
I can also confirm that the correct path is to copy the pnpm.overrides
to the isolate/package.json
.
from isolate-package.
Related Issues (20)
- Add support for Rush monorepos HOT 17
- Add support for passing CLI arguments HOT 6
- Failing to pack with PNPM HOT 4
- There are types at 'isolate-package/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". HOT 7
- Isolate seem to be not copying the `.env` file HOT 2
- Remove excess packages from the list in pnpm lockfile
- Fix package registry logic for non-rush repositories
- Strip forceNpm option for sake of simplicity
- Reintroduce excludeLockfile
- Add support for pnpm v9 HOT 4
- trouble shooting some problems HOT 3
- Consistently use pnpm pack if suitable
- Adopt packageManager field from root manifest
- Add flag to omit packageManager field
- Define config using a typed function
- Option to prevent move of node_modules for NPM HOT 3
- Will fail if pnpm-workspace.yaml is empty HOT 2
- Handle non-monorepo setups
- Isolated pnpm lockfile is missing overrides HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from isolate-package.