🎉 initiate project *astro_rewrite*

This commit is contained in:
sindrekjelsrud 2023-07-19 21:31:30 +02:00
parent ffd4d5e86c
commit 2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions

View 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'