Skip to content

Commit

Permalink
read bundled themes
Browse files Browse the repository at this point in the history
  • Loading branch information
s3ththompson committed Jul 24, 2024
1 parent f160017 commit cf952da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/shiki.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/testfiles/alt-bin/shiki.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit cf952da

Please sign in to comment.