MCPcopy
hub / github.com/Blazity/next-enterprise / getOptions

Function getOptions

report-bundle-size.js:119–123  ·  view source on GitHub ↗

* Reads options from `package.json`

(pathPrefix = process.cwd())

Source from the content-addressed store, hash-verified

117 * Reads options from `package.json`
118 */
119function 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`

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected