     if (isText)
       textFiles[moduleName] = true
 
+    # add resolved name to list of json files
+    if (isJson)
+      jsonFiles[moduleName] = true
+
     return moduleName
 
 

    # get rid of text! prefix
    if (isText)
      moduleName = moduleName.replace('text!', '')

    # deal with module path prefixes
    if config.paths and !config.paths[moduleName]


  foundModuleNames = []
  textFiles = {}
  jsonFiles = {}

  resolveModuleName = (moduleName, relativeTo = "") ->

