import __tsdown_shims_path from 'node:path'; import __tsdown_shims_url from 'node:url'; //#region src/vendored/prettier_types.d.ts /** * Vendor types from Prettier so we don't rely on the dependency. */ type VendoredPrettierOptions = Partial; interface VendoredPrettierOptionsRequired { /** * Specify the line length that the printer will wrap on. * @default 160 */ printWidth: number; /** * Specify the number of spaces per indentation-level. */ tabWidth: number; /** * Indent lines with tabs instead of spaces */ useTabs?: boolean; /** * Print semicolons at the ends of statements. */ semi: boolean; /** * Use single quotes instead of double quotes. */ singleQuote: boolean; /** * Use single quotes in JSX. */ jsxSingleQuote: boolean; /** * Print trailing commas wherever possible. */ trailingComma: 'none' | 'es5' | 'all'; /** * Print spaces between brackets in object literals. */ bracketSpacing: boolean; /** * Put the `>` of a multi-line HTML (HTML, XML, JSX, Vue, Angular) element at the end of the last line instead of being * alone on the next line (does not apply to self closing elements). */ bracketSameLine: boolean; /** * Put the `>` of a multi-line JSX element at the end of the last line instead of being alone on the next line. * @deprecated use bracketSameLine instead */ jsxBracketSameLine: boolean; /** * Format only a segment of a file. */ rangeStart: number; /** * Format only a segment of a file. * @default Number.POSITIVE_INFINITY */ rangeEnd: number; /** * By default, Prettier will wrap markdown text as-is since some services use a linebreak-sensitive renderer. * In some cases you may want to rely on editor/viewer soft wrapping instead, so this option allows you to opt out. * @default "preserve" */ proseWrap: 'always' | 'never' | 'preserve'; /** * Include parentheses around a sole arrow function parameter. * @default "always" */ arrowParens: 'avoid' | 'always'; /** * Provide ability to support new languages to prettier. */ plugins: unknown[]; /** * How to handle whitespaces in HTML. * @default "css" */ htmlWhitespaceSensitivity: 'css' | 'strict' | 'ignore'; /** * Which end of line characters to apply. * @default "lf" */ endOfLine: 'auto' | 'lf' | 'crlf' | 'cr'; /** * Change when properties in objects are quoted. * @default "as-needed" */ quoteProps: 'as-needed' | 'consistent' | 'preserve'; /** * Whether or not to indent the code inside