ScriptMustContainRule
Defined in: policies/PackageScripts.ts:11
Configuration for validating that a script’s body contains required substrings.
Properties
Section titled “Properties”mustContain
Section titled “mustContain”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
Section titled “script”script:
string
Defined in: policies/PackageScripts.ts:15
The name of the script to validate.