-
-
Notifications
You must be signed in to change notification settings - Fork 92
/
package.json
119 lines (119 loc) · 3.29 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
{
"name": "@rest-hooks/legacy",
"version": "4.4.0",
"description": "Legacy features for Rest Hooks",
"sideEffects": false,
"main": "dist/index.js",
"react-native": "legacy/index.js",
"module": "legacy/index.js",
"unpkg": "dist/index.umd.min.js",
"types": "lib/index.d.ts",
"typesVersions": {
">=4.0": {
"": [
"lib/index.d.ts"
],
"*": [
"lib/index.d.ts"
]
},
">=3.4": {
"": [
"ts3.4/index.d.ts"
],
"*": [
"ts3.4/index.d.ts"
]
}
},
"exports": {
".": {
"module": "./lib/index.js",
"import": "./node.mjs",
"require": "./dist/index.js",
"default": "./lib/index.js"
},
"./package.json": "./package.json"
},
"type": "module",
"engines": {
"node": "^12.17 || ^13.7 || >=14"
},
"files": [
"src",
"dist",
"lib",
"node.mjs",
"legacy",
"ts3.4",
"LICENSE",
"README.md"
],
"scripts": {
"build:lib": "NODE_ENV=production BROWSERSLIST_ENV='2020' babel --root-mode upward src --out-dir lib --source-maps inline --extensions '.ts,.tsx,.js' --ignore '**/__tests__/**' --ignore '**/*.d.ts'",
"build:legacy:lib": "NODE_ENV=production BROWSERSLIST_ENV='2018' babel --root-mode upward src --out-dir legacy --source-maps inline --extensions '.ts,.tsx,.js' --ignore '**/__tests__/**' --ignore '**/*.d.ts'",
"build:js:node": "BROWSERSLIST_ENV=node12 rollup -c",
"build:js:browser": "BROWSERSLIST_ENV=legacy rollup -c",
"build:bundle": "run-s build:js:\\* && echo '{\"type\":\"commonjs\"}' > dist/package.json",
"build:clean": "rimraf lib ts3.4 legacy dist *.tsbuildinfo",
"build:legacy-types": "yarn run downlevel-dts lib ts3.4",
"build": "yarn run build:lib && yarn run build:legacy:lib && yarn run build:bundle",
"dev": "yarn run build:lib -w",
"prepare": "yarn run build:lib",
"prepack": "yarn prepare",
"prepublishOnly": "yarn run build:bundle && yarn run build:legacy:lib"
},
"keywords": [
"rest",
"react",
"flux",
"ajax",
"networking",
"fetch",
"hook",
"typescript",
"redux",
"data fetching",
"data cache",
"api",
"api call",
"normalized cache",
"swr"
],
"author": "Nathaniel Tucker <me@ntucker.me> (https://github.com/ntucker)",
"license": "Apache-2.0",
"homepage": "https://resthooks.io/docs/guides/no-suspense",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com:coinbase/rest-hooks.git",
"directory": "packages/legacy"
},
"bugs": {
"url": "https://github.com/coinbase/rest-hooks/issues"
},
"peerDependencies": {
"@rest-hooks/core": "^3.0.0-0",
"@types/react": "^16.8.4 || ^17.0.0 || ^18.0.0-0",
"react": "^16.8.4 || ^17.0.0 || ^18.0.0-0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"devDependencies": {
"@babel/cli": "7.19.3",
"@babel/core": "7.19.3",
"@types/babel__core": "^7",
"downlevel-dts": "^0.10.0",
"npm-run-all": "^4.1.5",
"rollup": "2.79.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-filesize": "^9.1.2",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^7.0.2"
}
}