mirror of
https://github.com/vector-im/element-call.git
synced 2026-05-01 09:54:37 +00:00
- remove post-commit hook - remove .links.cjs enable/disable (instead just add/rm .pnpmfile.cjs) - rename pnpm links:enable -> pnpm links:on - rename pnpm links:disable -> pnpm links:off - unify doc filenames `-` -> `_` - add linking_concept_reasoning.md to provide background why the linking is how it is.
10 lines
375 B
Bash
Executable File
10 lines
375 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Checks if there currently is linking configured. Informs the user to disable linking before committing.
|
|
|
|
PNPMFILE=.pnpmfile.cjs
|
|
if test -f "$PNPMFILE"; then
|
|
echo "[pnpm-linker] The pre-commit hook detected $PNPMFILE which implies you have linked packages in your pnpm-lock.yaml. Run pnpm links:off and commit again. See also linking.md."
|
|
exit 1
|
|
fi
|