113 lines
3.5 KiB
JSON
113 lines
3.5 KiB
JSON
{
|
|
"name": "react-pdf",
|
|
"version": "7.7.3",
|
|
"description": "Display PDFs in your React app as easily as if they were images.",
|
|
"type": "module",
|
|
"sideEffects": [
|
|
"*.css"
|
|
],
|
|
"main": "./dist/cjs/index.js",
|
|
"module": "./dist/esm/index.js",
|
|
"source": "./src/index.ts",
|
|
"types": "./dist/cjs/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/esm/index.js",
|
|
"require": "./dist/cjs/index.js"
|
|
},
|
|
"./dist/Page/AnnotationLayer.css": {
|
|
"import": "./dist/esm/Page/AnnotationLayer.css",
|
|
"require": "./dist/cjs/Page/AnnotationLayer.css"
|
|
},
|
|
"./dist/Page/TextLayer.css": {
|
|
"import": "./dist/esm/Page/TextLayer.css",
|
|
"require": "./dist/cjs/Page/TextLayer.css"
|
|
},
|
|
"./dist/cjs/Page/AnnotationLayer.css": "./dist/cjs/Page/AnnotationLayer.css",
|
|
"./dist/cjs/Page/TextLayer.css": "./dist/cjs/Page/TextLayer.css",
|
|
"./dist/esm/Page/AnnotationLayer.css": "./dist/esm/Page/AnnotationLayer.css",
|
|
"./dist/esm/Page/TextLayer.css": "./dist/esm/Page/TextLayer.css"
|
|
},
|
|
"scripts": {
|
|
"build": "yarn build-js && yarn copy-styles",
|
|
"build-js": "yarn build-js-esm && yarn build-js-cjs && yarn build-js-cjs-package",
|
|
"build-js-esm": "tsc --project tsconfig.build.json --outDir dist/esm",
|
|
"build-js-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --moduleResolution node --verbatimModuleSyntax false",
|
|
"build-js-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json",
|
|
"clean": "rimraf dist",
|
|
"copy-styles": "cpy 'src/**/*.css' dist/esm && cpy 'src/**/*.css' dist/cjs",
|
|
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
|
"prepack": "yarn clean && yarn build",
|
|
"prettier": "prettier --check . --cache",
|
|
"test": "yarn lint && yarn tsc && yarn prettier && yarn unit",
|
|
"tsc": "tsc",
|
|
"unit": "vitest",
|
|
"watch": "yarn build-js-esm --watch & yarn build-js-cjs --watch & nodemon --watch src --ext css --exec \"yarn copy-styles\""
|
|
},
|
|
"keywords": [
|
|
"pdf",
|
|
"pdf-viewer",
|
|
"react"
|
|
],
|
|
"author": {
|
|
"name": "Wojciech Maj",
|
|
"email": "kontakt@wojtekmaj.pl"
|
|
},
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"clsx": "^2.0.0",
|
|
"dequal": "^2.0.3",
|
|
"make-cancellable-promise": "^1.3.1",
|
|
"make-event-props": "^1.6.0",
|
|
"merge-refs": "^1.2.1",
|
|
"pdfjs-dist": "3.11.174",
|
|
"prop-types": "^15.6.2",
|
|
"tiny-invariant": "^1.0.0",
|
|
"warning": "^4.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/dom": "^9.0.0",
|
|
"@testing-library/jest-dom": "^6.0.0",
|
|
"@testing-library/react": "^14.0.0",
|
|
"@types/node": "*",
|
|
"@types/react": "*",
|
|
"@types/warning": "^3.0.0",
|
|
"canvas": "^2.11.2",
|
|
"cpy-cli": "^5.0.0",
|
|
"eslint": "^8.56.0",
|
|
"eslint-config-wojtekmaj": "^0.11.0",
|
|
"jsdom": "^24.0.0",
|
|
"nodemon": "^3.0.0",
|
|
"prettier": "^3.0.0",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"rimraf": "^3.0.0",
|
|
"typescript": "^5.3.2",
|
|
"vitest": "^1.0.2"
|
|
},
|
|
"peerDependencies": {
|
|
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@types/react": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"provenance": true
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"src"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/wojtekmaj/react-pdf.git",
|
|
"directory": "packages/react-pdf"
|
|
},
|
|
"funding": "https://github.com/wojtekmaj/react-pdf?sponsor=1"
|
|
}
|