From ccd1204e3b358fd5c2a4e604a5b9bfd2e2c87d41 Mon Sep 17 00:00:00 2001 From: sonsurim Date: Wed, 24 Jul 2024 04:18:07 +0900 Subject: [PATCH] chore: update lifecycle script list in RunScript - add prepare, prepublishOnly scripts - add dependencies scripts - add prepack and postpack scripts - todo comments removed due to changes reflected --- lib/commands/run-script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/commands/run-script.js b/lib/commands/run-script.js index 180dfa1cdeac5..0a139d08af745 100644 --- a/lib/commands/run-script.js +++ b/lib/commands/run-script.js @@ -165,8 +165,10 @@ class RunScript extends BaseCommand { return } - // TODO this is missing things like prepare, prepublishOnly, and dependencies const cmdList = [ + 'prepare', 'prepublishOnly', + 'prepack', 'postpack', + 'dependencies', 'preinstall', 'install', 'postinstall', 'prepublish', 'publish', 'postpublish', 'prerestart', 'restart', 'postrestart',