rolldown-license-plugin 2.1.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/dist/index.d.ts +9 -5734
- package/dist/index.js +10 -3
- package/package.json +9 -6
package/README.md
CHANGED
|
@@ -50,7 +50,21 @@ When set, word-wrap `licenseText` to this column width.
|
|
|
50
50
|
|
|
51
51
|
Type: `(license: LicenseInfo) => boolean`
|
|
52
52
|
|
|
53
|
-
Validate each dependency's license. Return `false` to throw
|
|
53
|
+
Validate each dependency's license. Return `false` to reject it. By default, rejected dependencies are warned via `console.warn`. Use `failOnViolation` and `failOnUnlicensed` to throw build errors instead.
|
|
54
|
+
|
|
55
|
+
#### `opts.failOnViolation`
|
|
56
|
+
|
|
57
|
+
Type: `boolean`\
|
|
58
|
+
Default: `false`
|
|
59
|
+
|
|
60
|
+
Throw a build error when a dependency has an incompatible license.
|
|
61
|
+
|
|
62
|
+
#### `opts.failOnUnlicensed`
|
|
63
|
+
|
|
64
|
+
Type: `boolean`\
|
|
65
|
+
Default: `false`
|
|
66
|
+
|
|
67
|
+
Throw a build error when a dependency does not specify any license.
|
|
54
68
|
|
|
55
69
|
### `LicenseInfo`
|
|
56
70
|
|