forked from Hello-job/polaris-doc-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
84 lines (84 loc) · 3.23 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
{
"name": "polaris-doc-viewer",
"version": "0.5.20",
"description": "Document viewer for react. Renders online/local documents.",
"author": "luchang",
"files": [
"dist/**"
],
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts",
"dependencies": {
"artplayer": "^5.1.1",
"babel-loader": "6.1.0",
"i18next": "^23.11.1",
"i18next-browser-languagedetector": "^7.2.1",
"i18next-http-backend": "^2.5.0",
"pdfjs-dist": "2.4.456",
"polaris-docx-preview": "0.3.2",
"polaris-excel-viewer": "1.4.4",
"polaris-icon": "^8.5.0",
"polaris-offices-viewer": "0.1.3",
"polaris-xmind-viewer": "1.2.6",
"react-i18next": "^14.1.0",
"react-pdf": "5.0.0",
"styled-components": "^5.1.1",
"wl-msg-reader": "^0.2.0",
"xmind-embed-viewer": "^1.2.0"
},
"peerDependencies": {
"polaris-react-component": "*"
},
"devDependencies": {
"@storybook/react": "^8.0.5",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"@types/jest": "^24.0.0",
"@types/node": "^12.0.0",
"@types/pdfjs-dist": "2.1.5",
"@types/react": "^16.9.46",
"@types/react-dom": "^16.9.8",
"@types/react-pdf": "4.0.5",
"@types/styled-components": "^5.1.2",
"generate-changelog": "^1.8.0",
"prettier": "^2.0.0",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"react-scripts": "3.4.3",
"typescript": "^4.7.4",
"webpack": "5.91.0"
},
"scripts": {
"start": "react-scripts --openssl-legacy-provider start",
"build": "rm -rf dist && npm run build:esm && npm run build:cjs",
"build:esm": "tsc --noEmit false",
"build:cjs": "tsc --noEmit false --module commonjs --outDir ./dist/cjs",
"test": "react-scripts test",
"eject": "react-scripts eject",
"version:patch": "npm run version:pre && npm run version:changelog && npm version patch && npm run version:post",
"version:minor": "npm run version:pre && npm run version:changelog && npm version minor && npm run version:post",
"version:major": "npm run version:pre && npm run version:changelog && npm version major && npm run version:post",
"version:pre": "if [ $(git rev-parse --abbrev-ref HEAD) != 'master' ]; then echo \"\\033[1m\\033[31mCurrently on $(git rev-parse --abbrev-ref HEAD) branch. Please checkout master.\\033[0m\"; exit 1; else exit 0; fi",
"version:changelog": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md'",
"version:post": "git push origin master && git push origin master --tags",
"build-release:patch": "react-scripts test --watchAll=false && npm run build && npm run version:patch",
"build-release:minor": "react-scripts test --watchAll=false && npm run build && npm run version:minor",
"build-release:major": "react-scripts test --watchAll=false && npm run build && npm run version:major",
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
"yalc-link": "pnpm run build && yalc publish --push"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}