anmonteiro / aws-lambda-ocaml-runtime

An OCaml custom runtime for AWS Lambda and Vercel
BSD 3-Clause "New" or "Revised" License
207 stars 8 forks source link

Model examples/now-lambda-reason as a separate package #20

Closed andreypopp closed 5 years ago

andreypopp commented 5 years ago

This makes examples/now-lambda-reason a separate esy package.

The following works:

% cd examples/now-lambda-reason
% esy i
info install 0.4.3
info fetching: done
info installing: done
% esy b
info esy build 0.4.3
info building @opam/lambda-runtime@link:../../lambda-runtime.opam
info building @opam/lambda-runtime@link:../../lambda-runtime.opam: done
info building @opam/now-lambda@link:../../now-lambda.opam
info building @opam/now-lambda@link:../../now-lambda.opam: done
% esy x basic
Fatal error: exception Failure("Could not find runtime API env var: AWS_LAMBDA_RUNTIME_API")

This also removes the devDependency on @opam/reason at the root esy.json.

anmonteiro commented 5 years ago

I think I'm fine with the single top level esy.json package for now. I'll revisit this later.