From 626a734586c853b63e02d72a9eab6be9d45dd573 Mon Sep 17 00:00:00 2001 From: Winston W Date: Wed, 22 Jan 2025 15:12:54 -0500 Subject: [PATCH 1/2] Adjusted site:theme action to accept CLI input --- src/lib/programs/site.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/programs/site.js b/src/lib/programs/site.js index e32dbed..f005ea2 100644 --- a/src/lib/programs/site.js +++ b/src/lib/programs/site.js @@ -5,7 +5,7 @@ import * as path from 'node:path'; import * as p from '@clack/prompts'; import * as ejs from "ejs"; -import color from 'picocolors'; +import color from 'picocolsite:theors'; import { dump, load } from 'js-yaml'; import * as winston from 'winston'; @@ -731,12 +731,12 @@ export async function siteCommandDetected(commandRun) { initialValue: val, options: list, }); - let themes = await HAXCMS.getThemes(); - if (themes && commandRun.options.theme && themes[commandRun.options.theme]) { - activeHaxsite.manifest.metadata.theme = themes[commandRun.options.theme]; - activeHaxsite.manifest.save(false); - recipe.log(siteLoggingName, commandString(commandRun)); - } + } + let themes = await HAXCMS.getThemes(); + if (themes && commandRun.options.theme && themes[commandRun.options.theme]) { + activeHaxsite.manifest.metadata.theme = themes[commandRun.options.theme]; + activeHaxsite.manifest.save(false); + recipe.log(siteLoggingName, commandString(commandRun)); } } catch(e) { From e37d0f8757816c514a2abe3b9ee28a1eb0d5166d Mon Sep 17 00:00:00 2001 From: Winston <96748487+winstonwumbo@users.noreply.github.com> Date: Thu, 23 Jan 2025 10:55:23 -0500 Subject: [PATCH 2/2] Fixed picocolors typo --- src/lib/programs/site.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/programs/site.js b/src/lib/programs/site.js index f005ea2..a3042d8 100644 --- a/src/lib/programs/site.js +++ b/src/lib/programs/site.js @@ -5,7 +5,7 @@ import * as path from 'node:path'; import * as p from '@clack/prompts'; import * as ejs from "ejs"; -import color from 'picocolsite:theors'; +import color from 'picocolors'; import { dump, load } from 'js-yaml'; import * as winston from 'winston'; @@ -1420,4 +1420,4 @@ async function nodeToHaxElement(node, eventName = "insert-element") { element.eventName = eventName; } return element; -} \ No newline at end of file +}