From 5f8a875973a4420059aae5700bbac75ab6d5cd89 Mon Sep 17 00:00:00 2001 From: Johannes Rudolph Date: Wed, 28 Aug 2024 13:32:09 +0200 Subject: [PATCH] feat: use npm ci to install docs modules npm ci installs dependencies strictly based on package-lock.json and is preferable when just building the docs --- src/commands/foundation/docs.command.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/foundation/docs.command.ts b/src/commands/foundation/docs.command.ts index 5f6134c..ec5c832 100644 --- a/src/commands/foundation/docs.command.ts +++ b/src/commands/foundation/docs.command.ts @@ -123,7 +123,7 @@ async function previewDocumentation( const npm = factory.buildNpm(); - await npm.run(["install"], { cwd: dir }); + await npm.run(["ci"], { cwd: dir }); await npm.run(["run", "docs:dev"], { cwd: dir }); } @@ -136,6 +136,6 @@ async function buildDocumentation( const npm = factory.buildNpm(); - await npm.run(["install"], { cwd: dir }); + await npm.run(["ci"], { cwd: dir }); await npm.run(["run", "docs:build"], { cwd: dir }); }