-
Notifications
You must be signed in to change notification settings - Fork 127
/
package.json
82 lines (82 loc) · 2.68 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
{
"name": "react-timeago",
"version": "7.2.0",
"description": "A simple Time-Ago component for ReactJs",
"main": "lib/index.js",
"module": "es6/index.js",
"scripts": {
"babel-es6": "babel src/ --out-dir es6/ --presets=@babel/react,@babel/flow",
"babel": "babel src/ --out-dir lib/ --presets=@babel/env,@babel/react,@babel/flow",
"build": "npm run babel && npm run babel-es6 && npm run cpflow && npm run cpflow-es6 && npm run example",
"cpflow-es6": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/es6\\//g'`.flow; done",
"cpflow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/lib\\//g'`.flow; done",
"example": "rollup -c ./rollup.config.js",
"prepublish": "npm run build",
"test": "jest --coverage"
},
"jest": {
"testEnvironment": "jsdom"
},
"repository": {
"type": "git",
"url": "https://github.com/naman34/react-timeago.git"
},
"keywords": [
"React",
"ReactJS",
"Time",
"Ago",
"TimeAgo",
"ender"
],
"author": "Naman Goel",
"license": "MIT",
"bugs": {
"url": "https://github.com/nmn/react-timeago/issues"
},
"homepage": "https://github.com/nmn/react-timeago",
"peerDependencies": {
"react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"devDependencies": {
"@babel/cli": "^7.17.10",
"@babel/core": "^7.18.2",
"@babel/eslint-parser": "^7.18.2",
"@babel/plugin-syntax-flow": "^7.17.12",
"@babel/plugin-syntax-jsx": "^7.17.12",
"@babel/plugin-transform-flow-strip-types": "^7.17.12",
"@babel/plugin-transform-react-jsx": "^7.17.12",
"@babel/preset-env": "^7.18.2",
"@babel/preset-flow": "^7.17.12",
"@babel/preset-react": "^7.17.12",
"@babel/preset-stage-1": "^7.8.3",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-replace": "^4.0.0",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"babel-jest": "^28.1.1",
"eslint": "^8.17.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-react-hooks": "^4.5.0",
"flow-bin": "^0.180.0",
"jest": "^28.1.1",
"jest-environment-jsdom": "^28.1.1",
"prettier": "^2.6.2",
"react": "^18.1.0",
"react-addons-test-utils": "^15.6.2",
"react-dom": "^18.1.0",
"rollup": "^3.29.5"
},
"dependencies": {},
"prettier": {
"printWidth": 80,
"parser": "flow",
"semi": false,
"trailingComma": "all",
"singleQuote": true
}
}