Skip to content

Commit

Permalink
Remove aliases source.brightscript, source.gfm, source.vtt
Browse files Browse the repository at this point in the history
Change to use `source.brs`, `text.md`, and `text.vtt`.
  • Loading branch information
wooorm committed Sep 13, 2023
1 parent 972372f commit 607c3f9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 0 additions & 2 deletions lang/source.brightscript.js

This file was deleted.

2 changes: 0 additions & 2 deletions lang/source.gfm.js

This file was deleted.

2 changes: 0 additions & 2 deletions lang/source.vtt.js

This file was deleted.

8 changes: 5 additions & 3 deletions script/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,21 @@ import {common} from './common.js'
*
* This prevents having to introduce breaking changes in `starry-night`.
*
* To do: is this a major? drop the ones here.
*
* @type {Record<string, string>}
*/
const aliases = {
// Old names to new names.
'source.brightscript': 'source.brs',
'source.gfm': 'text.md',
'source.vtt': 'text.vtt'
// Example: 'source.brightscript': 'source.brs'
}

const own = {}.hasOwnProperty
const gemsBase = new URL('../gems/gems/', import.meta.url)
const languagesBase = new URL('../lang/', import.meta.url)

await fs.mkdir(languagesBase, {recursive: true})

// Human-maintained database of which language needs what language.
/** @type {Record<string, Record<string, boolean>>} */
const graph = parseYaml(
Expand Down

0 comments on commit 607c3f9

Please sign in to comment.