Skip to content

Commit 9ca62df

Browse files
committed
fix: restore react core dependencies and scripts
1 parent 46b699e commit 9ca62df

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed

office-website/package.json

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,27 @@
66
"repository": "https://github.com/JSREI/userscript-template.git",
77
"namespace": "https://github.com/JSREI/userscript-template.git",
88
"document": "https://github.com/JSREI/userscript-template.git",
9+
"homepage": "https://jsrei.github.io/typescript-userscript-template",
910
"scripts": {
10-
"build": "webpack --config webpack.prod.js",
11-
"watch": "webpack --watch --config webpack.dev.js",
12-
"dev": "webpack --watch --config webpack.dev.js",
11+
"start": "react-scripts start",
12+
"build": "react-scripts build",
13+
"test": "react-scripts test",
14+
"eject": "react-scripts eject",
1315
"gen-dev-header": "node scripts/generate-dev-header.js"
1416
},
1517
"author": "CC11001100 <[email protected]>",
1618
"license": "MIT",
19+
"dependencies": {
20+
"@types/react": "^18.2.48",
21+
"@types/react-dom": "^18.2.18",
22+
"@types/react-router-dom": "^5.3.3",
23+
"@types/styled-components": "^5.1.34",
24+
"react": "^18.2.0",
25+
"react-dom": "^18.2.0",
26+
"react-router-dom": "^7.6.0",
27+
"react-scripts": "^5.0.1",
28+
"styled-components": "^6.1.8"
29+
},
1730
"devDependencies": {
1831
"@types/node": "^22.13.1",
1932
"@types/tampermonkey": "^5.0.4",
@@ -24,8 +37,16 @@
2437
"webpack-cli": "^5.1.4",
2538
"webpack-merge": "^5.9.0"
2639
},
27-
"dependencies": {
28-
"@types/react-router-dom": "^5.3.3",
29-
"react-router-dom": "^7.6.0"
40+
"browserslist": {
41+
"production": [
42+
">0.2%",
43+
"not dead",
44+
"not op_mini all"
45+
],
46+
"development": [
47+
"last 1 chrome version",
48+
"last 1 firefox version",
49+
"last 1 safari version"
50+
]
3051
}
3152
}

0 commit comments

Comments
 (0)