I've symlinked some of my application's folders (app/ and lib/) in ./node_modules to avoid relative path mess so I can just use require('lib/foo') from everywhere in my application no matter where I am.
To make that magic work after a fresh installation I created a postinstall hook in my package.json:
"postinstall": "node ./setup/symlinks"
The postinstall seems to not being executed when cache is activated in node-strider. That causes my tests to fail:
Error: Cannot find module 'lib/pagination'
Is there a reason for not calling postinstall after restoring the cache or is there another way to run a script after the cache has been restored?
I've symlinked some of my application's folders (
app/
andlib/
) in./node_modules
to avoid relative path mess so I can just userequire('lib/foo')
from everywhere in my application no matter where I am.To make that magic work after a fresh installation I created a postinstall hook in my
package.json
:"postinstall": "node ./setup/symlinks"
The postinstall seems to not being executed when cache is activated in node-strider. That causes my tests to fail:
Error: Cannot find module 'lib/pagination'
Is there a reason for not calling
postinstall
after restoring the cache or is there another way to run a script after the cache has been restored?