prepublishScriptNames top-level constant
The publish-lifecycle script that must reach build. npm's modern name is
prepublishOnly; the deprecated prepublish is accepted as an equivalent.
Exactly one of these must be present (unless the package is private).
Implementation
const List<String> prepublishScriptNames = <String>[
'prepublishOnly',
'prepublish',
];