UNPKG

extension-develop

Version:
24 lines (23 loc) 1.79 kB
import { type Compilation } from '@rspack/core'; import { type Manifest, type FilepathList } from '../webpack-types'; import { DevOptions } from '../../module'; export declare function getResolvedPath(context: string, filePath: string, basePath: string): string; export declare function isFromFilepathList(filePath: string, filepathList?: FilepathList): boolean; export declare function getFilename(feature: string, filePath: string, excludeList: FilepathList): string; /** * Change the path from win style to unix style */ export declare function unixify(filePath: string): string; export declare function shouldExclude(filePath: string, ignorePatterns?: FilepathList): boolean; export declare function getManifestContent(compilation: Compilation, manifestPath: string): Manifest; export declare function getRelativePath(from: string, to: string): string; export declare function isFromPnpx(): false | "pnpm"; export declare function isFromNpx(): false | "npm"; export declare function installOptionalDependencies(integration: string, dependencies: string[]): Promise<void>; export declare function isUsingJSFramework(projectPath: string): boolean; export declare function isFirstRun(outputPath: string, browser: DevOptions['browser']): boolean; export declare function hasShownFirstRunMessage(projectPath: string, browser: DevOptions['browser']): boolean; export declare function markFirstRunMessageShown(projectPath: string, browser: DevOptions['browser']): void; export declare function shouldShowFirstRun(outputPath: string, browser: DevOptions['browser'], projectPath: string): boolean; export declare function filterKeysForThisBrowser(manifest: Manifest, browser: DevOptions['browser']): any; export declare function hasDependency(projectPath: string, dependency: string): boolean;