Skip to content

Commit d526f90

Browse files
committed
[migrate] upgrade to Next.js 16, Marked 17 & other latest Upstream packages
[fix] Git submodule updating in GitHub action
1 parent 5c871e4 commit d526f90

File tree

7 files changed

+1519
-1465
lines changed

7 files changed

+1519
-1465
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
submodules: recursive
2121
lfs: true
2222

23+
- run: git submodule update --init --remote --recursive
24+
if: ${{ env.VERCEL_TOKEN && env.VERCEL_ORG_ID && env.VERCEL_PROJECT_ID }}
25+
2326
- name: Deploy to Vercel
2427
id: vercel-deployment
2528
uses: amondnet/vercel-action@v25

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ package-lock.json
1010
/coverage
1111

1212
# next.js
13+
next-env.d.ts
1314
/.next/
1415
/out/
1516

eslint.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export default tsEslint.config(
4747
warnOnUnsupportedTypeScriptVersion: false,
4848
},
4949
},
50-
// @ts-expect-error https://github.com/vercel/next.js/issues/81695
5150
rules: {
5251
// spellchecker
5352
'@cspell/spellchecker': [

next-env.d.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

package.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,28 @@
99
"dependencies": {
1010
"@mdx-js/loader": "^3.1.1",
1111
"@mdx-js/react": "^3.1.1",
12-
"@next/mdx": "^15.5.4",
13-
"@sentry/nextjs": "^10.19.0",
12+
"@next/mdx": "^16.0.1",
13+
"@sentry/nextjs": "^10.24.0",
1414
"copy-webpack-plugin": "^13.0.1",
1515
"core-js": "^3.46.0",
16-
"file-type": "^21.0.0",
16+
"file-type": "^21.1.0",
1717
"idea-react": "^2.0.0-rc.13",
18-
"koa": "^3.0.1",
18+
"koa": "^3.1.1",
1919
"koajax": "^3.1.2",
2020
"less": "^4.4.2",
2121
"less-loader": "^12.3.0",
2222
"lodash": "^4.17.21",
23-
"marked": "^16.4.0",
23+
"marked": "^17.0.0",
2424
"mime": "^4.1.0",
2525
"mobx": "^6.15.0",
26-
"mobx-github": "^0.6.0",
26+
"mobx-github": "^0.6.2",
2727
"mobx-i18n": "^0.7.2",
28-
"mobx-lark": "^2.4.2",
28+
"mobx-lark": "^2.5.0",
2929
"mobx-react": "^9.2.1",
3030
"mobx-react-helper": "^0.5.1",
31-
"mobx-restful": "^2.1.3",
32-
"mobx-restful-table": "^2.5.4",
33-
"next": "^15.5.4",
31+
"mobx-restful": "^2.1.4",
32+
"mobx-restful-table": "^2.5.5",
33+
"next": "^16.0.1",
3434
"next-pwa": "~5.6.0",
3535
"next-ssr-middleware": "^1.0.3",
3636
"next-with-less": "^3.0.1",
@@ -42,41 +42,41 @@
4242
"remark-gfm": "^4.0.1",
4343
"remark-mdx-frontmatter": "^5.2.0",
4444
"undici": "^7.16.0",
45-
"web-utility": "^4.6.2",
45+
"web-utility": "^4.6.4",
4646
"webpack": "^5.102.1",
4747
"yaml": "^2.8.1"
4848
},
4949
"devDependencies": {
5050
"@babel/plugin-proposal-decorators": "^7.28.0",
51-
"@babel/plugin-transform-typescript": "^7.28.0",
52-
"@babel/preset-react": "^7.27.1",
53-
"@cspell/eslint-plugin": "^9.2.1",
54-
"@eslint/compat": "^1.4.0",
51+
"@babel/plugin-transform-typescript": "^7.28.5",
52+
"@babel/preset-react": "^7.28.5",
53+
"@cspell/eslint-plugin": "^9.3.0",
54+
"@eslint/compat": "^1.4.1",
5555
"@eslint/eslintrc": "^3.3.1",
56-
"@eslint/js": "^9.37.0",
57-
"@next/eslint-plugin-next": "^15.5.4",
58-
"@octokit/openapi-types": "^26.0.0",
56+
"@eslint/js": "^9.39.1",
57+
"@next/eslint-plugin-next": "^16.0.1",
58+
"@octokit/openapi-types": "^27.0.0",
5959
"@softonus/prettier-plugin-duplicate-remover": "^1.1.2",
60-
"@stylistic/eslint-plugin": "^5.4.0",
60+
"@stylistic/eslint-plugin": "^5.5.0",
6161
"@types/eslint-config-prettier": "^6.11.3",
62-
"@types/koa": "^3.0.0",
62+
"@types/koa": "^3.0.1",
6363
"@types/lodash": "^4.17.20",
6464
"@types/next-pwa": "^5.6.9",
65-
"@types/node": "^22.18.10",
66-
"@types/react": "^19.2.2",
67-
"eslint": "^9.37.0",
68-
"eslint-config-next": "^15.5.4",
65+
"@types/node": "^22.19.0",
66+
"@types/react": "^19.2.3",
67+
"eslint": "^9.39.1",
68+
"eslint-config-next": "^16.0.1",
6969
"eslint-config-prettier": "^10.1.8",
7070
"eslint-plugin-react": "^7.37.5",
7171
"eslint-plugin-simple-import-sort": "^12.1.1",
72-
"globals": "^16.4.0",
72+
"globals": "^16.5.0",
7373
"husky": "^9.1.7",
7474
"jiti": "^2.6.1",
75-
"lint-staged": "^16.2.4",
75+
"lint-staged": "^16.2.6",
7676
"prettier": "^3.6.2",
7777
"prettier-plugin-css-order": "^2.1.2",
7878
"typescript": "~5.9.3",
79-
"typescript-eslint": "^8.46.0"
79+
"typescript-eslint": "^8.46.4"
8080
},
8181
"resolutions": {
8282
"next": "$next"
@@ -104,12 +104,12 @@
104104
"*.{js,mjs,ts,tsx}": "eslint --fix"
105105
},
106106
"scripts": {
107-
"prepare": "husky",
108-
"dev": "next dev",
109-
"build": "next build",
107+
"prepare": "husky || true",
108+
"install": "next typegen",
109+
"dev": "next dev --webpack",
110+
"build": "next build --webpack",
110111
"start": "next start",
111-
"lint": "next lint --fix && git add . && tsc --noEmit",
112-
"test": "lint-staged && npm run lint",
112+
"test": "lint-staged && tsc --noEmit",
113113
"pack-image": "docker build -t freecodecamp-chengdu/freecodecamp-chengdu.github.io:latest .",
114114
"container": "docker rm -f freecodecamp-chengdu.github.io && docker run --name freecodecamp-chengdu.github.io -p 3000:3000 -d freecodecamp-chengdu/freecodecamp-chengdu.github.io:latest"
115115
}

0 commit comments

Comments
 (0)