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

Function installPackageJSON

tools/build_cdn.js:15–27  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

13const bundling = require('./lib/bundling.js');
14
15async function installPackageJSON(options) {
16 const json = buildPackageJSON(options);
17 json.name = "@highlightjs/cdn-assets";
18 json.description = json.description.concat(" (pre-compiled CDN assets)");
19 // this is not a replacement for `highlightjs` package
20 // CDN assets do not need an export map, they are just a bunch of files.
21 // The NPM package mostly only exists to populate CDNs and provide raw files.
22 delete json.exports;
23 delete json.type;
24 delete json.main;
25 delete json.types;
26 await writePackageJSON(json);
27}
28
29let shas = {};
30

Callers 1

buildCDNFunction · 0.85

Calls 2

buildPackageJSONFunction · 0.85
writePackageJSONFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…