1
1
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:
dependabot[bot] 2021-08-12 11:03:37 +02:00 committed by GitHub
parent 63017953d7
commit f7d304ca80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 1198 additions and 151 deletions

View File

@ -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
View 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

File diff suppressed because it is too large Load Diff

View File

@ -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": {

View File

@ -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 } }
} }

View File

@ -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 } }
} }

View File

@ -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 } }
} }