barrelize 1.3.0 → 1.3.1
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/lib/index.js +4 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -591,7 +591,7 @@ class CAC extends EventEmitter {
|
|
|
591
591
|
}
|
|
592
592
|
const cac = (name2 = "") => new CAC(name2);
|
|
593
593
|
const name = "barrelize";
|
|
594
|
-
const version = "1.
|
|
594
|
+
const version = "1.3.0";
|
|
595
595
|
function cliInit() {
|
|
596
596
|
const cli = cac(name);
|
|
597
597
|
cli.command("[config path]", `Generate barrel files`).action(async (config) => {
|
|
@@ -8865,7 +8865,7 @@ async function generateBarrels(rootPath, configPath, config) {
|
|
|
8865
8865
|
const oldPaths = await indexFileExportedPaths(oldContent);
|
|
8866
8866
|
if (content === oldContent) {
|
|
8867
8867
|
console.log(
|
|
8868
|
-
colorize("IGNORE", TerminalColor.
|
|
8868
|
+
colorize("IGNORE", TerminalColor.GRAY),
|
|
8869
8869
|
colorize(indexFileRelativePath, TerminalColor.CYAN),
|
|
8870
8870
|
colorize(exportedText, TerminalColor.GRAY)
|
|
8871
8871
|
);
|
|
@@ -8876,7 +8876,7 @@ async function generateBarrels(rootPath, configPath, config) {
|
|
|
8876
8876
|
const insertionsText = insertions.length > 0 ? `, ${insertions.length} insertion${plural(insertions)}` : "";
|
|
8877
8877
|
const deletionsText = deletions.length > 0 ? `, ${deletions.length} deletion${plural(deletions)}` : "";
|
|
8878
8878
|
console.log(
|
|
8879
|
-
colorize("UPDATE", TerminalColor.
|
|
8879
|
+
colorize("UPDATE", TerminalColor.GRAY),
|
|
8880
8880
|
colorize(indexFileRelativePath, TerminalColor.CYAN),
|
|
8881
8881
|
colorize(`${exportedText}${insertionsText}${deletionsText}`, TerminalColor.GRAY)
|
|
8882
8882
|
);
|
|
@@ -8885,7 +8885,7 @@ async function generateBarrels(rootPath, configPath, config) {
|
|
|
8885
8885
|
}
|
|
8886
8886
|
await writeFile(indexFileAbsolutePath, content);
|
|
8887
8887
|
console.log(
|
|
8888
|
-
colorize("CREATE", TerminalColor.
|
|
8888
|
+
colorize("CREATE", TerminalColor.GRAY),
|
|
8889
8889
|
colorize(indexFileRelativePath, TerminalColor.CYAN),
|
|
8890
8890
|
colorize(exportedText, TerminalColor.GRAY)
|
|
8891
8891
|
);
|