esbuild-license-compliance-plugin
v0.3.0
Published
esbuild plugin to check license compliance of your dependencies
Maintainers
Readme
esbuild-license-compliance-plugin
An esbuild plugin that checks license compliance of your dependencies during build time.
Install
pnpm add -D esbuild-license-compliance-pluginUsage
import { build } from "esbuild";
import { licenseCompliancePlugin } from "esbuild-license-compliance-plugin";
await build({
// ...
plugins: [
licenseCompliancePlugin({
allowed: ["MIT", "Apache-2.0", "BSD-3-Clause"],
disallowed: ["GPL-3.0-only"],
ignores: ["@types/*", "dev-only-package"],
}),
],
});Options
allowed- Array of SPDX license IDs that are alloweddisallowed- Array of SPDX license IDs that are not allowedignores- Array of package name patterns to ignore (supports glob patterns)
