Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ How to work on theme-toggle in a clone. The [contributing guide](contributing.md
mise install
pnpm install
playwright install chromium # the browser the tests run in
lefthook install # the git hooks in lefthook.yml
```

pnpm doesn't run lefthook's own install script, so the hooks need `lefthook install` once. After changing a version in `mise.toml`, run `mise lock` and commit both files.
`pnpm install` also installs the git hooks in `lefthook.yml`, because `pnpm-workspace.yaml` allows lefthook's install script. After changing a version in `mise.toml`, run `mise lock` and commit both files.

## Tasks

Expand Down
7 changes: 7 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
allowBuilds:
lefthook: true

# lefthook's postinstall installs the git hooks, so it has to run on every install:
# with the side-effects cache on, a lefthook already built for another project skips it.
sideEffectsCache: false

# Supply-chain cooldown: malicious releases are usually pulled within 24h; pattern excludes need pnpm >= 10.17.
minimumReleaseAge: 1440
minimumReleaseAgeExclude:
Expand Down
Loading