UNPKG

lambda-layer-packager

Version:

A professional CLI tool designed to package Node.js modules into a zip file for AWS Lambda Layers, facilitating efficient deployment and management of serverless applications.

11 lines (8 loc) 238 B
#!/usr/bin/env node const moduleRequire = require('module').createRequire(__filename); // Load the appropriate entry point based on module system try { moduleRequire('../dist/main.js'); } catch { moduleRequire('../dist/module.js'); }