Skip to content

Commit adde348

Browse files
committedApr 10, 2017
Remove unnecessary path resolve
Not needed now that bit-docs makes all file: paths absolute: bit-docs/bit-docs#26
1 parent 521db8b commit adde348

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed
 

‎build/static_dist.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,7 @@ function addPackages(siteConfig, buildFolder) {
118118
var possibleFilePath = siteConfig.dependencies[depName];
119119

120120
if (_.startsWith(possibleFilePath,'file:')) {
121-
try {
122-
var absDir = path.resolve(possibleFilePath.substr(5));
123-
if(fs.statSync(absDir).isDirectory()) {
124-
filePathedDeps[depName] = absDir;
125-
}
126-
} catch(err) {
127-
// skip bad path
128-
}
121+
filePathedDeps[depName] = possibleFilePath;
129122
}
130123
}
131124

0 commit comments

Comments
 (0)
Please sign in to comment.