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
Marc Cataford cab7505672
docs: adr-0001 nodeps + ci check (#19)
* docs: adr-0001 nodeps + ci check

* ci: add check
2023-04-14 09:38:29 -04:00

10 lines
257 B
Bash

#!/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