Skip to content

Commit aa1dd7e

Browse files
Max Blackowlstronaut
authored andcommitted
docs(scripts): document that prepare scripts run concurrently in workspaces
1 parent 3f48487 commit aa1dd7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/lib/content/using-npm/scripts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ during `npm publish` and `npm pack`
5151
* As of `npm@7` these scripts run in the background.
5252
To see the output, run with: `--foreground-scripts`.
5353

54+
* **In workspaces, prepare scripts run concurrently** across all packages. If you have interdependent packages where one must build before another, consider using `--foreground-scripts` (which can be set in `.npmrc` with `foreground-scripts=true`) to run scripts sequentially, or structure your build differently.
55+
5456
**prepublish** (DEPRECATED)
5557
* Does not run during `npm publish`, but does run during `npm ci` and `npm install`.
5658
See below for more info.

0 commit comments

Comments
 (0)