prepublishScriptNames top-level constant

List<String> const prepublishScriptNames

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',
];