MCPcopy
hub / github.com/highlightjs/highlight.js / buildPackageJSON

Function buildPackageJSON

tools/build_node.js:117–123  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

115 "./types/*": "./types/*"
116});
117function buildPackageJSON(options) {
118 const packageJson = require("../package.json");
119
120 if (options.esm) packageJson.exports = generatePackageExports();
121
122 return packageJson;
123}
124function writePackageJSON(packageJson) {
125 return fs.writeFile(`${process.env.BUILD_DIR}/package.json`, JSON.stringify(packageJson, null, 2));
126}

Callers 2

installPackageJSONFunction · 0.85
buildNodeFunction · 0.85

Calls 1

generatePackageExportsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…