0.2.3 • Published 5 years ago

@tfinjs/aws-lambda-packager v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Packager for @tfinjs/aws-lambda

Use this packager to transpile your modules with webpack, find all the used dependencies and package it all into a zip file.

async packager(entryFilePath: string, dist: string)

Usage:

import packager from '@tfinjs/aws-lambda-packager';
import path from 'path';

const entryFilePath = path.resolve(__dirname, 'service.js');
const zipFilePath = path.resolve(__dirname, 'dist/service.zip')
packager(entryFilePath, zipFilePath)
  .then(() => {
    console.log('Done');
  })
  .catch((err) => {
    console.log(err);
  });