• Home
  • Raw
  • Download

Lines Matching full:scripts

1 .TH "SCRIPTS" "7" "February 2024" "" ""
3 \fBscripts\fR - How npm handles the "scripts" field
6scripts"\fR property of your \fBpackage.json\fR file supports a number of built-in scripts and the…
7 .SS "Pre & Post Scripts"
9 To create "pre" or "post" scripts for any scripts defined in the \fB"scripts"\fR section of the \fB…
14 "scripts": {
23 In this example \fBnpm run compress\fR would execute these scripts as described.
24 .SS "Life Cycle Scripts"
26scripts that happen only in certain situations. These scripts happen in addition to the \fBpre<ev…
44 As of \fBnpm@7\fR these scripts run in the background. To see the output, run with: \fB--foreground…
174 …ckage and you haven't defined your own \fBinstall\fR or \fBpreinstall\fR scripts, npm will default…
177 These are run from the scripts of \fB<pkg-name>\fR
282 .SS "A Note on a lack of npm help uninstall scripts"
284 While npm v6 had \fBuninstall\fR lifecycle scripts, npm v7 does not. Removal of a package can happe…
301 Due to the lack of necessary context, \fBuninstall\fR lifecycle scripts are not implemented and wil…
304 When npm is run as root, scripts are always run with the effective uid and gid of the working direc…
307 Package scripts run in an environment where many pieces of information are made available regarding…
310 …that define executable scripts, like test suites, then those executables will be added to the \fBP…
319 "scripts": {
329 …foo", "version":"1.2.5"}\fR in your package.json file, then your package scripts would have the \f…
336 Objects are flattened following this format, so if you had \fB{"scripts":{"install":"foo.js"}}\fR i…
350 "scripts" : {
351 "install" : "scripts/install.js",
352 "postinstall" : "scripts/install.js"
358 then \fBscripts/install.js\fR will be called for the install and post-install stages of the lifecyc…
365 "scripts" : {
375 Scripts are run by passing the line as a script argument to \fBsh\fR.
385 Try not to use scripts to do what npm can do for you. Read through \fB\fBpackage.json\fR\fR \fI\(la…
391 … another option. The only valid use of \fBinstall\fR or \fBpreinstall\fR scripts is for compilatio…
393 Scripts are run from the root of the package folder, regardless of what the current working directo…