Strider-CD / strider-node

Run Node.js tests in strider
11 stars 13 forks source link

npm run postinstall after restoring cache #27

Open manuelbieh opened 9 years ago

manuelbieh commented 9 years ago

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?