diff --git a/tools/build_cdn.js b/tools/build_cdn.js index 11f51a8e21..86c9f1214c 100644 --- a/tools/build_cdn.js +++ b/tools/build_cdn.js @@ -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, ' ')); }