Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3 from cgatno/release/v0.1.10
Browse files Browse the repository at this point in the history
Release/v0.1.10
  • Loading branch information
Christian Gaetano committed May 5, 2017
2 parents e877bd8 + cabed3a commit b366fec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "impostr",
"version": "0.1.9",
"version": "0.1.10",
"description": "Impostr helps you keep track of who's who and what's what. Simple caching tool for checking for file changes over time.",
"main": "build/impostr.js",
"repository": "https://github.com/cgatno/impostr",
Expand Down
5 changes: 2 additions & 3 deletions src/lib/TrackedFile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fs from 'fs';
import path from 'path';

/** The path and current hash of a file to be tracked by Impostr. */
Expand All @@ -11,7 +10,7 @@ export default class TrackedFile {
*/
constructor(filePath) {
try {
this.path = fs.realpathSync(path.normalize(filePath));
this.path = TrackedFile.formatAnyPath(filePath);
this.hash = '';
} catch (readErr) {
throw readErr;
Expand All @@ -24,6 +23,6 @@ export default class TrackedFile {
* @return {string} A file path in the format used by the Impostr library.
*/
static formatAnyPath(inputPath) {
return fs.realpathSync(path.normalize(inputPath));
return path.normalize(inputPath);
}
}

0 comments on commit b366fec

Please sign in to comment.