Skip to content

Commit

Permalink
(fix) do not restrict exports from cdn-assets
Browse files Browse the repository at this point in the history
- Resolves highlightjs#3223
  • Loading branch information
joshgoebel committed Jun 4, 2021
1 parent 45187c2 commit a672b82
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/build_cdn.js
Expand Up @@ -17,6 +17,11 @@ async function installPackageJSON(options) {
const json = require(`${process.env.BUILD_DIR}/package`);
json.name = "@highlightjs/cdn-assets";
json.description = json.description.concat(" (pre-compiled CDN assets)");
// this is not a replacement for `highlightjs` package
delete json.exports;
delete json.type;
delete json.main;
delete json.types;
fs.writeFile(`${process.env.BUILD_DIR}/package.json`, JSON.stringify(json, null, ' '));
}

Expand Down

0 comments on commit a672b82

Please sign in to comment.