esbuild-plugin-package-manifest
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.2 • Public • Published

ESBuild Package Manifest Plugin

NPM version

An esbuild plugin to generate a npm package manifest. Please read this article to better understand the difference between a project manifest and a package manifest, and the benefits of using a tool to generate package manifests.

Installation

The recommended way to install the plugin is from its npm package:

npm install esbuild-plugin-package-manifest

Usage

import {createPackageManifestPlugin} from 'esbuild-plugin-package-manifest';
import * as ESbuild from 'esbuild'

ESbuild.build({
    entryPoints: [
        'index.ts'
    ],
    outfile: 'index.mjs',
    plugins: [
        createPackageManifestPlugin(
            {
                name: 'my-package-name',
                version: '1.0.0'
            },
            './package.json'
        ),
    ]
});

Readme

Keywords

Package Sidebar

Install

npm i esbuild-plugin-package-manifest

Weekly Downloads

1

Version

1.0.0-alpha.2

License

BSD-3-Clause

Unpacked Size

5.32 kB

Total Files

5

Last publish

Collaborators

  • ericmorand