Skip to content

Commit

Permalink
fix: fix build.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Suya1671 committed Jul 23, 2024
1 parent 0898d43 commit 3a16aaa
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@ const buildSingleThemes = async (theme: Theme, type: string) => {
await Deno.writeTextFile(`build/${pathType}/kleur-hex.json`, hexJson);

const base16 = toBase24(theme);
// @ts-ignore not an issue
base16.name = base16.scheme;
const base16Json = JSON.stringify(base16, null, 2);
const base16Yaml = YAML.stringify(base16);
await Deno.writeTextFile(`build/${pathType}/kleur.yaml`, base16Yaml);
await Deno.writeTextFile(`build/${pathType}}/kleur.json`, base16Json);
await Deno.writeTextFile(`build/${pathType}/kleur.json`, base16Json);

const windowsTerminal = await toWindowsTerminalTheme(theme);
await Deno.writeTextFile(
`build/${pathType}}/windows-terminal.json`,
`build/${pathType}/windows-terminal.json`,
windowsTerminal,
);

Expand Down
3 changes: 2 additions & 1 deletion build/dark/kleur.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"base14": "#34e27c",
"base15": "#14ddd3",
"base16": "#48d5ff",
"base17": "#c7bfff"
"base17": "#c7bfff",
"name": "Kleur Dark"
}
1 change: 1 addition & 0 deletions build/dark/kleur.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ base14: "#34e27c"
base15: "#14ddd3"
base16: "#48d5ff"
base17: "#c7bfff"
name: Kleur Dark
3 changes: 2 additions & 1 deletion build/light/kleur.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"base14": "#004d1d",
"base15": "#004a46",
"base16": "#004665",
"base17": "#423b6e"
"base17": "#423b6e",
"name": "Kleur Light"
}
1 change: 1 addition & 0 deletions build/light/kleur.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ base14: "#004d1d"
base15: "#004a46"
base16: "#004665"
base17: "#423b6e"
name: Kleur Light
Binary file modified build/vscode/kleur-code-0.3.0.vsix
Binary file not shown.

0 comments on commit 3a16aaa

Please sign in to comment.