Relates to #20

This commit is contained in:
viktor 2017-11-21 19:49:09 +03:00
parent db854ca5f3
commit 428b79ceda
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ function byNameAndReplaceInner(importStatement, updatedFileContent, dir, filePat
else fileContent = fs.readFileSync(srcFiles[j], "utf8");
findAllImportPaths(dir, fileContent, function(_importObjs) {
changeRelativePathToAbsolute(fileContent, srcFiles[j], _importObjs);
fileContent = changeRelativePathToAbsolute(fileContent, srcFiles[j], _importObjs);
if (fileContent.indexOf(" is ") > -1) {
updatedFileContent = updatedFileContent.replace(importStatement, fileContent);