Skip to content

Commit

Permalink
chore: typo (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
skiniks authored Nov 4, 2024
1 parent 9b55bf8 commit 93246cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/shiki/scripts/prepare/langs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const LANGS_LAZY_EMBEDDED_PARTIAL = [
/**
* Languages to be excluded from SFC langs
*/
const STANDALONG_LANGS_EMBEDDED = [
const STANDALONE_LANGS_EMBEDDED = [
'pug',
'stylus',
'sass',
Expand Down Expand Up @@ -85,8 +85,8 @@ export async function prepareLangs() {
json.embeddedLangs = includes
}
else if (LANGS_LAZY_EMBEDDED_PARTIAL.includes(lang.name)) {
json.embeddedLangsLazy = (json.embeddedLangs || []).filter(i => STANDALONG_LANGS_EMBEDDED.includes(i)) || []
json.embeddedLangs = (json.embeddedLangs || []).filter(i => !STANDALONG_LANGS_EMBEDDED.includes(i)) || []
json.embeddedLangsLazy = (json.embeddedLangs || []).filter(i => STANDALONE_LANGS_EMBEDDED.includes(i)) || []
json.embeddedLangs = (json.embeddedLangs || []).filter(i => !STANDALONE_LANGS_EMBEDDED.includes(i)) || []
}

const deps: string[] = json.embeddedLangs || []
Expand Down

0 comments on commit 93246cd

Please sign in to comment.