diff --git a/src/generate-pkg-json.js b/src/generate-pkg-json.js index c1446e7..197f8db 100644 --- a/src/generate-pkg-json.js +++ b/src/generate-pkg-json.js @@ -36,17 +36,17 @@ module.exports = themeInfo => ({ path: `./neon-night-theme.json` }, { - label: `Neon Night - No Bold`, + label: `Neon Night (No Bold)`, uiTheme: `vs-dark`, path: `./neon-night-no-bold-theme.json` }, { - label: `Neon Night - No Italic`, + label: `Neon Night (No Italic)`, uiTheme: `vs-dark`, path: `./neon-night-no-italic-theme.json` }, { - label: `Neon Night - No Font Styles`, + label: `Neon Night - (No Font Styles)`, uiTheme: `vs-dark`, path: `./neon-night-no-style-theme.json` } diff --git a/src/index.js b/src/index.js index 6668d94..212df76 100644 --- a/src/index.js +++ b/src/index.js @@ -7,12 +7,12 @@ const pkgJSON = require(`./generate-pkg-json`); const palette = require(`./palette`); const themeInfo = { name: `neon-night`, - displayName: `Neon Night`, - variant: `` + displayName: `Neon Night` }; const themePath = (variant /*: ?string */) => { const name = variant ? `${themeInfo.name}-${variant}` : themeInfo.name; + console.log(`writing file ${name}-theme.json`); return path.resolve(__dirname, `..`, `themes`, `${name}-theme.json`); }; @@ -41,25 +41,25 @@ const main = async function(themePath, themeInfo, fontStyleEnabled) { }; // default -main(themePath, themeInfo, { italic: true, bold: true }); +main(themePath, { ...themeInfo, variant: `` }, { italic: true, bold: true }); // no font style main( themePath, - { variant: `no-style`, ...themeInfo }, + { ...themeInfo, variant: `no-style` }, { italic: false, bold: false } ); // no bold style main( themePath, - { variant: `no-bold`, ...themeInfo }, + { ...themeInfo, variant: `no-bold` }, { italic: true, bold: false } ); // no italic style main( themePath, - { variant: `no-italic`, ...themeInfo }, + { ...themeInfo, variant: `no-italic` }, { italic: false, bold: true } );