Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run postinstall after restoring cache #27

Open
manuelbieh opened this issue Oct 5, 2015 · 0 comments
Open

npm run postinstall after restoring cache #27

manuelbieh opened this issue Oct 5, 2015 · 0 comments

Comments

@manuelbieh
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants