@massimo-cassandro/minimo 1.24.10 → 1.24.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -56,9 +56,9 @@ export function parseParams(config_params = null, work_dir = process.cwd()) {
|
|
|
56
56
|
// da un raster non è possibile ricavare una favicon vettoriale
|
|
57
57
|
params.generate_svg_favicon = getImgExt(params.small_src_img?? params.src_img) === 'svg';
|
|
58
58
|
|
|
59
|
-
// creazione dir output se non esiste
|
|
59
|
+
// creazione dir output se non esiste (incluse le dir intermedie mancanti)
|
|
60
60
|
if (!fs.existsSync(params.output_dir)){
|
|
61
|
-
fs.mkdirSync(params.output_dir);
|
|
61
|
+
fs.mkdirSync(params.output_dir, { recursive: true });
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
// definizione snippet_path e creazione dir se necessario
|
|
@@ -69,7 +69,7 @@ export function parseParams(config_params = null, work_dir = process.cwd()) {
|
|
|
69
69
|
params.snippet_path = params.snippet_path?? params.output_dir;
|
|
70
70
|
|
|
71
71
|
if (!params.snippet_target_file && !fs.existsSync(params.snippet_path )){
|
|
72
|
-
fs.mkdirSync(params.snippet_path );
|
|
72
|
+
fs.mkdirSync(params.snippet_path, { recursive: true });
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
params.snippet_language = params.snippet_language.toLowerCase();
|