@eggjs/utils
Version:
Utils for all egg projects
27 lines (26 loc) • 956 B
TypeScript
import { getFrameworkPath } from './framework.js';
import { getPlugins, getConfig, getLoadUnits } from './plugin.js';
import { getFrameworkOrEggPath } from './deprecated.js';
export { getFrameworkPath } from './framework.js';
export { getPlugins, getConfig, getLoadUnits, getLoader, findEggCore } from './plugin.js';
export { getFrameworkOrEggPath } from './deprecated.js';
export * from './import.js';
export * from './error/index.js';
declare const _default: {
getFrameworkPath: typeof getFrameworkPath;
getPlugins: typeof getPlugins;
getConfig: typeof getConfig;
getLoadUnits: typeof getLoadUnits;
getFrameworkOrEggPath: typeof getFrameworkOrEggPath;
};
export default _default;
export declare enum EggType {
framework = "framework",
plugin = "plugin",
application = "application",
unknown = "unknown"
}
/**
* Detect the type of egg project
*/
export declare function detectType(baseDir: string): Promise<EggType>;