zkat / npx

execute npm package binaries (moved)

Home Page:https://github.com/npm/npx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accessing contents of a binary package

nullbrewer opened this issue · comments

Hi,

I'm building a CLI-tool that, when executed, executes a plop package binary dependency. I'm also providing arguments for plop, one of which is a config file within the CLI-tool package.

I'm using __dirname to compose the absolute path to the config file, but npx resolves this to a path which doesn't exist: /Users/░░░░░░/.npm/_npx/1807/lib/node_modules/░░░░░░/plopfile.js.

Is there a way to point to contents of a binary package?

I'm using node 11.6.0 and npm 6.5.0-next.0

Cheers