|
12 | 12 | "import": "./dist/index.js", |
13 | 13 | "require": "./dist/index.cjs" |
14 | 14 | }, |
| 15 | + "./preact": { |
| 16 | + "types": "./dist/preact/index.d.ts", |
| 17 | + "import": "./dist/preact/index.js", |
| 18 | + "require": "./dist/preact/index.cjs" |
| 19 | + }, |
15 | 20 | "./react": { |
16 | 21 | "types": "./dist/react/index.d.ts", |
17 | 22 | "import": "./dist/react/index.js", |
18 | 23 | "require": "./dist/react/index.cjs" |
19 | 24 | }, |
20 | | - "./preact": { |
21 | | - "types": "./dist/preact/index.d.ts", |
22 | | - "import": "./dist/preact/index.js", |
23 | | - "require": "./dist/preact/index.cjs" |
| 25 | + "./vue": { |
| 26 | + "types": "./dist/vue/index.d.ts", |
| 27 | + "import": "./dist/vue/index.js", |
| 28 | + "require": "./dist/vue/index.cjs" |
| 29 | + }, |
| 30 | + "./svelte": { |
| 31 | + "types": "./dist/svelte/index.d.ts", |
| 32 | + "svelte": "./dist/svelte/index.js", |
| 33 | + "import": "./dist/svelte/index.js", |
| 34 | + "require": "./dist/svelte/index.cjs" |
24 | 35 | } |
25 | 36 | }, |
26 | 37 | "scripts": { |
27 | 38 | "build:base": "vite build --mode base", |
28 | 39 | "build:react": "vite build --mode react", |
29 | 40 | "build:preact": "vite build --mode preact", |
30 | | - "build": "pnpm run clean && concurrently -c auto -n base,react,preact \"vite build --mode base\" \"vite build --mode react\" \"vite build --mode preact\"", |
| 41 | + "build:vue": "vite build --mode vue", |
| 42 | + "build:svelte": "vite build --mode svelte", |
| 43 | + "build": "pnpm run clean && concurrently -c auto -n base,react,preact,vue,svelte \"vite build --mode base\" \"vite build --mode react\" \"vite build --mode preact\" \"vite build --mode vue\" \"vite build --mode svelte\"", |
31 | 44 | "clean": "rimraf dist", |
32 | 45 | "lint": "eslint src --color", |
33 | 46 | "lint:fix": "eslint src --color --fix" |
|
36 | 49 | "@embedpdf/models": "workspace:*" |
37 | 50 | }, |
38 | 51 | "devDependencies": { |
39 | | - "@embedpdf/build": "workspace:*", |
40 | 52 | "@embedpdf/core": "workspace:*", |
| 53 | + "@embedpdf/build": "workspace:*", |
| 54 | + "@embedpdf/plugin-render": "workspace:*", |
| 55 | + "@embedpdf/plugin-scroll": "workspace:*", |
| 56 | + "@embedpdf/plugin-viewport": "workspace:*", |
41 | 57 | "@types/react": "^18.2.0", |
42 | 58 | "typescript": "^5.0.0" |
43 | 59 | }, |
44 | 60 | "peerDependencies": { |
45 | 61 | "@embedpdf/core": "workspace:*", |
| 62 | + "@embedpdf/plugin-render": "workspace:*", |
| 63 | + "@embedpdf/plugin-scroll": "workspace:*", |
| 64 | + "@embedpdf/plugin-viewport": "workspace:*", |
46 | 65 | "react": ">=16.8.0", |
47 | 66 | "react-dom": ">=16.8.0", |
48 | | - "preact": "^10.26.4" |
| 67 | + "preact": "^10.26.4", |
| 68 | + "vue": ">=3.2.0", |
| 69 | + "svelte": ">=5 <6" |
49 | 70 | }, |
50 | 71 | "files": [ |
51 | 72 | "dist", |
|
0 commit comments