@strapi/strapi
Version:
An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite
15 lines • 644 B
TypeScript
/**
* Detect if a package is locally linked (portal:, file:, yarn link) rather than installed in node_modules.
* When linked, the resolved path is outside node_modules.
*
* @internal
*/
export declare const isPackageLinked: (mod: string) => boolean;
/**
* Detects if @strapi/design-system is linked (portal:, file:, or yarn link).
* Returns the package root path when linked, null otherwise.
* Uses the heuristic: linked packages resolve outside node_modules.
*/
export declare const getLinkedDesignSystemPath: () => string | null;
export declare const isDesignSystemLinked: () => boolean;
//# sourceMappingURL=linked-packages.d.ts.map