fable-css-modules
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -184,2 +184,5 @@ "use strict"; | ||
case 0: | ||
if (this._modules.length == 0) { | ||
return [2 /*return*/]; | ||
} | ||
sb = new stringBuilder_1.default(); | ||
@@ -186,0 +189,0 @@ internalPrefix = this._internal ? "internal " : ""; |
@@ -109,2 +109,4 @@ "use strict"; | ||
_a.sent(); | ||
// Notify the user | ||
console.log("Generation completed"); | ||
return [2 /*return*/]; | ||
@@ -111,0 +113,0 @@ } |
@@ -9,2 +9,9 @@ # Changelog | ||
## 1.3.0 - 2022-06-29 | ||
### Added | ||
* Add message when the generation is done. | ||
* Generate nothing if no CSS modules are found. | ||
## 1.2.0 - 2022-06-29 | ||
@@ -11,0 +18,0 @@ |
{ | ||
"name": "fable-css-modules", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Generate Fable bindings for your CSS modules classes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -169,2 +169,6 @@ import path from "path" | ||
async writeToFile() { | ||
if (this._modules.length == 0) { | ||
return; | ||
} | ||
let sb = new StringBuilder(); | ||
@@ -171,0 +175,0 @@ |
@@ -67,2 +67,5 @@ import type { Arguments, CommandBuilder } from "yargs"; | ||
await classCollector.writeToFile(); | ||
// Notify the user | ||
console.log("Generation completed"); | ||
}; |
54530
886