mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-28 03:51:40 -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
17 lines
456 B
TypeScript
17 lines
456 B
TypeScript
import type { PatchGroupRecord } from '@pnpm/patching.types'
|
|
|
|
export function * allPatchKeys (patchedDependencies: PatchGroupRecord): Generator<string> {
|
|
for (const name in patchedDependencies) {
|
|
const group = patchedDependencies[name]
|
|
for (const version in group.exact) {
|
|
yield group.exact[version].key
|
|
}
|
|
for (const item of group.range) {
|
|
yield item.patch.key
|
|
}
|
|
if (group.all) {
|
|
yield group.all.key
|
|
}
|
|
}
|
|
}
|