qleaner 1.0.21 → 1.0.22
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/controllers/image.js +2 -1
- package/package.json +1 -1
package/controllers/image.js
CHANGED
|
@@ -147,6 +147,7 @@ async function getUnusedImages(chalk, imageDirectory, codeDirectory, options) {
|
|
|
147
147
|
while(!isFound && i < combinedImages.length) {
|
|
148
148
|
const imageFilePath = await resolver(imageDirectory, combinedImages[i].value);
|
|
149
149
|
const filePath = path.resolve(file);
|
|
150
|
+
console.log(chalk.yellow(filePath), chalk.blue(imageFilePath));
|
|
150
151
|
if(compareFiles(filePath, imageFilePath)) {
|
|
151
152
|
isFound = true;
|
|
152
153
|
break;
|
|
@@ -166,7 +167,7 @@ async function getUnusedImages(chalk, imageDirectory, codeDirectory, options) {
|
|
|
166
167
|
if(options.table) {
|
|
167
168
|
const table = new Table({
|
|
168
169
|
head: options.dryRun ? ['Unused Images (Would Delete)'] : ['Unused Images'],
|
|
169
|
-
colWidths: [
|
|
170
|
+
colWidths: [100]
|
|
170
171
|
});
|
|
171
172
|
unusedImages.forEach(image => {
|
|
172
173
|
table.push([image]);
|