-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
79 lines (79 loc) · 2.31 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
{
"name": "@bbc/web-vitals",
"version": "2.4.1",
"main": "dist/index.js",
"module": "esm/index.js",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./esm/index.js"
}
},
"files": [
"dist",
"esm"
],
"sideEffects": false,
"description": "Generic hook for reporting web vitals metrics to an endpoint",
"scripts": {
"build": "yarn build:cjs && yarn build:esm",
"build:cjs": "npx babel src -d dist --ignore '**/*.test.js'",
"build:esm": "BABEL_TYPE=esm npx babel src -d esm --ignore '**/*.test.js'",
"prepublish": "yarn build",
"test": "yarn test:lint && yarn test:unit",
"test:ci": "yarn test:lint && yarn test:unit:ci",
"test:lint": "eslint --ext .js,jsx,json ./scripts",
"test:unit": "yarn build && jest --verbose --coverage",
"test:unit:ci": "jest --verbose --coverage"
},
"repository": {
"type": "git",
"url": "git+https://github.com/bbc/web-vitals.git"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"author": {
"name": "BBC"
},
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/bbc/web-vitals/issues"
},
"homepage": "https://github.com/bbc/web-vitals/blob/main/README.md",
"dependencies": {
"cross-fetch": "^3.1.5",
"shelljs": "0.8.5",
"web-vitals": "^3.3.2"
},
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@babel/cli": "^7.21.0",
"@babel/core": "^7.21.0",
"@babel/plugin-proposal-export-default-from": "7.14.5",
"@babel/plugin-transform-modules-commonjs": "7.14.5",
"@babel/plugin-transform-runtime": "7.14.5",
"@babel/preset-env": "7.14.5",
"@babel/preset-react": "7.14.5",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^15.0.0",
"@testing-library/user-event": "^14.5.2",
"babel-eslint": "10.1.0",
"eslint": "^7.10.0",
"eslint-config-prettier": "^8.0.0",
"eslint-plugin-es5": "^1.5.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-json": "3.1.0",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.22.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "2.2.1",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"packageManager": "[email protected]"
}