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:
@ -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 } }
|
||||
}
|
||||
|
||||
|
@ -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 } }
|
||||
}
|
||||
|
||||
|
@ -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 } }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user