| 9 | import { cacheForDirs } from './utils.js' |
| 10 | |
| 11 | export interface SorterOptions { |
| 12 | /** |
| 13 | * The directory used to resolve relative file paths. |
| 14 | * |
| 15 | * When not provided this will be: |
| 16 | * - The current working directory |
| 17 | */ |
| 18 | base?: string |
| 19 | |
| 20 | /** |
| 21 | * The path to the file being formatted. |
| 22 | * |
| 23 | * When provided, Tailwind CSS is resolved relative to this path; otherwise, |
| 24 | * it is resolved relative to `base`. |
| 25 | */ |
| 26 | filepath?: string |
| 27 | |
| 28 | /** |
| 29 | * Path to the Tailwind CSS config file (v3). |
| 30 | * |
| 31 | * Paths are resolved relative to `base`. |
| 32 | */ |
| 33 | configPath?: string |
| 34 | |
| 35 | /** |
| 36 | * Path to the CSS stylesheet used by Tailwind CSS (v4+). |
| 37 | * |
| 38 | * Paths are resolved relative to `base`. |
| 39 | */ |
| 40 | stylesheetPath?: string |
| 41 | |
| 42 | /** |
| 43 | * Whether or not to preserve whitespace around classes. |
| 44 | * |
| 45 | * Default: false |
| 46 | */ |
| 47 | preserveWhitespace?: boolean |
| 48 | |
| 49 | /** |
| 50 | * Whether or not to preserve duplicate classes. |
| 51 | * |
| 52 | * Default: false |
| 53 | */ |
| 54 | preserveDuplicates?: boolean |
| 55 | |
| 56 | /** |
| 57 | * The package name to use when loading Tailwind CSS. |
| 58 | * |
| 59 | * Useful when multiple versions are installed in the same project. |
| 60 | * |
| 61 | * Default: `tailwindcss` |
| 62 | * |
| 63 | * @internal |
| 64 | */ |
| 65 | packageName?: string |
| 66 | } |
| 67 | |
| 68 | export interface Sorter { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…