Time slots app prototype
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
856 B

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>