1.2.2 • Published 2 years ago
esbuild-plugin-license v1.2.2
esbuild-plugin-license
License generation tool similar to https://github.com/mjeanroy/rollup-plugin-license
Usage
npm i -D esbuild-plugin-license
import * as esbuild from 'esbuild'
import esbuildPluginLicense from 'esbuild-plugin-license';
esbuild.build({
entryPoints: ['index.ts'],
outdir: 'dist',
plugins: [esbuildPluginLicense()],
bundle: true,
platform: 'node'
})
Config
Example of default config
export const defaultOptions: DeepRequired<Options> = {
banner: `/*! <%= pkg.name %> v<%= pkg.version %> | <%= pkg.license %> */`,
thirdParty: {
includePrivate: false,
output: {
file: 'dependencies.txt',
// Template function that can be defined to customize report output
template(dependencies) {
return dependencies.map((dependency) => `${dependency.packageJson.name}:${dependency.packageJson.version} -- ${dependency.packageJson.license}`).join('\n');
},
}
}
} as const
0.0.0-experimental-2022-02-15-23-02-01-utc
2 years ago
0.0.0-experimental-2022-02-15-23-02-06-utc
2 years ago
0.0.0-experimental-424b01
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.0
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago