comparadise-utils 0.0.6 → 0.0.7

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.
@@ -30,10 +30,9 @@ const pngjs_1 = require("pngjs");
30
30
  const images_1 = require("./images");
31
31
  function baseExists(screenshotFolder) {
32
32
  const fileName = (0, path_1.join)(screenshotFolder, 'base.png');
33
- const relativePath = (0, path_1.relative)(fileName, __dirname);
34
- const exists = fs.existsSync(relativePath);
33
+ const exists = fs.existsSync(fileName);
35
34
  if (!exists) {
36
- console.log(`Base image does not exist at ${relativePath}. This means a new one will be created. If your base should exist, something went wrong.`);
35
+ console.log(`Base image does not exist at ${fileName}. This means a new one will be created. If your base should exist, something went wrong.`);
37
36
  }
38
37
  return exists;
39
38
  }
package/package.json CHANGED
@@ -29,5 +29,5 @@
29
29
  "build": "tsc",
30
30
  "postbuild": "echo \"require('./dist/match-screenshot');\" > commands.js"
31
31
  },
32
- "version": "0.0.6"
32
+ "version": "0.0.7"
33
33
  }