gulpjs / liftoff

Launch your command line tool with ease.
MIT License
843 stars 52 forks source link

modulePath is undefined when invoked from a namespaced npm module #91

Open capaj opened 6 years ago

capaj commented 6 years ago

image

When I invoke CLI on my namespaced package @capaj/knex it doesn't get any modulePath passed to it.

sttk commented 6 years ago

Perhaps you need to set '@capaj/knex' to opts.moduleName of Liftoff constructor.

phated commented 5 years ago

@sttk if opts.moduleName were specified as the namespaced module, wouldn't the file need to be named something like @capaj/knexfile.js? That would be super weird. Can we add a test for this?