🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
29
node_modules/import-meta-resolve/lib/package-config.d.ts
generated
vendored
Normal file
29
node_modules/import-meta-resolve/lib/package-config.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/// <reference types="node" resolution-mode="require"/>
|
||||
/**
|
||||
* @param {string} path
|
||||
* @param {string|URL} specifier Note: `specifier` is actually optional, not base.
|
||||
* @param {URL} [base]
|
||||
* @returns {PackageConfig}
|
||||
*/
|
||||
export function getPackageConfig(
|
||||
path: string,
|
||||
specifier: string | URL,
|
||||
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 = 'module' | 'commonjs' | '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 'url'
|
||||
Loading…
Add table
Add a link
Reference in a new issue