Skip to content

npm run postinstall after restoring cache #27

@manuelbieh

Description

@manuelbieh

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions