Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
26
node_modules/next/dist/lib/has-necessary-dependencies.d.ts
generated
vendored
Normal file
26
node_modules/next/dist/lib/has-necessary-dependencies.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
export interface MissingDependency {
|
||||
file: string;
|
||||
/**
|
||||
* The package's package.json (e.g. require(`${pkg}/package.json`)) MUST resolve.
|
||||
* If `exportsRestrict` is false, `${file}` MUST also resolve.
|
||||
*/
|
||||
pkg: string;
|
||||
/**
|
||||
* If true, the pkg's package.json needs to be resolvable.
|
||||
* If true, will resolve `file` relative to the real path of the package.json.
|
||||
*
|
||||
* For example, `{ file: '@types/react/index.d.ts', pkg: '@types/react', exportsRestrict: true }`
|
||||
* will try to resolve '@types/react/package.json' first and then assume `@types/react/index.d.ts`
|
||||
* resolves to `path.join(dirname(resolvedPackageJsonPath), 'index.d.ts')`.
|
||||
*
|
||||
* If false, will resolve `file` relative to the baseDir.
|
||||
* ForFor example, `{ file: '@types/react/index.d.ts', pkg: '@types/react', exportsRestrict: true }`
|
||||
* will try to resolve `@types/react/index.d.ts` directly.
|
||||
*/
|
||||
exportsRestrict: boolean;
|
||||
}
|
||||
export type NecessaryDependencies = {
|
||||
resolved: Map<string, string>;
|
||||
missing: MissingDependency[];
|
||||
};
|
||||
export declare function hasNecessaryDependencies(baseDir: string, requiredPackages: MissingDependency[]): Promise<NecessaryDependencies>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue