ConfigReader
namespace
ConfigReader
sourceexport namespace ConfigReader export namespace ConfigReaderinterface
CreateOptions
sourceexport interface CreateOptions export interface CreateOptionsboolean booleanboolean booleanJitiResolveOptions|false JitiResolveOptions|falseinterface
FindOptions
sourceexport interface FindOptions export interface FindOptionsstring[] string[]function
getProjectLang
sourceexport async function getProjectLang(cwd: string): Promise<LangType> export async function getProjectLang(cwd: string): Promise<LangType>| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
Promise<LangType> Promise<LangType>variable
defaultConfigPath
sourceexport const defaultConfigPath: { ts: unknown; js: unknown; } export const defaultConfigPath: { ts: unknown; js: unknown; }function
getDefaultContent
sourceexport async function getDefaultContent(type: LangType): Promise<string> export async function getDefaultContent(type: LangType): Promise<string>| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
Promise<string> Promise<string>variable
configFilenames
sourceexport const configFilenames: string[] export const configFilenames: string[]function
createConfigFilename
sourceexport function createConfigFilename(type: LangType, esm: boolean = false): string export function createConfigFilename(type: LangType, esm: boolean = false): string| Param | Type | Required |
|---|---|---|
| | Yes |
| | No |
Returns:
string stringfunction
normalizeTsdownConfig
sourceexport function normalizeTsdownConfig({ type, overrides }: { type: LangType; overrides: BuildConfig; } = {}): TsdownConfig export function normalizeTsdownConfig({ type, overrides }: { type: LangType; overrides: BuildConfig; } = {}): TsdownConfig| Param | Type | Required |
|---|---|---|
| | No |
Returns:
TsdownConfig TsdownConfig