@serwist/vite 9.0.0 → 9.0.2

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/README.md CHANGED
@@ -1 +1 @@
1
- This module's documentation is a work-in-progress.
1
+ This module's documentation can be found at https://serwist.pages.dev/docs/vite.
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import { validationErrorMap, SerwistConfigError } from '@serwist/build/schema';
7
7
  import { normalizePath } from 'vite';
8
8
  import process from 'node:process';
9
9
 
10
- var version = "9.0.0";
10
+ var version = "9.0.2";
11
11
 
12
12
  const logSerwistResult = (buildResult, viteOptions)=>{
13
13
  const { logLevel = "info" } = viteOptions;
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@serwist/vite",
3
- "version": "9.0.0",
3
+ "version": "9.0.2",
4
4
  "type": "module",
5
5
  "description": "A module that integrates Serwist into your Vite application.",
6
6
  "files": [
7
7
  "src",
8
- "dist"
8
+ "dist",
9
+ "*.d.ts"
9
10
  ],
10
11
  "keywords": [
11
12
  "react",
@@ -71,18 +72,18 @@
71
72
  "glob": "10.3.12",
72
73
  "kolorist": "1.8.0",
73
74
  "zod": "3.22.4",
74
- "@serwist/build": "9.0.0",
75
- "serwist": "9.0.0",
76
- "@serwist/window": "9.0.0"
75
+ "serwist": "9.0.2",
76
+ "@serwist/window": "9.0.2",
77
+ "@serwist/build": "9.0.2"
77
78
  },
78
79
  "devDependencies": {
79
80
  "@types/node": "20.12.7",
80
81
  "rollup": "4.14.3",
81
82
  "typescript": "5.5.0-dev.20240415",
82
83
  "vite": "5.2.8",
83
- "@serwist/configs": "9.0.0",
84
- "@serwist/utils": "9.0.0",
85
- "serwist": "9.0.0"
84
+ "@serwist/configs": "9.0.2",
85
+ "serwist": "9.0.2",
86
+ "@serwist/utils": "9.0.2"
86
87
  },
87
88
  "peerDependencies": {
88
89
  "typescript": ">=5.0.0",
@@ -94,7 +95,7 @@
94
95
  }
95
96
  },
96
97
  "scripts": {
97
- "build": "rimraf dist && cross-env NODE_ENV=production rollup --config rollup.config.js",
98
+ "build": "rimraf dist && NODE_ENV=production rollup --config rollup.config.js",
98
99
  "dev": "rollup --config rollup.config.js --watch",
99
100
  "lint": "biome lint ./src",
100
101
  "typecheck": "tsc"
package/typings.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ declare module "virtual:serwist" {
2
+ import type { Serwist } from "@serwist/window";
3
+
4
+ export const swUrl: string;
5
+ export const swScope: string;
6
+ export const swType: WorkerType;
7
+ export const getSerwist: () => Promise<Serwist | undefined>;
8
+ }