mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-13 02:55:56 -04:00
Library packages had `prepublishOnly: pn compile`, which expands to `tsgo --build && pn lint --fix`. During `pn release` that runs eslint against ~150 packages for no benefit — the code has already been linted in CI and the release flow's upfront compile has already built dist/. Switch lib prepublishOnly to a bare `tsgo --build` so the safety-net compile stays but the per-package eslint cost is gone.
@pnpm/normalize-registries
Accepts a mapping of registry URLs and returns a mapping with the same URLs but normalized
Installation
pnpm add @pnpm/normalize-registries
Usage
import normalizeRegistries from '@pnpm/normalize-registries'
normalizeRegistries({
'default': 'https://registry.npmjs.org',
'@foo': 'https://example.com',
})
// will return the same object but the URLs will end with a /