/// import * as Vinyl from 'vinyl'; export default class File { /** A regexp that matches all path separators. */ static sep: RegExp; /** The working directory of the origin file. */ cwd: string; /** The base directory of the file. */ base: string; /** How the file was mentioned in the origin file. */ mention: string; /** The absolute path to the directory containing the file that originally mentioned this file. */ origin: string; /** The absolute path to the file that originally mentioned this file. */ originPath: string; /** The directory that contains imported modules. */ private modulesDir; /** If set to true /index.js will be appended to the resolved filename. */ private isDirectory; constructor(origin: Vinyl, mention: string, modulesDir?: string); /** If set to true /index.js will be appended to the resolved filename. */ isDir: boolean; /** The absolute path to the file. */ readonly resolved: string; /** Is true if the mention does not start with "./" or "../" */ readonly isModule: boolean; /** * The absolute final path. */ readonly finalPath: string; /** * The final path relative to the output directory. * @example * "modules/jquery/dist/jquery.js" */ readonly finalName: string; /** An array containing the mention [0] and the path [1] to the file relative to the cwd. */ readonly final: [string, string]; /** Returns the file extension. */ readonly ext: string; }