esbuild-plugin-package-manifest
v1.0.0-alpha.2
Published
[![NPM version][npm-image]][npm-url]
Downloads
2
Readme
ESBuild Package Manifest Plugin
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'
),
]
});