qleaner 1.0.20 → 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.
@@ -145,7 +145,7 @@ async function getUnusedImages(chalk, imageDirectory, codeDirectory, options) {
145
145
  let i = 0
146
146
  let isFound = false;
147
147
  while(!isFound && i < combinedImages.length) {
148
- const imageFilePath = await resolver(path.resolve(combinedImages[i].file), combinedImages[i].value);
148
+ const imageFilePath = await resolver(imageDirectory, combinedImages[i].value);
149
149
  const filePath = path.resolve(file);
150
150
  console.log(chalk.yellow(filePath), chalk.blue(imageFilePath));
151
151
  if(compareFiles(filePath, imageFilePath)) {
@@ -167,7 +167,7 @@ async function getUnusedImages(chalk, imageDirectory, codeDirectory, options) {
167
167
  if(options.table) {
168
168
  const table = new Table({
169
169
  head: options.dryRun ? ['Unused Images (Would Delete)'] : ['Unused Images'],
170
- colWidths: [50]
170
+ colWidths: [100]
171
171
  });
172
172
  unusedImages.forEach(image => {
173
173
  table.push([image]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "qleaner",
3
3
  "packageManager": "yarn@4.6.0",
4
- "version": "1.0.20",
4
+ "version": "1.0.22",
5
5
  "main": "command.js",
6
6
  "bin": "./bin/cli.js",
7
7
  "scripts": {