Skip to content

Commit 9268dc2

Browse files
committed
(fix) do not restrict exports from cdn-assets
- Resolves #3223
1 parent 2185721 commit 9268dc2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/build_cdn.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ async function installPackageJSON(options) {
1717
const json = require(`${process.env.BUILD_DIR}/package`);
1818
json.name = "@highlightjs/cdn-assets";
1919
json.description = json.description.concat(" (pre-compiled CDN assets)");
20+
// this is not a replacement for `highlightjs` package
21+
delete json.exports;
22+
delete json.type;
23+
delete json.main;
24+
delete json.types;
2025
fs.writeFile(`${process.env.BUILD_DIR}/package.json`, JSON.stringify(json, null, ' '));
2126
}
2227

0 commit comments

Comments
 (0)