Skip to content

Commit

Permalink
document life cycle scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Jan 20, 2023
1 parent 6399768 commit 0759f59
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/cli/pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ Create a tarball from a package.
### --pack-destination <dir\>

Directory in which `pnpm pack` will save tarballs. The default is the current working directory.

## Life Cycle Scripts

* `prepack`
* `prepare`
* `postpack`

11 changes: 11 additions & 0 deletions docs/cli/publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,14 @@ For example:
git-checks=false
publish-branch=production
```

## Life Cycle Scripts

* `prepublishOnly`
* `prepublish`
* `prepack`
* `prepare`
* `postpack`
* `publish`
* `postpublish`

0 comments on commit 0759f59

Please sign in to comment.