From 249f807e9208c8023e37394ba0e895fe33e3189c Mon Sep 17 00:00:00 2001 From: Brian McGee Date: Fri, 10 May 2024 11:15:04 +0100 Subject: [PATCH] fix: install node dependencies in devshell commands Signed-off-by: Brian McGee --- nix/docs.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nix/docs.nix b/nix/docs.nix index be2aa08..9dee9fd 100644 --- a/nix/docs.nix +++ b/nix/docs.nix @@ -35,19 +35,19 @@ _: { inherit category; name = "docs:dev"; help = "serve docs for local development"; - command = "cd $PRJ_ROOT/docs && npm run dev"; + command = "cd $PRJ_ROOT/docs && npm ci && npm run dev"; } { inherit category; name = "docs:build"; help = "create a production build of docs"; - command = "cd $PRJ_ROOT/docs && npm run build"; + command = "cd $PRJ_ROOT/docs && npm ci && npm run build"; } { inherit category; name = "docs:preview"; help = "preview a production build of docs"; - command = "cd $PRJ_ROOT/docs && npm run preview"; + command = "cd $PRJ_ROOT/docs && npm ci && npm run preview"; } { inherit category;