UNPKG

@o3r/schematics

Version:

Schematics module of the Otter framework

38 lines 1.77 kB
import * as fs from 'node:fs'; /** * Retrieve the peer dependencies with the given pattern from the given package json file * @param packageJsonPath * @param pattern * @param readFileSync */ export declare function getPeerDepWithPattern(packageJsonPath: string, pattern?: RegExp | string[], readFileSync?: typeof fs.readFileSync): { packageName: string | undefined; packageVersion: string | undefined; matchingPackages: string[]; matchingPackagesVersions: { [k: string]: string | undefined; }; }; /** * Get the list of o3r peer deps from a given package.json file * @param packageJsonPath The package json on which we search for o3r peer deps * @param filterBasics If activated it will remove the basic peer deps (o3r/core, o3r/workspace and o3r/schematics) from the list of results * @param packagePattern Pattern of the package name to look in the packages peer dependencies. * @param versionRangePrefix Prefix to add to the package version to determine Semver Range */ export declare function getO3rPeerDeps(packageJsonPath: string, filterBasics?: boolean, packagePattern?: RegExp, versionRangePrefix?: string): { packageName: string | undefined; packageVersion: string; o3rPeerDeps: string[]; }; /** * Get the list of o3r generator deps from a given package.json file * @param packageJsonPath The package json on which we search for o3r generator deps * @param packagePattern Pattern of the package name to look in the packages generator dependencies. */ export declare function getO3rGeneratorDeps(packageJsonPath: string, packagePattern?: RegExp): { packageName: string | undefined; packageVersion: string | undefined; o3rGeneratorDeps: string[]; }; //# sourceMappingURL=matching-peers.d.ts.map