vercel / micro

Asynchronous HTTP microservices
MIT License
10.59k stars 458 forks source link

fix: port binding and multiple endpoint (#480) #481

Open oklas opened 1 year ago

oklas commented 1 year ago

Closes #480

oklas commented 1 year ago

Installing before publishing is a little tricky due to lerna.

It may be solved by adding to package.json something like this:

  "dependencies": {
    "micro": "file:./micro/packages/micro/micro-v10.0.1.tgz"
  },
  "scripts": {
    "preinstall": "if [ ! -d ./micro ]; then git clone --depth 1 --branch patch-1 https://github.com/oklas/micro; (cd micro/packages/micro && yarn && yarn build && yarn pack) ; fi"
  }