@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.
Files changed (2) hide show
  1. package/index.d.ts +19 -17
  2. 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
- declare namespace prettier {
9
- interface Options extends PrettierOptions {
10
- /**
11
- * Directory to look for a Prettier config file.
12
- *
13
- * If omitted, defaults to `process.cwd()`.
14
- */
15
- cwd?: string;
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
- * Whether to generate a sourcemap.
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 = prettier;
31
+ export default prettier;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samual/rolldown-plugin-prettier",
3
- "version": "0.0.1-7350a61",
3
+ "version": "0.0.1-e9bc31f",
4
4
  "description": "Rolldown plugin for code formatting using Prettier",
5
5
  "author": "Mickael Jeanroy <mickael.jeanroy@gmail.com>",
6
6
  "contributors": [