1234567891011121314151617181920212223242526272829 |
- export * from './dist/shared'
- export interface PackageInfo {
- name: string
- rootPath: string
- packageJsonPath: string
- version: string
- packageJson: {
- name: string
- version: string
- dependencies?: Record<string, string>
- devDependencies?: Record<string, string>
- [key: string]: any
- }
- }
- export interface PackageResolvingOptions {
- paths?: string[]
- }
- export function isPackageExists(name: string, options?: PackageResolvingOptions): boolean
- export function getPackageInfo(name: string, options?: PackageResolvingOptions): Promise<PackageInfo | undefined>
- export function getPackageInfoSync(name: string, options?: PackageResolvingOptions): PackageInfo | undefined
- export function resolveModule(path: string, options?: PackageResolvingOptions): string | undefined
- export function importModule<T = any>(path: string): Promise<T>
|