-
Notifications
You must be signed in to change notification settings - Fork 11
/
package.json
111 lines (111 loc) · 3.36 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
{
"name": "@splitsoftware/splitio-react",
"version": "2.0.0",
"description": "A React library to easily integrate and use Split JS SDK",
"main": "cjs/index.js",
"module": "esm/index.js",
"types": "types/index.d.ts",
"files": [
"README.md",
"CONTRIBUTORS-GUIDE.md",
"MIGRATION-GUIDE.md",
"LICENSE",
"CHANGES.txt",
"src",
"cjs",
"esm",
"types"
],
"sideEffects": false,
"scripts": {
"build:cjs": "rimraf cjs/* types/* && tsc -m commonjs --outDir cjs -d true --declarationDir types",
"build:esm": "rimraf esm/* && tsc",
"build:umd": "rimraf umd/* && webpack --config webpack.dev.js --env branch=$BUILD_BRANCH && webpack --config webpack.prod.js --env branch=$BUILD_BRANCH",
"build": "npm run build:cjs && npm run build:esm && npm run build:umd",
"postbuild": "replace 'REACT_SDK_VERSION_NUMBER' $npm_package_version ./cjs/constants.js ./esm/constants.js ./umd -r",
"check": "npm run check:lint && npm run check:types",
"check:lint": "eslint 'src/**/*.ts*'",
"check:types": "tsc --noEmit",
"test": "jest src --silent",
"test:watch": "npm test -- --watch",
"test:coverage": "jest src --coverage",
"test:debug": "node --inspect node_modules/.bin/jest --runInBand",
"all": "npm run check && npm run build && npm run test",
"publish:rc": "npm publish --tag rc",
"publish:stable": "npm publish",
"prepublishOnly": "npm run check && npm run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/splitio/react-client.git"
},
"keywords": [
"splitio",
"react",
"sdk"
],
"author": "Split Software",
"contributors": [
{
"name": "Emiliano Sanchez",
"email": "emiliano.sanchez@split.io",
"url": "https://github.com/EmilianoSanchez"
},
{
"name": "Nico Zelaya",
"email": "nicolas.zelaya@split.io",
"url": "https://github.com/NicoZelaya"
}
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/splitio/react-client/issues"
},
"homepage": "https://github.com/splitio/react-client#readme",
"dependencies": {
"@splitsoftware/splitio": "11.0.0",
"memoize-one": "^5.1.1",
"shallowequal": "^1.1.0",
"tslib": "^2.3.1"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@types/events": "^3.0.0",
"@types/jest": "^27.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react-test-renderer": "^18.0.0",
"@types/shallowequal": "^1.1.1",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"eslint": "^8.48.0",
"eslint-plugin-compat": "^4.2.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-tsdoc": "^0.3.0",
"husky": "^3.1.0",
"jest": "^27.2.3",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-test-renderer": "^18.0.0",
"replace": "^1.2.1",
"rimraf": "^3.0.0",
"ts-jest": "^27.0.5",
"ts-loader": "^6.2.1",
"typescript": "4.4.4",
"webpack": "^5.53.0",
"webpack-cli": "^4.8.0",
"webpack-merge": "^5.8.0"
},
"peerDependencies": {
"react": ">=16.8.0"
},
"husky": {
"hooks": {
"pre-commit": "npm run check && npm run build",
"pre-push": "npm test && npm run build"
}
}
}