Simple demonstration of using a jsconfig.json file in a lambda project that uses zip layers for node_modules
, used to answer a StackOverflow Question.
This allows naked imports in the lambda/index.js to find the modules that are only installed in the layer/package.json project.
For example, in index.js
, without the jsconfig.json
file the following import will have no type information, but with the jsconfig.json
file it will have type information:
import axios from 'axios';