@varlet/vite-plugins 3.20.7 → 3.20.8

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/lib/index.d.ts +10 -11
  2. package/package.json +5 -5
package/lib/index.d.ts CHANGED
@@ -1,33 +1,32 @@
1
1
  import { Plugin } from "vite";
2
2
  //#region src/markdown.d.ts
3
- interface MarkdownOptions {
3
+ export interface MarkdownOptions {
4
4
  style?: string;
5
5
  }
6
- declare function markdown(options: MarkdownOptions): Plugin;
6
+ export declare function markdown(options: MarkdownOptions): Plugin;
7
7
  //#endregion
8
8
  //#region src/html.d.ts
9
- interface HtmlOptions {
9
+ export interface HtmlOptions {
10
10
  data?: Record<string, string | string[] | Record<string, any>>;
11
11
  }
12
- declare function html(options: HtmlOptions): Plugin;
12
+ export declare function html(options: HtmlOptions): Plugin;
13
13
  //#endregion
14
14
  //#region src/inlineCss.d.ts
15
- interface InlineCssOptions {
15
+ export interface InlineCssOptions {
16
16
  cssFile: string;
17
17
  jsFile: string;
18
18
  onEnd?(): void;
19
19
  }
20
- declare function inlineCss(options: InlineCssOptions): Plugin;
20
+ export declare function inlineCss(options: InlineCssOptions): Plugin;
21
21
  //#endregion
22
22
  //#region src/copy.d.ts
23
- interface CopyPath {
23
+ export interface CopyPath {
24
24
  from: string;
25
25
  to: string;
26
26
  type: 'folder' | 'file';
27
27
  }
28
- interface CopyOptions {
28
+ export interface CopyOptions {
29
29
  paths: CopyPath[];
30
30
  }
31
- declare function copy(options: CopyOptions): Plugin;
32
- //#endregion
33
- export { CopyOptions, CopyPath, HtmlOptions, InlineCssOptions, MarkdownOptions, copy, html, inlineCss, markdown };
31
+ export declare function copy(options: CopyOptions): Plugin;
32
+ //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/vite-plugins",
3
- "version": "3.20.7",
3
+ "version": "3.20.8",
4
4
  "description": "vite plugins of varlet",
5
5
  "keywords": [
6
6
  "vite",
@@ -29,18 +29,18 @@
29
29
  "highlight.js": "^10.7.2",
30
30
  "markdown-it": "^12.2.3",
31
31
  "pinyin-pro": "3.17.0",
32
- "@varlet/shared": "3.20.7"
32
+ "@varlet/shared": "3.20.8"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/ejs": "^3.1.1",
36
36
  "@types/fs-extra": "^9.0.2",
37
37
  "@types/markdown-it": "^12.2.3",
38
- "@types/node": "^20.19.0",
38
+ "@types/node": "^22.18.0",
39
39
  "typescript": "5.6.3",
40
- "vite-plus": "0.2.6"
40
+ "vite-plus": "1.1.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "vite": "npm:@voidzero-dev/vite-plus-core@0.2.6"
43
+ "vite": "npm:@voidzero-dev/vite-plus-core@1.1.0"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "vp pack",