@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.
@@ -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 };
@@ -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.0",
5
- "packageManager": "pnpm@8.6.1",
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.3 <1"
46
+ "vite-plugin-pwa": ">=0.16.5 <1"
47
47
  },
48
48
  "devDependencies": {
49
- "@antfu/eslint-config": "^0.39.5",
50
- "@antfu/ni": "^0.21.4",
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": "^5.59.9",
53
- "bumpp": "^9.1.1",
54
- "eslint": "^8.42.0",
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.1.3",
57
- "unbuild": "^1.2.1",
58
- "vite": "^4.3.9",
59
- "vite-plugin-pwa": ">=0.16.3 <1",
60
- "vitepress": "1.0.0-beta.2"
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": {