Bolt hooks

Open
#285 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
tooling

Research direction

Start with src/commands/install.js at the yarn install call linked in the issue, then trace how package linking follows hook execution. Define the expected order for bolt:postinstall and the existing yarn hooks, and verify that bolt completes its linking and postinstall behavior without stopping after installation.

Written by the indexing model from the issue text.

Description

While using bolt for our monorepo we discovered one problem, which can be just named "bolt hooks".

In short - running bolt will lead to

  • bolt running yarn install
  • yarn running all hooks, like prepare or postinstall
  • bolt linking the package
  • ... nothing more ...

Proposal

  • add bolt:postinstall hook. It would be enough for the beginning
  • do something with yarn hooks running before bolt. Probably moving link to pre-postinstall hook or something.
Dominant language
JavaScript
Stars
2.4k
Forks
97
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boltpkg/bolt

All issues in boltpkg/bolt

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.