-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
107 lines (107 loc) · 3.13 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
{
"name": "use-ssr",
"version": "1.0.24",
"description": "☯️ React hook to determine if you're on the server or browser",
"main": "dist/useSSR.js",
"homepage": "https://github.com/alex-cory/use-ssr#readme",
"scripts": {
"dev": "rm -rf dist && parcel examples/index.html --open",
"build": "rm -rf dist && ./node_modules/.bin/tsc --module CommonJS",
"build:production": "yarn build -p tsconfig.production.json",
"prepublishOnly": "yarn test && yarn build:production",
"test": "yarn test:server && yarn test:browser",
"test:server": "tsc -p . --noEmit && tsc -p . && jest --env=node useSSR-server.test.ts",
"test:server:watch": "tsc -p . --noEmit && tsc -p . && jest --watch --env=node useSSR-server.test.ts",
"test:browser": "tsc -p . --noEmit && tsc -p . && jest --env=jsdom useSSR-browser.test.ts",
"test:browser:watch": "tsc -p . --noEmit && tsc -p . && jest --watch --env=jsdom useSSR-browser.test.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/alex-cory/use-ssr.git"
},
"author": "Alex Cory <[email protected]>",
"license": "MIT",
"private": false,
"peerDependencies": {
"react": "^16.13.1 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-decorators": "^7.8.3",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-regenerator": "^7.8.7",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-react": "^7.9.4",
"@babel/preset-typescript": "^7.9.0",
"@testing-library/react-hooks": "^3.2.1",
"@types/jest": "^25.1.5",
"@types/react": "^16.9.32",
"@types/react-dom": "^16.9.6",
"@types/react-native": "^0.62.1",
"babel-jest": "^25.2.6",
"babel-preset-react-native": "^4.0.1",
"jest": "^25.2.6",
"metro-react-native-babel-preset": "^0.59.0",
"parcel-bundler": "^1.12.4",
"react": "^16.13.1",
"react-native": "^0.62.0",
"react-native-typescript-transformer": "^1.2.13",
"react-test-renderer": "^16.13.1",
"react-testing-library": "^8.0.1",
"ts-jest": "^26.0.0",
"typescript": "^3.8.3"
},
"jest": {
"preset": "react-native",
"transform": {
".(ts|tsx)": "ts-jest"
},
"testEnvironment": "node",
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"testPathIgnorePatterns": [
"/node_modules/",
"/dist/"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/dist/"
],
"coverageThreshold": {
"global": {
"branches": 90,
"functions": 95,
"lines": 95,
"statements": 95
}
},
"collectCoverageFrom": [
"src/*.{js,ts}"
]
},
"files": [
"dist"
],
"bugs": {
"url": "https://github.com/alex-cory/use-ssr/issues"
},
"keywords": [
"ssr",
"nextjs",
"server",
"server side rendering",
"server side",
"client",
"browser",
"isomorphic",
"react",
"react-hook",
"hooks",
"react hooks"
]
}