Skip to content

Commit 415ade7

Browse files
authored
Update pnpm + dependencies (#345)
1 parent e178a3e commit 415ade7

28 files changed

+3625
-2419
lines changed

.github/workflows/ci-cd-pull-request.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
- name: Set up pnpm
2222
uses: pnpm/action-setup@v2
2323
with:
24-
version: 7.28.0
24+
version: 8.2.0
2525

2626
- name: Install dependencies
2727
run: pnpm install
2828

29-
- name: Lint
30-
run: pnpm lint
29+
- name: Lint and typecheck
30+
run: pnpm check
3131

3232
- name: Build Docker image
3333
uses: docker/build-push-action@v4

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.14
1+
18.15

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM node:18-alpine as builder
33
ENV PNPM_HOME="/usr/bin"
44

55
RUN apk add --no-cache git
6-
RUN npm install -g pnpm@7
6+
RUN npm install -g pnpm@8.2.0
77

88
WORKDIR /app
99

package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
22
"name": "the-graph-docs-monorepo",
33
"private": true,
4-
"packageManager": "pnpm@7.28.0",
4+
"packageManager": "pnpm@8.2.0",
55
"scripts": {
66
"build": "pnpm -r build",
7+
"check": "pnpm typecheck && pnpm lint && pnpm prettier:check",
8+
"check:fix": "pnpm typecheck; pnpm lint:fix; exit 0",
79
"dev": "pnpm --filter @graphprotocol/docs dev",
810
"docker:build": "DOCKER_BUILDKIT=1 docker build . -t docs --no-cache",
911
"docker:clean": "docker builder prune",
1012
"docker:up": "docker run --rm -it -p 3000:80 -v \"$(pwd)/nginx.conf:/etc/nginx/nginx.conf\" docs",
1113
"export": "pnpm --filter @graphprotocol/docs export",
12-
"lint": "pnpm typecheck && eslint --ignore-path .gitignore --cache --ext .js,.jsx,.ts,.tsx,.mjs --max-warnings 0 . && pnpm prettier:check",
13-
"lint:fix": "pnpm typecheck && eslint --ignore-path .gitignore --cache --ext .js,.jsx,.ts,.tsx,.mjs --fix . && pnpm prettier",
14+
"lint": "eslint . --cache --ext .js,.jsx,.ts,.tsx,.mjs --ignore-path .gitignore --max-warnings 0",
15+
"lint:fix": "eslint . --cache --ext .js,.jsx,.ts,.tsx,.mjs --ignore-path .gitignore --fix && pnpm prettier",
1416
"pre-commit": "lint-staged --concurrent false",
1517
"pre-push": "pnpm build",
1618
"prepare": "husky install && chmod +x .husky/*",
@@ -21,12 +23,12 @@
2123
},
2224
"devDependencies": {
2325
"@edgeandnode/eslint-config": "^1.3.1",
24-
"eslint": "^8.36.0",
26+
"eslint": "^8.38.0",
2527
"husky": "^8.0.3",
26-
"lint-staged": "^13.2.0",
27-
"prettier": "^2.8.6",
28+
"lint-staged": "^13.2.1",
29+
"prettier": "^2.8.7",
2830
"prettier-plugin-pkg": "^0.17.1",
29-
"typescript": "5.0.2"
31+
"typescript": "5.0.4"
3032
},
3133
"lint-staged": {
3234
"**/*.{js,jsx,ts,tsx,mjs,cjs}": "eslint --fix",

packages/nextra-theme/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"build": "tsup"
2424
},
2525
"peerDependencies": {
26-
"@edgeandnode/components": "^27.4.1",
26+
"@edgeandnode/gds": "^1.3.2",
2727
"@emotion/react": "^11.10.6",
2828
"next": "^13.2.4",
2929
"next-seo": "^5.15.0",
@@ -41,17 +41,17 @@
4141
"react-use": "^17.4.0"
4242
},
4343
"devDependencies": {
44-
"@edgeandnode/components": "^27.4.1",
44+
"@edgeandnode/gds": "^1.3.2",
4545
"@emotion/react": "^11.10.6",
46-
"@types/lodash": "^4.14.191",
47-
"@types/react": "^18.0.28",
46+
"@types/lodash": "^4.14.194",
47+
"@types/react": "^18.0.37",
4848
"@types/react-dom": "^18.0.11",
49-
"next": "^13.2.4",
50-
"next-seo": "^5.15.0",
49+
"next": "^13.3.0",
50+
"next-seo": "^6.0.0",
5151
"nextra": "2.3.0",
5252
"react": "18.2.0",
5353
"react-dom": "^18.2.0",
54-
"theme-ui": "^0.15.5",
54+
"theme-ui": "^0.15.7",
5555
"tsup": "6.7.0"
5656
},
5757
"sideEffects": false

packages/nextra-theme/src/components/Blockquote.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { HTMLAttributes } from 'react'
22

3-
import { buildBorder, Spacing, Text, TextProps } from '@edgeandnode/components'
3+
import { buildBorder, Spacing, Text, TextProps } from '@edgeandnode/gds'
44

55
export type BlockquoteProps = Omit<TextProps & HTMLAttributes<HTMLQuoteElement>, 'color'>
66

packages/nextra-theme/src/components/Code.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Highlight, { defaultProps, Language, PrismTheme } from 'prism-react-renderer'
22
import { HTMLAttributes } from 'react'
33

4-
import { BorderRadius, FontFamily, Spacing } from '@edgeandnode/components'
4+
import { BorderRadius, FontFamily, Spacing } from '@edgeandnode/gds'
55

66
export type CodeBlockProps = HTMLAttributes<HTMLPreElement>
77
export type CodeInlineProps = HTMLAttributes<HTMLElement>

packages/nextra-theme/src/components/Difficulty.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useI18n } from '@edgeandnode/components'
1+
import { useI18n } from '@edgeandnode/gds'
22

33
// TODO: Refactor this component
44
export const Difficulty = ({ level }: { level: string }) => {

packages/nextra-theme/src/components/DocSearch.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
Opacity,
1616
Spacing,
1717
Text,
18-
} from '@edgeandnode/components'
18+
} from '@edgeandnode/gds'
1919

2020
const BREAKPOINT = '751px'
2121

@@ -69,7 +69,7 @@ export function DocSearch(props: DocSearchProps) {
6969
>
7070
<Icon.Search size="14px" title="" sx={{ flexShrink: 0 }} />
7171
<Text.P14 size="14px">{props.translations?.button?.buttonText ?? 'Search'}</Text.P14>
72-
{/* TODO: Remove `fontFamily: 'inherit'` when it's included in `@edgeandnode/components`'s global styles */}
72+
{/* TODO: Remove `fontFamily: 'inherit'` when it's included in `@edgeandnode/gds`'s global styles */}
7373
<Text.P14
7474
as="kbd"
7575
size="14px"

packages/nextra-theme/src/components/EditPageLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
Spacing,
1111
Text,
1212
useI18n,
13-
} from '@edgeandnode/components'
13+
} from '@edgeandnode/gds'
1414

1515
import { Link } from '@/components'
1616
import { NavContext } from '@/layout/NavContext'

0 commit comments

Comments
 (0)