diff --git a/lib/utils.js b/lib/utils.js index 5d1ce74..ecd3d33 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -114,9 +114,10 @@ function fixFileExtension(filepath, files, onlyScriptsExportingFunction) { var otherFile; /* Prefer coffee scripts over json */ + //TODO: Warning : can not laod script for the registered file extenstions. if (isPreferredExtension(filepath)) return filepath; - var basename = path.basename(filepath, FILE_EXTENSION_JSON); + var basename = path.basename(filepath, path.extname(filepath)); var sourceDir = path.dirname(filepath); files.forEach(function(f) {