Lines Matching full:scripts
1 .TH "SCRIPTS" "7" "April 2022" "" ""
3 \fBscripts\fR \- How npm handles the "scripts" field
6 …scripts"\fP property of of your \fBpackage\.json\fP file supports a number of built\-in scripts an…
7 .SS Pre & Post Scripts
9 To create "pre" or "post" scripts for any scripts defined in the \fB"scripts"\fP section of the \fB…
14 "scripts": {
22 .SS Life Cycle Scripts
24 There are some special life cycle scripts that happen only in certain situations\. These scripts ha…
174 haven't defined your own \fBinstall\fP or \fBpreinstall\fP scripts, npm will
182 defaults to \fBnobody\fP\|\. Set the \fBunsafe\-perm\fP flag to run scripts with
186 Package scripts run in an environment where many pieces of information
191 If you depend on modules that define executable scripts, like test
193 executing the scripts\. So, if your package\.json has this:
202 "scripts": {
215 package\.json file, then your package scripts would have the
238 "scripts" : {
268 \fB{"scripts":{"install":"foo\.js"}}\fP in your package\.json, then you'd
283 "scripts" : {
284 "install" : "scripts/install\.js",
285 "postinstall" : "scripts/install\.js",
286 "uninstall" : "scripts/uninstall\.js"
292 then \fBscripts/install\.js\fP will be called for the install
293 and post\-install stages of the lifecycle, and \fBscripts/uninstall\.js\fP
295 \fBscripts/install\.js\fP is running for two different phases, it would
305 "scripts" : {
315 Scripts are run by passing the line as a script argument to \fBsh\fP\|\.
323 .SS Hook Scripts
332 Hook scripts are run exactly the same way as package\.json scripts\.
339 Except for uninstall scripts, this will cause the npm action to
344 Try not to use scripts to do what npm can do for you\. Read through
362 scripts is for compilation which must be done on the target architecture\.