@fluffjs/cli 0.1.4 → 0.1.5

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.
Files changed (2) hide show
  1. package/Cli.js +6 -0
  2. package/package.json +1 -1
package/Cli.js CHANGED
@@ -311,6 +311,9 @@ Examples:
311
311
  const styleContents = [];
312
312
  for (const styleGlob of target.styles) {
313
313
  const styleFiles = this.findFiles(srcDir, [styleGlob]);
314
+ if (styleFiles.length === 0) {
315
+ console.warn(` ⚠ Style not found: ${path.resolve(srcDir, styleGlob)}`);
316
+ }
314
317
  for (const styleFile of styleFiles) {
315
318
  styleContents.push(fs.readFileSync(styleFile, 'utf-8'));
316
319
  }
@@ -489,6 +492,9 @@ Examples:
489
492
  const styleContents = [];
490
493
  for (const styleGlob of target.styles) {
491
494
  const styleFiles = this.findFiles(srcDir, [styleGlob]);
495
+ if (styleFiles.length === 0) {
496
+ console.warn(` ⚠ Style not found: ${path.resolve(srcDir, styleGlob)}`);
497
+ }
492
498
  for (const styleFile of styleFiles) {
493
499
  styleContents.push(fs.readFileSync(styleFile, 'utf-8'));
494
500
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluffjs/cli",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",