UNPKG

recoder-code

Version:

Complete AI-powered development platform with ML model training, plugin registry, real-time collaboration, monitoring, infrastructure automation, and enterprise deployment capabilities

18 lines (14 loc) 467 B
/** Let a globally installed package use a locally installed version of itself if available. @param filePath - The absolute file path to the main file of the package. @example ``` import importLocal from 'import-local'; if (importLocal(import.meta.url)) { console.log('Using local version of this package'); } else { // Code for both global and local version here… } ``` */ export default function importLocal(filePath: string): boolean | undefined | unknown;