-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
133 lines (133 loc) · 3.78 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{
"name": "react-lazily",
"private": true,
"version": "0.9.2",
"description": "React.lazy wrapper that works with allows you to destruct imported module, so it will work with non default exports",
"main": "index.cjs.js",
"module": "index.js",
"types": "index.d.ts",
"files": [
"**"
],
"sideEffects": false,
"scripts": {
"prebuild": "shx rm -rf dist",
"build": "rollup -c --config-esm && rollup -c --config-cjs",
"postbuild": "yarn copy",
"eslint": "eslint --fix '{src,tests}/**/*.{js,ts,jsx,tsx}'",
"eslint:ci": "eslint '{src,tests}/**/*.{js,ts,jsx,tsx}'",
"prepare": "yarn build",
"pretest": "tsc --noEmit",
"test": "jest",
"test:dev": "jest --watch --no-coverage",
"test:coverage:watch": "jest --watch",
"copy": "shx mv dist/src/* dist && shx rm -rf dist/{src,tests} && shx cp dist/loadable.d.ts dist/loadable.cjs.d.ts && copyfiles -f package.json README.md LICENSE dist && json -I -f dist/package.json -e \"this.private=false; this.devDependencies=undefined; this.optionalDependencies=undefined; this.scripts=undefined; this.husky=undefined; this.prettier=undefined; this.jest=undefined; this['lint-staged']=undefined;\""
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"prettier": {
"semi": false,
"trailingComma": "es5",
"singleQuote": true,
"jsxBracketSameLine": true,
"tabWidth": 2,
"printWidth": 80
},
"lint-staged": {
"*.{js,ts,tsx}": [
"prettier --write"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/JLarky/react-lazily.git"
},
"keywords": [
"react",
"lazy",
"default export"
],
"author": "JLarky",
"contributors": [],
"license": "MIT",
"bugs": {
"url": "https://github.com/JLarky/react-lazily/issues"
},
"homepage": "https://github.com/JLarky/react-lazily",
"jest": {
"rootDir": ".",
"moduleNameMapper": {
"^react-lazily$": "<rootDir>/src/index.ts"
},
"modulePathIgnorePatterns": [
"dist"
],
"testRegex": "test.(js|ts|tsx)$",
"coverageDirectory": "./coverage/",
"collectCoverage": true,
"coverageReporters": [
"json",
"html",
"text",
"text-summary"
],
"collectCoverageFrom": [
"src/**/*.{js,ts,tsx}",
"tests/**/*.{js,ts,tsx}"
]
},
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.12.7",
"@babel/plugin-transform-react-jsx": "^7.12.7",
"@babel/plugin-transform-typescript": "^7.12.1",
"@babel/preset-env": "^7.12.7",
"@loadable/component": "^5.14.1",
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-node-resolve": "^10.0.0",
"@rollup/plugin-typescript": "^6.1.0",
"@testing-library/react": "^11.2.2",
"@types/jest": "^26.0.15",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@types/scheduler": "^0.16.1",
"@typescript-eslint/eslint-plugin": "^4.8.1",
"@typescript-eslint/parser": "^4.8.1",
"copyfiles": "^2.4.0",
"eslint": "^7.14.0",
"eslint-config-prettier": "^6.15.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.3",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.2.0",
"husky": "^4.3.0",
"jest": "^26.6.3",
"json": "^10.0.0",
"lint-staged": "^10.5.1",
"prettier": "^2.2.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"rollup": "^2.33.3",
"rollup-plugin-size-snapshot": "^0.12.0",
"shx": "^0.3.3",
"typescript": "^4.1.2"
},
"peerDependencies": {
"react": ">=16.8",
"react-dom": "*",
"react-native": "*"
},
"peerDependenciesMeta": {
"react-dom": {
"optional": true
},
"react-native": {
"optional": true
}
}
}