Add hooks to packages node context