Skip to content

Commit

Permalink
feat: use npm ci to install docs modules
Browse files Browse the repository at this point in the history
npm ci installs dependencies strictly based on package-lock.json
and is preferable when just building the docs
  • Loading branch information
JohannesRudolph committed Aug 28, 2024
1 parent 3e074ad commit 5f8a875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/foundation/docs.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}

Expand All @@ -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 });
}

0 comments on commit 5f8a875

Please sign in to comment.