@hyperse/dependency-sync
Version:
A comprehensive Node.js utility for managing dependencies in monorepo environments, specifically designed for Hyperse plugin ecosystems.
20 lines (19 loc) • 681 B
TypeScript
/**
* Extract all the imported modules from the project
* @param projectCwd - The project directory
* @returns The import modules
*/
export declare function extractImportedModules(projectCwd: string): Promise<Set<string>>;
/**
* Extract the import modules from the file content
* @example
* ```ts
* import { gql } from "graphql-tag";
* import { PluginCommonModule, VendurePlugin } from '@vendure/core';
* import { PublicCustomerGroupsResolver } from './public-customer-groups.resolver.js';
* ```
* @example
* @param fileContent - The file content
* @returns The import modules
*/
export declare function extractFileImportedModules(fileContent: string): Set<string>;