liftoff icon indicating copy to clipboard operation
liftoff copied to clipboard

modulePath is undefined when invoked from a namespaced npm module

Open capaj opened this issue 7 years ago • 2 comments

image

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

capaj avatar Mar 23 '18 16:03 capaj

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

sttk avatar Apr 04 '18 14:04 sttk

@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?

phated avatar Apr 20 '19 16:04 phated