1648064d0e
Converted Next.js Bundle Analyzer example over to TypeScript to align with the Examples guide. I also replaced `faker` with `@faker-js/faker`. Faker has been forked and maintained [here](https://github.com/faker-js/faker) after the original author [deleted](https://www.theverge.com/2022/1/9/22874949/developer-corrupts-open-source-libraries-projects-affected) the library. ## Documentation / Examples - [X] Make sure the linting passes by running `pnpm lint` - [X] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
25 lines
576 B
JSON
25 lines
576 B
JSON
{
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"analyze": "cross-env ANALYZE=true yarn build",
|
|
"serve": "serve .next/analyze"
|
|
},
|
|
"dependencies": {
|
|
"@faker-js/faker": "^7.3.0",
|
|
"@next/bundle-analyzer": "^12.1.6",
|
|
"cross-env": "^7.0.3",
|
|
"next": "latest",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^18.0.0",
|
|
"@types/react": "^18.0.14",
|
|
"@types/react-dom": "^18.0.5",
|
|
"serve": "^13.0.2",
|
|
"typescript": "^4.7.4"
|
|
}
|
|
}
|