Comments (2)
@ovmjm: How would you imagine this to work with npm itself, if at all?
I can imagine extending the exported normalize
function with an options
argument, making room for overriding some defaults, but unless you'd use this normalize
function on its own, you won't have access to it. If you want npm to respect such an option, npm would need to support that explicitly, i.e. it would need to an extra configuration setting or command line argument.
The only way I see to sidestep npm in this regard would be to have this function look at some magic environment variable or so, which I don't feel good about.
I think it could make sense to have npm support an config setting for automatically expanding repo url shorthand for private packages, but this is in the hands of @isaacs .
- What do you think of accepting arguments in the form of
normalize(data, warnFn, options)
? - Are you willing to add support in npm for "expanding" private repo url short-hand differently than public packages?
from normalize-package-data.
I'd file an issue on isaacs/npm . If people agree it's a good thing, I'll add support for it, so npm can support it on the whole. Without explicit support from npm, I don't think adding support for it here is gonna be of much use to you.
I generally like the idea, although I think it could be better to allow differentiating between private and public packages for which "short-hand resolver" to use. As soon as npm reaches a public package, it can be assumed that all packages using short-hand will be available from GitHub. This would lighten the burden on the private git server. Bing able to override the resolver for public packages as well could be handy for either doing clever overrides for dependencies (not sure if that's a smart thing) or removing dependence on GitHub.
I don't think npm has any notion of "local" configuration currently (like Bower does with its local bowerrc
files), so that would essentially entail a second feature request for npm, if needed.
from normalize-package-data.
Related Issues (20)
- Drop semver 4.3.0 and earlier versions
- [BUG] Array dependencies can't handle scoped packages
- [BUG] lib/fixer.js#fixLicenseField should not display warning when field is spelled `licence`
- [BUG] missing tag HOT 1
- [BUG] Allow sentimental versioning HOT 2
- [BUG] Missing 'main' field doesn't default to 'index.js' HOT 1
- [BUG] docs(README) license is BSD-2-Clause but points to MIT
- Npm audit issue HOT 5
- Scurity Fix coming? CVE-2021-23343 path-parse ? HOT 1
- [BUG] Error thrown when normalising Partytown React package HOT 1
- [BUG] Invalid name: "@apollo/client/core" HOT 3
- Reporting a vulnerability HOT 1
- [FEATURE] drop logging
- [Deps vulnerability] semver version vulnerability HOT 1
- [FEATURE] “fixed” description is often less relevant than nothing
- Why are optional dependencies copied over? HOT 2
- [DOCS] Documentation does not match argument order HOT 1
- typos.json with non-standard formatting causes minification errors later HOT 1
- please add tag for 2.4.0 release
- Release 2.4.1 is breaking builds that use it such as Karma 0.5.5 HOT 19
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 normalize-package-data.