|
1 | 1 | { |
2 | 2 | "name": "@libresign/pdf-elements", |
3 | | - "description": "PDF viewer with draggable and resizable element overlays for Vue 2", |
| 3 | + "description": "PDF viewer with draggable and resizable element overlays for Vue 3", |
4 | 4 | "version": "0.4.0", |
5 | 5 | "author": "LibreCode <contact@librecode.coop>", |
6 | 6 | "private": false, |
7 | | - "main": "dist/pdf-elements.umd.js", |
8 | | - "module": "dist/pdf-elements.esm.js", |
| 7 | + "main": "dist/index.js", |
| 8 | + "module": "dist/index.js", |
| 9 | + "types": "dist/index.d.ts", |
| 10 | + "exports": { |
| 11 | + ".": { |
| 12 | + "import": "./dist/index.js", |
| 13 | + "types": "./dist/index.d.ts" |
| 14 | + } |
| 15 | + }, |
9 | 16 | "repository": { |
10 | 17 | "type": "git", |
11 | 18 | "url": "https://github.com/LibreSign/pdf-elements" |
|
21 | 28 | "draggable", |
22 | 29 | "resizable", |
23 | 30 | "libresign", |
24 | | - "vue2" |
| 31 | + "vue3" |
25 | 32 | ], |
26 | 33 | "scripts": { |
27 | | - "serve": "vue-cli-service serve", |
28 | | - "build": "vue-cli-service build", |
29 | | - "build:lib": "vue-cli-service build --target lib --name pdf-elements src/index.js", |
30 | | - "lint": "vue-cli-service lint --no-fix", |
31 | | - "lint:fix": "vue-cli-service lint" |
| 34 | + "dev": "vite", |
| 35 | + "build": "vite build", |
| 36 | + "build:report": "vite build --mode report", |
| 37 | + "build:demo": "vite build --mode demo", |
| 38 | + "preview:demo": "vite preview --outDir dist-demo", |
| 39 | + "test": "vitest run", |
| 40 | + "test:watch": "vitest", |
| 41 | + "lint": "eslint . --ext .vue,.ts,.js --max-warnings=0", |
| 42 | + "lint:fix": "eslint . --ext .vue,.ts,.js --fix" |
32 | 43 | }, |
33 | 44 | "dependencies": { |
34 | | - "pdfjs-dist": "^5.4.530", |
35 | | - "vue": "^2.7.16" |
| 45 | + "pdfjs-dist": "^5.4.624", |
| 46 | + "vue": "^3.5.28" |
36 | 47 | }, |
37 | 48 | "devDependencies": { |
38 | | - "@babel/core": "^7.28.6", |
39 | | - "@babel/eslint-parser": "^7.28.6", |
40 | | - "@babel/plugin-transform-private-methods": "^7.28.6", |
41 | 49 | "@nextcloud/browserslist-config": "^3.1.2", |
42 | | - "@vue/cli-plugin-babel": "^5.0.9", |
43 | | - "@vue/cli-plugin-eslint": "^5.0.9", |
44 | | - "@vue/cli-service": "^5.0.9", |
45 | | - "eslint": "^8.57.1", |
46 | | - "eslint-plugin-vue": "^9.24.0", |
| 50 | + "@typescript-eslint/eslint-plugin": "^8.56.0", |
| 51 | + "@typescript-eslint/parser": "^8.56.0", |
| 52 | + "@vitejs/plugin-vue": "^6.0.4", |
| 53 | + "eslint": "^9.0.0", |
| 54 | + "eslint-plugin-vue": "^10.8.0", |
| 55 | + "eslint-plugin-vitest": "^0.5.4", |
| 56 | + "happy-dom": "^20.7.0", |
47 | 57 | "postcss": "^8.5.6", |
48 | | - "vue-template-compiler": "^2.7.16" |
| 58 | + "rollup-plugin-visualizer": "^7.0.0", |
| 59 | + "typescript": "^5.9.3", |
| 60 | + "vite": "^7.3.1", |
| 61 | + "vite-plugin-dts": "^4.5.4", |
| 62 | + "vitest": "^4.0.18", |
| 63 | + "@vue/test-utils": "^2.4.6", |
| 64 | + "vue-eslint-parser": "^10.4.0", |
| 65 | + "vue-tsc": "^3.2.4" |
49 | 66 | }, |
50 | 67 | "browserslist": [ |
51 | 68 | "extends @nextcloud/browserslist-config" |
|
56 | 73 | "COPYING", |
57 | 74 | "README.md" |
58 | 75 | ], |
| 76 | + "sideEffects": false, |
59 | 77 | "license": "AGPL-3.0-or-later" |
60 | 78 | } |
0 commit comments