You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At first I was just going to implement this the way npm does. But on reflection, this actually contradicts the principle of visibility. npm does lifecycle things because it has all kinds of special situations in which it runs pre- and post-hooks.
Also package.json doesn't make it easy to have composite tasks so having pre- and post- hooks makes defining things a little easier.
pre[-_]?{name}
andpost[-_]?{name}
tasks-s, --skip-prepost
to skip both pre- and post-tasksLater consider:
--skip-pre
,--skip-post
)History
Lots of tools (
npm
,yarn
,pnpm
,pdm
, etc.) look for task names that run before and after a particular task.node
tools usepre{name}
andpost{name}
python
tools usepre_{name}
andpost_{name}
The text was updated successfully, but these errors were encountered: