marp-dev-preview 0.1.8 → 0.1.10

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marp-dev-preview",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "A CLI tool to preview Marp markdown files.",
5
5
  "main": "src/marp-dev-preview.mjs",
6
6
  "type": "module",
@@ -22,19 +22,18 @@ export async function initializeMarp(themeSet) {
22
22
  console.log("Initializing Marp with themes...");
23
23
  for( const index in themeSet ) {
24
24
  let themeDir = themeSet[index];
25
- console.log("Processing theme directory:", themeDir);
26
25
  let stats = await fs.stat(themeDir).catch(() => null);
27
26
  if (!stats) {
28
- console.warn(` Theme directory does not exist.`);
27
+ console.warn(`Theme ${themeDir} directory does not exist.`);
29
28
  continue;
30
29
  }
31
30
 
32
31
  if(!stats.isDirectory()) {
33
- console.warn(` Path is not a directory.`);
32
+ console.warn(`Path ${themeDir} is not a directory.`);
34
33
  continue;
35
34
  }
36
35
 
37
- console.log(" Loading themes from:", themeDir);
36
+ console.log("Loading themes from ", themeDir);
38
37
 
39
38
  const themeFiles = await fs.readdir(themeDir);
40
39
  for (const file of themeFiles) {