/
package.json
95 lines (95 loc) · 3.02 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
{
"name": "@tanem/use-document-title",
"version": "1.0.158",
"description": "A React hook that sets the current title of the document.",
"main": "dist/index.js",
"module": "dist/use-document-title.esm.js",
"jsnext:main": "dist/use-document-title.esm.js",
"typings": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "run-s clean compile bundle",
"bundle": "rollup -c",
"check:format": "prettier --list-different \"**/*.{js,ts,tsx}\"",
"check:types": "tsc --noEmit",
"clean": "run-p clean:*",
"clean:compiled": "shx rm -rf compiled",
"clean:coverage": "shx rm -rf coverage",
"clean:dist": "shx rm -rf dist",
"compile": "tsc -p tsconfig.base.json",
"format": "prettier --write \"**/*.{js,ts,tsx}\"",
"lint": "eslint . --ext .js,.ts",
"postbundle": "shx rm -rf compiled && shx cp ./index.js ./dist/index.js",
"release": "tanem-scripts release",
"test": "run-s check:* lint build test:*",
"test:cjs": "jest --config ./scripts/jest/config.cjs.js",
"test:cjsprod": "jest --config ./scripts/jest/config.cjsprod.js",
"test:es": "jest --config ./scripts/jest/config.es.js",
"test:src": "jest --config ./scripts/jest/config.src.js",
"test:umd": "jest --config ./scripts/jest/config.umd.js",
"test:umdprod": "jest --config ./scripts/jest/config.umdprod.js"
},
"repository": {
"type": "git",
"url": "github:tanem/use-document-title"
},
"keywords": [
"document",
"hooks",
"javascript",
"react",
"react-hooks",
"title",
"typescript"
],
"author": "Tane Morgan (https://github.com/tanem)",
"license": "MIT",
"bugs": {
"url": "github:tanem/use-document-title/issues"
},
"homepage": "github:tanem/use-document-title",
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.1.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.1.0"
},
"dependencies": {
"@babel/runtime": "^7.24.4",
"tslib": "^2.6.2"
},
"devDependencies": {
"@babel/core": "7.24.4",
"@babel/plugin-transform-runtime": "7.24.3",
"@babel/preset-env": "7.24.4",
"@babel/preset-react": "7.24.1",
"@rollup/plugin-babel": "6.0.4",
"@rollup/plugin-commonjs": "25.0.7",
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-replace": "5.0.5",
"@rollup/plugin-terser": "0.4.4",
"@testing-library/react": "15.0.2",
"@types/jest": "29.5.12",
"@types/react": "18.2.79",
"@types/react-dom": "18.2.25",
"@typescript-eslint/eslint-plugin": "7.7.0",
"@typescript-eslint/parser": "7.7.0",
"babel-core": "6.26.3",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-react": "7.34.1",
"eslint-plugin-react-hooks": "4.6.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"npm-run-all2": "6.1.2",
"prettier": "3.2.5",
"react": "18.2.0",
"react-dom": "18.2.0",
"rollup": "4.16.2",
"rollup-plugin-sourcemaps": "0.6.3",
"shx": "0.3.4",
"tanem-scripts": "7.0.27",
"ts-jest": "29.1.2",
"typescript": "5.4.5"
}
}