mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-16 05:00:30 -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
6 lines
243 B
TypeScript
6 lines
243 B
TypeScript
import type { PackageSnapshot } from '@pnpm/lockfile.types'
|
|
|
|
export function packageIsIndependent ({ dependencies, optionalDependencies }: PackageSnapshot): boolean {
|
|
return dependencies === undefined && optionalDependencies === undefined
|
|
}
|