mirror of
https://gitverse.ru/kpa39l/telepost.git
synced 2026-09-29 18:05:08 +00:00
Initial commit
This commit is contained in:
+25
@@ -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';
|
||||
Reference in New Issue
Block a user