|
1 | 1 | {
|
2 | 2 | "name": "react-pdf",
|
3 |
| - "version": "9.2.1", |
| 3 | + "version": "10.0.1", |
4 | 4 | "description": "Display PDFs in your React app as easily as if they were images.",
|
5 | 5 | "type": "module",
|
6 | 6 | "sideEffects": [
|
7 | 7 | "*.css"
|
8 | 8 | ],
|
9 |
| - "main": "./dist/cjs/index.js", |
10 |
| - "module": "./dist/esm/index.js", |
| 9 | + "main": "./dist/index.js", |
11 | 10 | "source": "./src/index.ts",
|
12 |
| - "types": "./dist/cjs/index.d.ts", |
| 11 | + "types": "./dist/index.d.ts", |
13 | 12 | "exports": {
|
14 |
| - ".": { |
15 |
| - "import": "./dist/esm/index.js", |
16 |
| - "require": "./dist/cjs/index.js" |
17 |
| - }, |
18 |
| - "./dist/Page/AnnotationLayer.css": { |
19 |
| - "import": "./dist/esm/Page/AnnotationLayer.css", |
20 |
| - "require": "./dist/cjs/Page/AnnotationLayer.css" |
21 |
| - }, |
22 |
| - "./dist/Page/TextLayer.css": { |
23 |
| - "import": "./dist/esm/Page/TextLayer.css", |
24 |
| - "require": "./dist/cjs/Page/TextLayer.css" |
25 |
| - }, |
| 13 | + ".": "./dist/index.js", |
26 | 14 | "./*": "./*"
|
27 | 15 | },
|
28 | 16 | "scripts": {
|
29 | 17 | "build": "yarn build-js && yarn copy-styles",
|
30 |
| - "build-js": "yarn build-js-esm && yarn build-js-cjs && yarn build-js-cjs-package", |
31 |
| - "build-js-esm": "tsc --project tsconfig.build.json --outDir dist/esm", |
32 |
| - "build-js-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --moduleResolution node --verbatimModuleSyntax false", |
33 |
| - "build-js-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json", |
| 18 | + "build-js": "tsc --project tsconfig.build.json", |
34 | 19 | "clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true })\"",
|
35 |
| - "copy-styles": "cpy 'src/**/*.css' dist/esm && cpy 'src/**/*.css' dist/cjs", |
| 20 | + "copy-styles": "cpy 'src/**/*.css' dist", |
36 | 21 | "format": "biome format",
|
37 | 22 | "lint": "biome lint",
|
38 | 23 | "prepack": "yarn clean && yarn build",
|
39 | 24 | "test": "yarn lint && yarn tsc && yarn format && yarn unit",
|
40 | 25 | "tsc": "tsc",
|
41 | 26 | "unit": "vitest",
|
42 |
| - "watch": "yarn build-js-esm --watch & yarn build-js-cjs --watch & node --eval \"fs.watch('src', () => child_process.exec('yarn copy-styles'))\"" |
| 27 | + "watch": "yarn build-js --watch & node --eval \"fs.watch('src', () => child_process.exec('yarn copy-styles'))\"" |
43 | 28 | },
|
44 | 29 | "keywords": [
|
45 | 30 | "pdf",
|
|
55 | 40 | "clsx": "^2.0.0",
|
56 | 41 | "dequal": "^2.0.3",
|
57 | 42 | "make-cancellable-promise": "^2.0.0",
|
58 |
| - "make-event-props": "^1.6.0", |
59 |
| - "merge-refs": "^1.3.0", |
60 |
| - "pdfjs-dist": "4.8.69", |
| 43 | + "make-event-props": "^2.0.0", |
| 44 | + "merge-refs": "^2.0.0", |
| 45 | + "pdfjs-dist": "5.3.31", |
61 | 46 | "tiny-invariant": "^1.0.0",
|
62 | 47 | "warning": "^4.0.0"
|
63 | 48 | },
|
|
0 commit comments