@samual/rolldown-plugin-prettier 0.0.1-7350a61 → 0.0.1-e9bc31f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +19 -17
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -5,25 +5,27 @@
|
|
|
5
5
|
import type { Options as PrettierOptions } from 'prettier';
|
|
6
6
|
import type { Plugin } from 'rolldown';
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
export interface Options extends PrettierOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Directory to look for a Prettier config file.
|
|
11
|
+
*
|
|
12
|
+
* If omitted, defaults to `process.cwd()`.
|
|
13
|
+
*/
|
|
14
|
+
cwd?: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Whether to generate a sourcemap.
|
|
18
|
+
*
|
|
19
|
+
* Note: This may take some time because rollup-plugin-prettier diffs the
|
|
20
|
+
* output to manually generate a sourcemap.
|
|
21
|
+
*/
|
|
22
|
+
sourcemap?: boolean | 'silent';
|
|
23
|
+
}
|
|
16
24
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
*
|
|
20
|
-
* Note: This may take some time because rollup-plugin-prettier diffs the
|
|
21
|
-
* output to manually generate a sourcemap.
|
|
22
|
-
*/
|
|
23
|
-
sourcemap?: boolean | 'silent';
|
|
24
|
-
}
|
|
25
|
+
declare namespace prettier {
|
|
26
|
+
export { Options }
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
declare function prettier(options?: prettier.Options): Plugin;
|
|
28
30
|
|
|
29
|
-
export
|
|
31
|
+
export default prettier;
|
package/package.json
CHANGED