@vite-pwa/vitepress 0.2.0 → 0.2.1
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/dist/index.d.cts +16 -0
- package/dist/index.d.mts +16 -0
- package/dist/index.d.ts +1 -1
- package/package.json +13 -13
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as vite from 'vite';
|
|
2
|
+
import * as vitepress_dist_node from 'vitepress/dist/node';
|
|
3
|
+
import { DefaultTheme, UserConfigExport } from 'vitepress';
|
|
4
|
+
import { VitePWAOptions } from 'vite-plugin-pwa';
|
|
5
|
+
|
|
6
|
+
interface PwaOptions extends Partial<VitePWAOptions> {
|
|
7
|
+
}
|
|
8
|
+
declare module 'vitepress' {
|
|
9
|
+
interface UserConfig {
|
|
10
|
+
pwa?: PwaOptions;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare function withPwa<T = DefaultTheme.Config>(config: UserConfigExport<T>): Promise<vitepress_dist_node.UserConfig<T> | ((ctx: vite.ConfigEnv) => Promise<vitepress_dist_node.UserConfig<T>>)>;
|
|
15
|
+
|
|
16
|
+
export { type PwaOptions, withPwa };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as vite from 'vite';
|
|
2
|
+
import * as vitepress_dist_node from 'vitepress/dist/node';
|
|
3
|
+
import { DefaultTheme, UserConfigExport } from 'vitepress';
|
|
4
|
+
import { VitePWAOptions } from 'vite-plugin-pwa';
|
|
5
|
+
|
|
6
|
+
interface PwaOptions extends Partial<VitePWAOptions> {
|
|
7
|
+
}
|
|
8
|
+
declare module 'vitepress' {
|
|
9
|
+
interface UserConfig {
|
|
10
|
+
pwa?: PwaOptions;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare function withPwa<T = DefaultTheme.Config>(config: UserConfigExport<T>): Promise<vitepress_dist_node.UserConfig<T> | ((ctx: vite.ConfigEnv) => Promise<vitepress_dist_node.UserConfig<T>>)>;
|
|
15
|
+
|
|
16
|
+
export { type PwaOptions, withPwa };
|
package/dist/index.d.ts
CHANGED
|
@@ -13,4 +13,4 @@ declare module 'vitepress' {
|
|
|
13
13
|
|
|
14
14
|
declare function withPwa<T = DefaultTheme.Config>(config: UserConfigExport<T>): Promise<vitepress_dist_node.UserConfig<T> | ((ctx: vite.ConfigEnv) => Promise<vitepress_dist_node.UserConfig<T>>)>;
|
|
15
15
|
|
|
16
|
-
export { PwaOptions, withPwa };
|
|
16
|
+
export { type PwaOptions, withPwa };
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vite-pwa/vitepress",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
5
|
-
"packageManager": "pnpm@8.
|
|
4
|
+
"version": "0.2.1",
|
|
5
|
+
"packageManager": "pnpm@8.7.4",
|
|
6
6
|
"description": "Zero-config PWA for VitePress",
|
|
7
7
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
8
8
|
"license": "MIT",
|
|
@@ -43,21 +43,21 @@
|
|
|
43
43
|
"release": "bumpp && npm publish"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"vite-plugin-pwa": ">=0.16.
|
|
46
|
+
"vite-plugin-pwa": ">=0.16.5 <1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@antfu/eslint-config": "^0.
|
|
50
|
-
"@antfu/ni": "^0.21.
|
|
49
|
+
"@antfu/eslint-config": "^0.41.0",
|
|
50
|
+
"@antfu/ni": "^0.21.8",
|
|
51
51
|
"@types/debug": "^4.1.8",
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
53
|
-
"bumpp": "^9.
|
|
54
|
-
"eslint": "^8.
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "^6.6.0",
|
|
53
|
+
"bumpp": "^9.2.0",
|
|
54
|
+
"eslint": "^8.49.0",
|
|
55
55
|
"https-localhost": "^4.7.1",
|
|
56
|
-
"typescript": "^5.
|
|
57
|
-
"unbuild": "^
|
|
58
|
-
"vite": "^4.
|
|
59
|
-
"vite-plugin-pwa": ">=0.16.
|
|
60
|
-
"vitepress": "1.0.0-beta.
|
|
56
|
+
"typescript": "^5.2.2",
|
|
57
|
+
"unbuild": "^2.0.0",
|
|
58
|
+
"vite": "^4.4.9",
|
|
59
|
+
"vite-plugin-pwa": ">=0.16.5 <1",
|
|
60
|
+
"vitepress": "1.0.0-beta.3"
|
|
61
61
|
},
|
|
62
62
|
"pnpm": {
|
|
63
63
|
"peerDependencyRules": {
|