deployd/deployd — pull request #240 by taras (2013-08-06 05:14:54+00:00)
Title: Fixed error caused by incorrect main property in package.json

type-loader.js attempts to require all modules to find resources that might be included with the modules. This causes a problem when the main entry point for the package is incorrect

Here is an example of the kinds of errors that occur

Error loading module node_modules/grunt-concurrent
Error: Cannot find module '/Users/taras/Repositories/re-furniture.net/node_modules/grunt-concurrent'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /Users/taras/Repositories/re-furniture.net/node_modules/deployd/lib/type-loader.js:39:27
at process._tickDomainCallback (node.js:459:13)

Error loading module node_modules/grunt-nodemon
Error: Cannot find module '/Users/taras/Repositories/re-furniture.net/node_modules/grunt-nodemon'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /Users/taras/Repositories/re-furniture.net/node_modules/deployd/lib/type-loader.js:39:27
at process._tickDomainCallback (node.js:459:13)

Error loading module node_modules/grunt-shell
Error: Cannot find module '/Users/taras/Repositories/re-furniture.net/node_modules/grunt-shell'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /Users/taras/Repositories/re-furniture.net/node_modules/deployd/lib/type-loader.js:39:27
at process._tickDomainCallback (node.js:459:13)

Error loading module node_modules/grunt-svgmin
Error: Cannot find module '/Users/taras/Repositories/re-furniture.net/node_modules/grunt-svgmin'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /Users/taras/Repositories/re-furniture.net/node_modules/deployd/lib/type-loader.js:39:27
at process._tickDomainCallback (node.js:459:13)

Error loading module node_modules/grunt-usemin
Error: Cannot find module '/Users/taras/Repositories/re-furniture.net/node_modules/grunt-usemin'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /Users/taras/Repositories/re-furniture.net/node_modules/deployd/lib/type-loader.js:39:27
at process._tickDomainCallback (node.js:459:13)