mirror of
https://github.com/LukeHagar/skeleton.git
synced 2025-12-09 12:47:44 +00:00
Fixed checks of path and custom theme
This commit is contained in:
@@ -268,7 +268,7 @@ export function createTailwindConfig(opts) {
|
||||
if (configs.themes.preset.length == 0) delete configs.themes.preset;
|
||||
if (configs.themes.custom.length == 0) delete configs.themes.custom;
|
||||
let configsStr = JSON5.stringify(configs, { space: '\t' });
|
||||
if (configs.themes.custom.length) {
|
||||
if (configs.themes?.custom?.length) {
|
||||
// stringify adds quotes around the custom theme imported variable, we need to remove them
|
||||
configsStr = configsStr.replace(`'${configs.themes.custom}'`, configs.themes.custom);
|
||||
}
|
||||
|
||||
@@ -154,6 +154,7 @@ Problems? Open an issue on ${cyan('https://github.com/skeletonlabs/skeleton/issu
|
||||
});
|
||||
goodbye(opts.path);
|
||||
}
|
||||
if (opts?.path == undefined) opts.path = "."
|
||||
// name to set in package.json
|
||||
opts.name = basename(opts.path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user