-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
65 lines (65 loc) · 2.61 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
{
"name": "use-memo-map-integration-test",
"version": "0.0.0-0",
"description": "",
"private": true,
"scripts": {
"bump": "npm run bump:prod && npm run bump:dev",
"bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.devDependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key \"@\" ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
"bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.dependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key \"@\" ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
"precommit": "ESLINT_USE_FLAT_CONFIG=false eslint --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts ./",
"switch": "cat package.json | jq --arg SWITCH_NAME $SWITCH_NAME -r '(.[\"switch:\" $SWITCH_NAME] // {}) as $TEMPLATE | .devDependencies = ($TEMPLATE.devDependencies // {}) | .dependencies = ($TEMPLATE.dependencies // {})' | tee ./package.json.tmp && mv ./package.json.tmp ./package.json",
"test": "jest"
},
"author": "William Wong (https://github.com/compulim)",
"license": "MIT",
"switch:react-16": {
"devDependencies": {
"@testing-library/react": "^12",
"@types/react": "^16",
"@types/react-dom": "^16",
"react": "16.8.0",
"react-dom": "16.8.0",
"react-test-renderer": "16.8.0"
}
},
"switch:react-17": {
"devDependencies": {
"@testing-library/react": "^12",
"@types/react": "^17",
"@types/react-dom": "^17",
"react": "17.0.0",
"react-dom": "17.0.0",
"react-test-renderer": "17.0.0"
}
},
"switch:react-18": {
"devDependencies": {
"@types/react": "^18",
"@types/react-dom": "^18",
"react": "18.0.0",
"react-dom": "18.0.0",
"react-test-renderer": "18.0.0"
}
},
"localPeerDependencies": {
"use-memo-map": "^0.0.0-0"
},
"devDependencies": {
"@babel/preset-env": "^7.25.8",
"@babel/preset-react": "^7.25.7",
"@testing-library/react": "^16.0.1",
"@tsconfig/strictest": "^2.0.5",
"@types/react": "^18.3.14",
"@types/react-dom": "^18.3.2",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-test-renderer": "^18.3.1",
"typescript": "^5.6.3"
},
"dependencies": {
"use-memo-map": "^0.0.0-0"
}
}