@nubjs/extensions
v1.0.31
Published
Undeclared dependencies across the most-downloaded npm packages, as a packageExtensions database for pnpm and Yarn
Maintainers
Readme
@nubjs/extensions
Undeclared dependencies across the 10,000 most-downloaded packages on npm, published as a packageExtensions database that pnpm and Yarn read directly. Nub's phantom detector parses every published tarball in that corpus and resolves what the code imports against what the manifest declares.
npm add -D @nubjs/extensionsDrop-in for @yarnpkg/extensions
Change the specifier and nothing else changes. Same export name, same Array<[selector, data]> shape, same CommonJS and ESM entry points, no dependencies.
- import { packageExtensions } from '@yarnpkg/extensions';
+ import { packageExtensions } from '@nubjs/extensions';A strict superset of Yarn's database
Every rule in @yarnpkg/[email protected] is carried through field for field: the same range, the same manifest field, and a peer Yarn declared required is never relaxed to optional. Every pnpm install already merges that database unless ignoreCompatibilityDb is set, so a replacement that dropped a single rule would break installs that work today — a gate fails the build if any rule is weakened.
Method, per-entry evidence and the ready-to-paste config blocks for pnpm and Yarn: https://github.com/nubjs/package-extensions
