(options)
| 13 | const bundling = require('./lib/bundling.js'); |
| 14 | |
| 15 | async 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 | |
| 29 | let shas = {}; |
| 30 |
no test coverage detected
searching dependent graphs…