@sweidos/eidos 1.0.17 → 1.0.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sweidos/eidos",
3
- "version": "1.0.17",
3
+ "version": "1.0.20",
4
4
  "description": "Describe intent. The runtime figures out how. An abstraction layer for offline-first web apps.",
5
5
  "author": "Aditya Raj",
6
6
  "license": "MIT",
@@ -33,6 +33,16 @@
33
33
  },
34
34
  "./sw": {
35
35
  "default": "./dist/eidos-sw.js"
36
+ },
37
+ "./vite": {
38
+ "import": "./dist/vite.js",
39
+ "require": "./dist/vite.cjs.js",
40
+ "types": "./dist/vite.d.ts"
41
+ },
42
+ "./query": {
43
+ "import": "./dist/query.js",
44
+ "require": "./dist/query.cjs.js",
45
+ "types": "./dist/query.d.ts"
36
46
  }
37
47
  },
38
48
  "files": [
@@ -40,11 +50,27 @@
40
50
  "README.md"
41
51
  ],
42
52
  "peerDependencies": {
53
+ "@tanstack/react-query": ">=5.0.0",
43
54
  "react": ">=18.0.0",
44
- "react-dom": ">=18.0.0"
55
+ "react-dom": ">=18.0.0",
56
+ "vite": ">=4.0.0"
57
+ },
58
+ "peerDependenciesMeta": {
59
+ "react": {
60
+ "optional": true
61
+ },
62
+ "react-dom": {
63
+ "optional": true
64
+ },
65
+ "vite": {
66
+ "optional": true
67
+ },
68
+ "@tanstack/react-query": {
69
+ "optional": true
70
+ }
45
71
  },
46
- "dependencies": {},
47
72
  "devDependencies": {
73
+ "@tanstack/react-query": "^5.45.0",
48
74
  "@types/react": "^18.3.3",
49
75
  "@types/react-dom": "^18.3.0",
50
76
  "@vitejs/plugin-react": "^4.3.1",
@@ -57,7 +83,7 @@
57
83
  "vitest": "^2.1.9"
58
84
  },
59
85
  "scripts": {
60
- "build": "vite build && node scripts/copy-sw.mjs",
86
+ "build": "vite build && vite build --config vite.plugin.config.ts && vite build --config vite.query.config.ts && node scripts/copy-sw.mjs",
61
87
  "dev": "vite build --watch",
62
88
  "type-check": "tsc --noEmit",
63
89
  "test": "vitest run",