1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-05-29 22:37:44 +02:00

build(deps): bump read-pkg from 5.2.0 to 6.0.0 (#136)

This commit is contained in:
dependabot[bot]
2021-08-12 11:03:37 +02:00
committed by GitHub
parent 63017953d7
commit f7d304ca80
7 changed files with 1198 additions and 151 deletions

View File

@ -1,6 +1,5 @@
import { GetStaticProps } from 'next'
import useTranslation from 'next-translate/useTranslation'
import readPackageJSON from 'read-pkg'
import { ErrorPage } from 'components/ErrorPage'
import { Head } from 'components/Head'
@ -25,7 +24,8 @@ const Error404: React.FC<FooterProps> = (props) => {
}
export const getStaticProps: GetStaticProps<FooterProps> = async () => {
const { version } = await readPackageJSON()
const { readPackageAsync } = await import('read-pkg')
const { version } = await readPackageAsync()
return { props: { version } }
}

View File

@ -1,6 +1,5 @@
import { GetStaticProps } from 'next'
import useTranslation from 'next-translate/useTranslation'
import readPackageJSON from 'read-pkg'
import { ErrorPage } from 'components/ErrorPage'
import { Head } from 'components/Head'
@ -25,7 +24,8 @@ const Error500: React.FC<FooterProps> = (props) => {
}
export const getStaticProps: GetStaticProps<FooterProps> = async () => {
const { version } = await readPackageJSON()
const { readPackageAsync } = await import('read-pkg')
const { version } = await readPackageAsync()
return { props: { version } }
}

View File

@ -1,6 +1,5 @@
import { GetStaticProps } from 'next'
import useTranslation from 'next-translate/useTranslation'
import readPackageJSON from 'read-pkg'
import { RevealFade } from 'components/design/RevealFade'
import { Section } from 'components/design/Section'
@ -71,7 +70,8 @@ const Home: React.FC<FooterProps> = (props) => {
}
export const getStaticProps: GetStaticProps<FooterProps> = async () => {
const { version } = await readPackageJSON()
const { readPackageAsync } = await import('read-pkg')
const { version } = await readPackageAsync()
return { props: { version } }
}