forked from wojtekmaj/react-pdf
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
92 lines (92 loc) · 2.96 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"name": "@llamaindex/pdf-viewer",
"version": "1.2.0",
"description": "React PDF viewer for LLM applications",
"type": "module",
"license": "MIT",
"sideEffects": [
"*.css"
],
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"source": "./src/index.ts",
"types": "./dist/cjs/index.d.ts",
"exports": {
"./index.css": "./dist/esm/view/index.css",
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
},
"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",
"format": "prettier --check . --cache",
"format:write": "prettier --ignore-unknown --write .",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"prepack": "yarn clean && yarn build",
"test": "yarn lint && yarn tsc && yarn format",
"tsc": "tsc",
"watch": "yarn build-js-esm --watch & yarn build-js-cjs --watch & nodemon --watch src --ext css --exec \"yarn copy-styles\"",
"new-snapshot": "yarn build && changeset version --snapshot",
"new-version": "yarn build && changeset version",
"release": "yarn build && changeset publish",
"release-snapshot": "yarn build && changeset publish --tag snapshot"
},
"dependencies": {
"@wojtekmaj/react-hooks": "1.17.2",
"clsx": "^2.0.0",
"fuse.js": "^6.6.2",
"lodash": "^4.17.21",
"lodash.debounce": "^4.0.8",
"react-intersection-observer": "9.5.1",
"react-pdf": "^9.1.0",
"react-window": "1.8.9"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@types/lodash": "^4.14.195",
"@types/lodash.debounce": "^4.0.7",
"@types/node": "*",
"@types/react": "*",
"@types/react-window": "^1.8.5",
"cpy-cli": "^5.0.0",
"eslint": "^8.56.0",
"eslint-config-wojtekmaj": "^1.0.0",
"globals": "^15.1.0",
"husky": "^9.0.10",
"jsdom": "^24.0.0",
"lint-staged": "^15.0.0",
"nodemon": "^3.0.0",
"prettier": "^3.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^3.0.0",
"typescript": "^5.4.2"
},
"peerDependencies": {
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"files": [
"dist",
"src"
],
"lint-staged": {
"*.{css,html,js,json,jsx,md,ts,tsx,yml}": "yarn format --write"
},
"publishConfig": {
"access": "public"
}
}