diff --git a/bin/shiki.js b/bin/shiki.js index 38461fb..798f543 100644 --- a/bin/shiki.js +++ b/bin/shiki.js @@ -58,7 +58,7 @@ async function main(args) { } if (args[0] === 'themes') { - process.stdout.write(JSON.stringify(highlighter.getLoadedThemes())); + process.stdout.write(JSON.stringify(Object.keys(shiki.bundledThemes))); return; } diff --git a/tests/testfiles/alt-bin/shiki.js b/tests/testfiles/alt-bin/shiki.js index acd09a1..2b3ffe2 100644 --- a/tests/testfiles/alt-bin/shiki.js +++ b/tests/testfiles/alt-bin/shiki.js @@ -58,7 +58,7 @@ async function main(args) { } if (args[0] === 'themes') { - process.stdout.write(JSON.stringify(highlighter.getLoadedThemes())); + process.stdout.write(JSON.stringify(Object.keys(shiki.bundledThemes))); return; }