Skip to content

ScriptMustContainRule

Defined in: policies/PackageScripts.ts:11

Configuration for validating that a script’s body contains required substrings.

mustContain: string[]

Defined in: policies/PackageScripts.ts:21

Substrings that must appear in the script body. All substrings must be present for the script to pass validation.


script: string

Defined in: policies/PackageScripts.ts:15

The name of the script to validate.