mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-12-08 00:44:30 +01:00
build(deps): bump read-pkg from 5.2.0 to 6.0.0 (#136)
This commit is contained in:
parent
63017953d7
commit
f7d304ca80
@ -1,16 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
roots: ['<rootDir>'],
|
|
||||||
transform: {
|
|
||||||
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest'
|
|
||||||
},
|
|
||||||
moduleDirectories: ['node_modules', './'],
|
|
||||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
||||||
testEnvironment: 'jsdom',
|
|
||||||
setupFilesAfterEnv: [
|
|
||||||
'@testing-library/jest-dom/extend-expect',
|
|
||||||
'@testing-library/react'
|
|
||||||
],
|
|
||||||
collectCoverage: true,
|
|
||||||
coverageDirectory: './coverage',
|
|
||||||
coverageReporters: ['text', 'cobertura']
|
|
||||||
}
|
|
16
jest.config.json
Normal file
16
jest.config.json
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"roots": ["<rootDir>"],
|
||||||
|
"transform": {
|
||||||
|
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest"
|
||||||
|
},
|
||||||
|
"moduleDirectories": ["node_modules", "./"],
|
||||||
|
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
|
||||||
|
"testEnvironment": "jsdom",
|
||||||
|
"setupFilesAfterEnv": [
|
||||||
|
"@testing-library/jest-dom/extend-expect",
|
||||||
|
"@testing-library/react"
|
||||||
|
],
|
||||||
|
"collectCoverage": true,
|
||||||
|
"coverageDirectory": "./coverage",
|
||||||
|
"coverageReporters": ["text", "cobertura"]
|
||||||
|
}
|
1302
package-lock.json
generated
1302
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -41,7 +41,8 @@
|
|||||||
"next-translate": "1.0.7",
|
"next-translate": "1.0.7",
|
||||||
"react": "17.0.2",
|
"react": "17.0.2",
|
||||||
"react-dom": "17.0.2",
|
"react-dom": "17.0.2",
|
||||||
"read-pkg": "5.2.0",
|
"read-pkg": "6.0.0",
|
||||||
|
"sharp": "0.28.3",
|
||||||
"universal-cookie": "4.0.4"
|
"universal-cookie": "4.0.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { GetStaticProps } from 'next'
|
import { GetStaticProps } from 'next'
|
||||||
import useTranslation from 'next-translate/useTranslation'
|
import useTranslation from 'next-translate/useTranslation'
|
||||||
import readPackageJSON from 'read-pkg'
|
|
||||||
|
|
||||||
import { ErrorPage } from 'components/ErrorPage'
|
import { ErrorPage } from 'components/ErrorPage'
|
||||||
import { Head } from 'components/Head'
|
import { Head } from 'components/Head'
|
||||||
@ -25,7 +24,8 @@ const Error404: React.FC<FooterProps> = (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const getStaticProps: GetStaticProps<FooterProps> = async () => {
|
export const getStaticProps: GetStaticProps<FooterProps> = async () => {
|
||||||
const { version } = await readPackageJSON()
|
const { readPackageAsync } = await import('read-pkg')
|
||||||
|
const { version } = await readPackageAsync()
|
||||||
return { props: { version } }
|
return { props: { version } }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { GetStaticProps } from 'next'
|
import { GetStaticProps } from 'next'
|
||||||
import useTranslation from 'next-translate/useTranslation'
|
import useTranslation from 'next-translate/useTranslation'
|
||||||
import readPackageJSON from 'read-pkg'
|
|
||||||
|
|
||||||
import { ErrorPage } from 'components/ErrorPage'
|
import { ErrorPage } from 'components/ErrorPage'
|
||||||
import { Head } from 'components/Head'
|
import { Head } from 'components/Head'
|
||||||
@ -25,7 +24,8 @@ const Error500: React.FC<FooterProps> = (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const getStaticProps: GetStaticProps<FooterProps> = async () => {
|
export const getStaticProps: GetStaticProps<FooterProps> = async () => {
|
||||||
const { version } = await readPackageJSON()
|
const { readPackageAsync } = await import('read-pkg')
|
||||||
|
const { version } = await readPackageAsync()
|
||||||
return { props: { version } }
|
return { props: { version } }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { GetStaticProps } from 'next'
|
import { GetStaticProps } from 'next'
|
||||||
import useTranslation from 'next-translate/useTranslation'
|
import useTranslation from 'next-translate/useTranslation'
|
||||||
import readPackageJSON from 'read-pkg'
|
|
||||||
|
|
||||||
import { RevealFade } from 'components/design/RevealFade'
|
import { RevealFade } from 'components/design/RevealFade'
|
||||||
import { Section } from 'components/design/Section'
|
import { Section } from 'components/design/Section'
|
||||||
@ -71,7 +70,8 @@ const Home: React.FC<FooterProps> = (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const getStaticProps: GetStaticProps<FooterProps> = async () => {
|
export const getStaticProps: GetStaticProps<FooterProps> = async () => {
|
||||||
const { version } = await readPackageJSON()
|
const { readPackageAsync } = await import('read-pkg')
|
||||||
|
const { version } = await readPackageAsync()
|
||||||
return { props: { version } }
|
return { props: { version } }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user