Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

build-esm

Package Overview
Dependencies
5
Maintainers
1
Versions
21
Issues
File Explorer

Advanced tools

build-esm

Compile an ES Module for release on npm

    4.2.2latest

Version published
Maintainers
1
Yearly downloads
6,435
increased by182.61%

Weekly downloads

Changelog

Source

v4.2.2

4.2.2 (2019-08-29)

Bug Fixes

  • dependencies: Update dependencies (aa2b1e6)

Readme

Source

build-esm

Build Status

Compile an ES Module for release on npm

Installing

Install it locally to your project by running:

yarn add --dev build-esm

Manual Deployment

Add build-esm as a build script to package.json:

{ "name": "project", "scripts": { "build": "build-esm" } }

Then, run:

yarn build

build-esm copies all files that would be published by npm publish or yarn publish (accounting for .npmignore and files in package.json) into the dist directory, compiling all JavaScript files (with the .js extension) using Babel. All of the standard ways of configuring Babel (through the babel key in package.json and .babelrc) apply.

The package can be published by running:

npm publish dist

Continuous Deployment

When publishing from a continuous integration service, build-esm can compile files in-place, allowing npm publish without arguments to work as desired.

To enable in-place compilation, add build-esm as a prepack script to package.json:

{ "name": "project", "scripts": { "prepack": "build-esm" } }

Note that prepack is only supported in npm version 5 and greater.

Here are some example deployment workflows:

Keywords

FAQs

What is build-esm?

Compile an ES Module for release on npm

Is build-esm popular?

The npm package build-esm receives a total of 109 weekly downloads. As such, build-esm popularity was classified as not popular.

Is build-esm well maintained?

We found that build-esm demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 29 Aug 2019
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc