Initial commit

This commit is contained in:
2026-01-18 21:01:43 +03:00
commit 455b6df2ba
3329 changed files with 1143638 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
/// <reference types="node" resolution-mode="require"/>
/**
* @param {string} path
* @param {URL | string} specifier Note: `specifier` is actually optional, not base.
* @param {URL} [base]
* @returns {PackageConfig}
*/
export function getPackageConfig(path: string, specifier: URL | string, base?: URL | undefined): PackageConfig;
/**
* @param {URL} resolved
* @returns {PackageConfig}
*/
export function getPackageScopeConfig(resolved: URL): PackageConfig;
export type ErrnoException = import('./errors.js').ErrnoException;
export type PackageType = 'commonjs' | 'module' | 'none';
export type PackageConfig = {
pjsonPath: string;
exists: boolean;
main: string | undefined;
name: string | undefined;
type: PackageType;
exports: Record<string, unknown> | undefined;
imports: Record<string, unknown> | undefined;
};
import { URL } from 'node:url';