Skip to content

Commit 00fe78c

Browse files
authored
Update dependencies + add fix-pages-structure script and run it before build (#838)
* Update dependencies + add `fix-pages-structure` script and run it before build * Improve script
1 parent a8f1fc6 commit 00fe78c

File tree

328 files changed

+8571
-55905
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

328 files changed

+8571
-55905
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
{
22
"name": "the-graph-docs-monorepo",
33
"private": true,
4-
"packageManager": "pnpm@9.13.2",
4+
"packageManager": "pnpm@9.15.0",
55
"scripts": {
6-
"build": "NODE_OPTIONS='--max_old_space_size=4096' turbo run build",
7-
"check": "pnpm typecheck && pnpm lint && pnpm prettier:check",
8-
"check:fix": "pnpm typecheck; pnpm lint:fix",
96
"dev": "turbo run dev --parallel",
7+
"build": "NODE_OPTIONS='--max_old_space_size=4096' turbo run build",
108
"docker:build": "source ./website/.env.local && DOCKER_BUILDKIT=1 docker build . -t docs --no-cache --build-arg ENVIRONMENT=$ENVIRONMENT",
119
"docker:clean": "docker builder prune",
1210
"docker:up": "docker run --rm -it -p 3000:80 -v \"$(pwd)/nginx.conf:/etc/nginx/nginx.conf\" docs",
11+
"check": "pnpm typecheck && pnpm lint && pnpm prettier:check",
12+
"check:fix": "pnpm typecheck; pnpm lint:fix",
13+
"typecheck": "turbo run typecheck",
1314
"lint": "eslint . --cache --ignore-path .gitignore --max-warnings 0",
1415
"lint:fix": "eslint . --cache --ignore-path .gitignore --fix; pnpm prettier",
1516
"prettier": "pnpm prettier:check --write",
1617
"prettier:check": "prettier --cache --check .",
17-
"test": "turbo run test",
18-
"typecheck": "turbo run typecheck"
18+
"test": "turbo run test"
1919
},
2020
"devDependencies": {
2121
"@edgeandnode/eslint-config": "^2.0.3",
2222
"eslint": "^8.57.1",
2323
"eslint-plugin-mdx": "^2.3.4",
24-
"prettier": "^3.3.3",
24+
"prettier": "^3.4.2",
2525
"prettier-plugin-tailwindcss": "^0.6.9",
2626
"remark-frontmatter": "^5.0.0",
2727
"remark-lint-first-heading-level": "^3.1.2",
2828
"remark-lint-heading-increment": "^3.1.2",
2929
"remark-lint-no-heading-punctuation": "^3.1.2",
3030
"remark-lint-restrict-elements": "workspace:*",
3131
"turbo": "^1.13.4",
32-
"typescript": "^5.6.3"
32+
"typescript": "^5.7.2"
3333
}
3434
}

packages/nextra-theme/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,20 @@
3636
},
3737
"dependencies": {
3838
"@docsearch/react": "^3.8.0",
39-
"@radix-ui/react-collapsible": "^1.1.1",
40-
"@radix-ui/react-visually-hidden": "^1.1.0",
39+
"@radix-ui/react-collapsible": "^1.1.2",
40+
"@radix-ui/react-visually-hidden": "^1.1.1",
4141
"lodash": "^4.17.21",
4242
"react-intersection-observer": "^9.13.1",
43-
"react-use": "^17.5.1"
43+
"react-use": "^17.6.0"
4444
},
4545
"devDependencies": {
46-
"@edgeandnode/gds": "~5.34.0",
47-
"@edgeandnode/go": "~6.60.0",
48-
"@emotion/react": "^11.13.3",
46+
"@edgeandnode/gds": "^5.39.1",
47+
"@edgeandnode/go": "^6.74.0",
48+
"@emotion/react": "^11.14.0",
4949
"@types/lodash": "^4.17.13",
50-
"@types/react": "^18.3.12",
51-
"@types/react-dom": "^18.3.1",
52-
"next": "^14.2.18",
50+
"@types/react": "^18.3.16",
51+
"@types/react-dom": "^18.3.5",
52+
"next": "^14.2.20",
5353
"next-seo": "^6.6.0",
5454
"nextra": "^2.13.4",
5555
"react": "^18.3.1",

packages/nextra-theme/src/layout/MDXLayoutNav.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ export const MDXLayoutNav = ({ mobile = false }: { mobile?: boolean }) => {
133133
return <NavTree.Heading key={pageItem.name}>{pageItem.title}</NavTree.Heading>
134134
}
135135
if ('children' in pageItem && pageItem.children) {
136+
if (pageItem.children.length === 0) {
137+
return null
138+
}
139+
136140
if (pageItem.type === 'children') {
137141
return <Fragment key={pageItem.name}>{pageItem.children.map(renderSidebar)}</Fragment>
138142
}

packages/og-image/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
"yoga-wasm-web": "0.3.3"
1717
},
1818
"devDependencies": {
19-
"@cloudflare/workers-types": "^4.20241112.0",
20-
"@types/react": "^18.3.12",
19+
"@cloudflare/workers-types": "^4.20241205.0",
20+
"@types/react": "^18.3.16",
2121
"jest-image-snapshot": "^6.4.0",
2222
"tsx": "^4.19.2",
23-
"typescript": "^5.6.3",
23+
"typescript": "^5.7.2",
2424
"vitest": "^1.6.0",
25-
"wrangler": "^3.87.0"
25+
"wrangler": "^3.95.0"
2626
}
2727
}

pnpm-lock.yaml

Lines changed: 3985 additions & 3889 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,25 @@
44
"type": "module",
55
"private": true,
66
"scripts": {
7-
"build": "rm -rf .next && rm -rf out && next build",
87
"dev": "next",
8+
"build": "rm -rf .next && rm -rf out && next build",
99
"fetch-remote-filepaths": "tsx scripts/fetch-remote-filepaths.ts",
10-
"postbuild": "next-sitemap --config next-sitemap.config.mjs && node scripts/sitemap-ci.js",
11-
"prebuild": "pnpm fetch-remote-filepaths",
10+
"fix-pages-structure": "tsx scripts/fix-pages-structure.ts",
1211
"predev": "pnpm fetch-remote-filepaths",
12+
"prebuild": "pnpm fetch-remote-filepaths && pnpm fix-pages-structure",
13+
"postbuild": "next-sitemap --config next-sitemap.config.mjs && node scripts/sitemap-ci.js",
1314
"typecheck": "tsc --noEmit"
1415
},
1516
"dependencies": {
16-
"@edgeandnode/common": "^6.30.0",
17-
"@edgeandnode/gds": "~5.34.0",
18-
"@edgeandnode/go": "~6.60.0",
19-
"@emotion/react": "^11.13.3",
17+
"@edgeandnode/common": "^6.38.0",
18+
"@edgeandnode/gds": "^5.39.1",
19+
"@edgeandnode/go": "^6.74.0",
20+
"@emotion/react": "^11.14.0",
2021
"@graphprotocol/contracts": "6.2.1",
2122
"@graphprotocol/nextra-theme": "workspace:*",
2223
"@phosphor-icons/react": "^2.1.7",
2324
"mixpanel-browser": "^2.56.0",
24-
"next": "^14.2.18",
25+
"next": "^14.2.20",
2526
"next-seo": "^6.6.0",
2627
"next-sitemap": "^4.2.3",
2728
"nextra": "^2.13.4",
@@ -35,13 +36,13 @@
3536
"@graphprotocol/client-cli": "3.0.3",
3637
"@types/mdast": "^4.0.4",
3738
"@types/mixpanel-browser": "^2.50.2",
38-
"@types/react": "^18.3.12",
39-
"@types/react-dom": "^18.3.1",
39+
"@types/react": "^18.3.16",
40+
"@types/react-dom": "^18.3.5",
4041
"autoprefixer": "^10.4.20",
4142
"fast-xml-parser": "^4.5.0",
4243
"graphql": "^16.9.0",
4344
"postcss": "^8.4.49",
44-
"tailwindcss": "^3.4.15",
45+
"tailwindcss": "^3.4.16",
4546
"tsx": "^4.19.2",
4647
"unified": "^11.0.5"
4748
}

website/pages/ar/_meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import meta from '../en/_meta.js'
22

33
export default {
4-
...structuredClone(meta),
4+
...meta,
55
}

0 commit comments

Comments
 (0)