php icon indicating copy to clipboard operation
php copied to clipboard

[now dev] Installed packages in `vendor`do not exists

Open ties-v opened this issue 6 years ago • 1 comments

At this moment my project has a .nowignore file to prevent the composer vendor directory from uploading to now.

When I run this same project with now dev I get an error because the vendor directory is not found. This makes sense because it is ignored.

This should however be resolved by either:

  • Also run composer install in now dev, but this seems to make it really slow.
  • Also copy the vendor directory during a development run. But how can that be done?

ties-v avatar Aug 08 '19 10:08 ties-v

Yep, I've pointed that out also to ZEIT team and we need to colaborate on it.

I picture it like this:

  • now

    • composer deps are installed if composer.json is in place
  • now dev

    • vendor is in .gitignore
    • composer deps are installed if composer.json is in place only once, for the first time
    • we need to track if composer.json or composer.lock is changed and re-install composer deps

There is way I think, but it takes so much time to do it, because you have to publish pkg on npmjs to use it in now dev, thus we need to cooperate with ZEIT in this thing.

f3l1x avatar Aug 08 '19 10:08 f3l1x