You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
support inherited dependencies ("peerDependencies") #5
packages like pg-then will require('pg') even though they don't declare it as a dependency. This works with npm since pg-then ends up being installed in the same node_modules folder as pg but when they are symlinked from a global store this doesn't work. And babel-runtime does require('babel-runtime'). haha
These packages should declare these dependencies in "peerDependencies" but they don't because with npm they can get away without it.
And BTW the hackery I mentioned in #1 won't be necessary if pnpm support "peerDependencies" and if packages use it correctly
And babel-runtime does require('babel-runtime'). haha
This is accounted for, actually. [email protected]/node_modules/babel-runtime is a symlink to [email protected]. I don't know why they'd bother doing that though, it seems only babel-runtime@^5 has this issue... but yeah, I'm able to get babel to work with pnpm through this. ied does the same.
These packages should declare these dependencies in "peerDependencies" but they don't because with npm they can get away without it.
peerDependencies isn't "supported" by npm, btw. Modern npm2 and npm3 versions won't install any peerDependencies for you. With pg-then + pg, you're expected to add both to your project. This is the same with other similar setups (some of these examples declare others as peerDependencies, some don't):
Activity
rstacruz commentedon Jan 29, 2016
This is accounted for, actually.
[email protected]/node_modules/babel-runtimeis a symlink to[email protected]. I don't know why they'd bother doing that though, it seems onlybabel-runtime@^5has this issue... but yeah, I'm able to get babel to work with pnpm through this. ied does the same.peerDependencies isn't "supported" by npm, btw. Modern npm2 and npm3 versions won't install any peerDependencies for you. With
pg-then+pg, you're expected to add both to your project. This is the same with other similar setups (some of these examples declare others as peerDependencies, some don't):eslint+eslint-config-standardjsdom+jsdom-globalpg+knexbabel-preset-es2015+babel-runtime(orbabel-register,babelify,babel-core)browserify+babelifypnpm more or less mirrors
npm@2's behavior.Using most instead of xstream and adding stats logging (#5)
fix(package): update @types/node to version 8.0.34
chore: update dependencies
feat(outdated): include node, deno, and bun runtimes (#11739)