Skip to content

#147 prevents cli options from being used #149

Description

@smolnikov

#147 changed deploy from being command to be alias for whole program. Since that node-lambda run --handler dir/index.handler is no longer working:

module.js:457
    throw err;
    ^

Error: Cannot find module '/Users/smolnikov/dir/index.js'
    at Function.Module._resolveFilename (module.js:455:15)
    at Function.Module._load (module.js:403:25)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Lambda.run (/Users/smolnikov/dir/node_modules/node-lambda/lib/main.js:50:17)
    at Command.<anonymous> (/Users/smolnikov/dir/node_modules/node-lambda/bin/node-lambda:99:12)
    at Command.listener (/Users/smolnikov/dir/node_modules/commander/index.js:301:8)
    at emitTwo (events.js:106:13)
    at Command.emit (events.js:191:7)
    at Command.parseArgs (/Users/smolnikov/dir/node_modules/commander/index.js:615:12)

Changing bin/node-lambda:39 back to .command('deploy') solves the problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions