templates: Handle package.json conversion in direnv

By splitting out the check for package.yaml into a separate check, we
can avoid the constant massive shell reloads for the nix shell.
This commit is contained in:
Tristan Daniël Maat 2022-09-18 19:27:54 +01:00
parent 76f5246814
commit 9fb195819e
Signed by: tlater
GPG key ID: 49670FD774E43268
3 changed files with 11 additions and 11 deletions

View file

@ -34,17 +34,6 @@
yj
]
++ old.buildInputs;
shellHook =
''
# Update package.json
if [ -e ./package.json ]; then
unlink ./package.json
fi
cat ./package.yaml | yj > ./package.json
''
+ old.shellHook;
});
server = nixpkgs.legacyPackages.${system}.mkShell {