mirror of
https://github.com/pnpm/pnpm.git
synced 2026-07-25 07:03:03 -04:00
* build: enable `@typescript-eslint/no-import-type-side-effects` * build: disable `@typescript-eslint/consistent-type-imports` * chore: apply fixes for `no-import-type-side-effects` pnpm exec eslint "**/src/**/*.ts" "**/test/**/*.ts" --fix
@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 /