Properties
postinstall
postinstall: string
postpack
postpack: string
postrestart
postrestart: string
postshrinkwrap
postshrinkwrap: string
poststart
poststart: string
poststop
poststop: string
posttest
posttest: string
postuninstall
postuninstall: string
postversion
postversion: string
preinstall
preinstall: string
prepublish
prepublish: string
prepublishOnly
prepublishOnly: string
prerestart
prerestart: string
preshrinkwrap
preshrinkwrap: string
prestart
prestart: string
preuninstall
preuninstall: string
preversion
preversion: string
shrinkwrap
shrinkwrap: string
uninstall
uninstall: string
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Type alias with type parameter
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
The "
scripts
" property is a dictionary containing script commands that are run at various times in the lifecycle of your package. The key is the lifecycle event, and the value is the command to run at that point.{ "scripts": { "install": "install.js", "uninstall": "uninstall.js", "build": "build.js", "doc": "make-doc.js", "test": "test.js", } }
https://docs.npmjs.com/misc/scripts
https://yarnpkg.com/en/docs/package-json#toc-scripts