You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If node_modules contains directories, then ryp ls works fine
.
|-- node_modules -- xxx | |-- lib | |-- my-module.js
`-- package.json
The output is:
./node_modules/xxx
However if there is a js module directly in node_modules, then ryp ls recurses forever.
.
|-- node_modules
`-- my-module.js
The output is:
./node_modules/my-module.js
./node_modules/my-module.js/node_modules/my-module.js
./node_modules/my-module.js/node_modules/my-module.js/node_modules/my-module.js
./node_modules/my-module.js/node_modules/my-module.js/node_modules/my-module.js/node_modules/my-module.js
...
I think that the problem is that is trying to cd into the js file.
As node (0.4.0) supports js modules directly in node_modules it would be nice if ryp tolerated them.
The text was updated successfully, but these errors were encountered:
Only recursing in to directories seems to work. So instead of
( cd "$i" &>/dev/null ; ls_ $pref/$i ) || true
do
if [ -d $pref/$i ]; then
( cd "$i" &>/dev/null ; ls_ $pref/$i ) || true
fi
My bash skills are weak, so there's probably a better solution.
If
node_modules
contains directories, thenryp ls
works fine.
|-- node_modules
-- xxx | |-- lib | |
-- my-module.js`-- package.json
The output is:
./node_modules/xxx
However if there is a js module directly in
node_modules
, thenryp ls
recurses forever..
|-- node_modules
`-- my-module.js
The output is:
./node_modules/my-module.js
./node_modules/my-module.js/node_modules/my-module.js
./node_modules/my-module.js/node_modules/my-module.js/node_modules/my-module.js
./node_modules/my-module.js/node_modules/my-module.js/node_modules/my-module.js/node_modules/my-module.js
...
I think that the problem is that is trying to
cd
into the js file.As node (0.4.0) supports js modules directly in
node_modules
it would be nice ifryp
tolerated them.The text was updated successfully, but these errors were encountered: