* Reads options from `package.json`
(pathPrefix = process.cwd())
| 117 | * Reads options from `package.json` |
| 118 | */ |
| 119 | function getOptions(pathPrefix = process.cwd()) { |
| 120 | const pkg = require(path.join(pathPrefix, "package.json")) |
| 121 | |
| 122 | return { ...pkg.nextBundleAnalysis, name: pkg.name } |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * Gets the output build directory, defaults to `.next` |