Closed 59naga closed 8 years ago
Interesting, I never thought about other package managers. It appears to be working for me in ied. Is it possible you don't have a package.json
file in the root of the project?
cd $(mktemp -d -t tmp)
echo '{}' > package.json
echo 'module.exports="foo"' > index.js
ied install wavy
node -e "console.log(require('~/index.js'))"
# outputs "foo"
Fixing pnpm
requires more of a hack. I need to change this line into something like:
var root = __dirname.slice(0, __dirname.lastIndexOf('/node_modules/'));
I want to do some more testing and clean up the docs before pushing the next release tho. If it's blocking you, feel free to fork with those changes
sounds good, the fix appears to work.
FYR: i also tried to write a test in ied
and pnpm
, but both are not compatible with the local installation(eg pnpm install ../../
).
so, additional testing is required is unlikely (should perform only the operation guarantee in npm
).
https://github.com/kolodny/wavy/commit/a3bce9882450e532171aa5c921991dc72136d261 do work on pnpm
. ready to ship it?
published in 1.0.2
wow,
wavy
is a cool solution to the relative path problem!but, directory location of pnpm and ied is different from the
npm
. therefore, the following will fail.in a project that huge dependency exists, these installer will come in handy. usually,
npm install
takes several tens of minutes, but they can be completed in a few tens of seconds!