This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
works-on-my-machine/script/check-deps

11 lines
257 B
Text
Raw Normal View History

#!/usr/bin/bash
# This check enforces ADR 0001 - the project should not have dependencies.
DEPENDENCIES=$(cat package.json | jq .dependencies -cr)
if [[ $DEPENDENCIES != "null" ]]; then
echo "This project should have no dependencies."
exit 1;
fi