# serverless-plugin-move-bootstrap

> Serverless Framework plugin that moves a bootstrap file to the root directory for provided.al2 runtime

Latest version **1.0.5** (published 2024-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install serverless-plugin-move-bootstrap
pnpm add serverless-plugin-move-bootstrap
yarn add serverless-plugin-move-bootstrap
bun add serverless-plugin-move-bootstrap
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2024-04-07 |
| First published | 2023-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ynon Cohen |
| Maintainers | ynon-evermile |
| Keywords | serverless, serverless framework, serverless plugin, amazon web services, awslambda, bootstrap, provided.al2 |

## Links

- npm: https://www.npmjs.com/package/serverless-plugin-move-bootstrap
- Repository: https://github.com/evermile/serverless-plugin-move-bootstrap
- Homepage: https://github.com/evermile/serverless-plugin-move-bootstrap#readme
- Issues: https://github.com/evermile/serverless-plugin-move-bootstrap/issues
- npm.io page: https://npm.io/package/serverless-plugin-move-bootstrap

## Dependencies (5)

- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [p-map](https://npm.io/package/p-map.md) ^3.0.0
- [adm-zip](https://npm.io/package/adm-zip.md) ^0.5.9
- [lodash.merge](https://npm.io/package/lodash.merge.md) ^4.6.2
- [pretty-hrtime](https://npm.io/package/pretty-hrtime.md) ^1.0.3

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2024-04-07
- 1.0.4 — 2024-01-25
- 1.0.3 — 2024-01-25
- 1.0.2 — 2023-08-28
- 1.0.1 — 2023-08-27
- 1.0.0 — 2023-08-27

## README

# ⚡️Serverless Framework Move Bootstrap Plugin

[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com)
[![npm](https://img.shields.io/npm/v/serverless-go-plugin)](https://www.npmjs.com/package/serverless-go-plugin)

`serverless-plugin-move-bootstrap` is a small Serverless Framework plugin that helps in rearranging a deployment package
for the provided.al2 runtime by placing the "bootstrap" executable in the root directory. Once the plugin is installed
it will search for the "handler" file and move it to the root directory of the package.

## Install

1. Install the plugin

    ```
    npm i --save-dev serverless-plugin-move-bootstrap
    ```

1. Add it to your `serverless.yaml`

    ```
    plugins:
      - serverless-plugin-move-bootstrap
    ```

## Configuration

Default values:

```
custom:
  bootstrap:
    tmpDir: .serverless/tmp # folder to use for extracting, moving and rezipping files
```

## How does it work?

The plugin goes over all the functions defined, unzips their packaging and moves the "handler" to a root-level '
bootstrap' file. It then re-zips the package and cleans up the temp directory, ahead of deployment.

## Why do I need this?

The `provided.al2` runtime requires the "bootstrap" file to be in the root directory of the package. This plugin helps
in achieving that.

---
_Source: https://npm.io/package/serverless-plugin-move-bootstrap · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
