Skip to content

website/docs: mention pnpm alongside Node.js in developer setup docs - #24439

Merged
GirlBossRush merged 5 commits into
mainfrom
website/docs-pnpm-prerequisites
Jul 29, 2026
Merged

GirlBossRush merged 5 commits into
mainfrom
website/docs-pnpm-prerequisites

Conversation

@GirlBossRush

@GirlBossRush GirlBossRush commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Details

What does this PR change?

Adds pnpm to the prerequisites of the developer setup docs wherever Node.js was already listed, and points Node.js installation at nvm:

  • setup/full-dev-environment.mdx — prerequisite bullets, plus a new Installing Node.js and pnpm subsection; node@24 drops out of the macOS Homebrew list
  • setup/frontend-dev-environment.mdx — prerequisite bullets and install steps
  • docs/writing-documentation.md — prerequisite bullets and install steps
  • translation.md — prerequisites still asked for Node 16.x; refreshed to Node 24 + pnpm, and npm i → pnpm install

pnpm links to the pnpm installation guide rather than naming a per-platform package, with corepack enable pnpm given as the alternative that tracks the version pinned in package.json.

In writing-documentation.md this collapses the platform tabs — with nvm the macOS and Linux steps are identical, so the tabs held two copies of the same instructions. The Windows note becomes an admonition and gains a pointer to nvm-windows, which is a separate project rather than a port. The tabs in full-dev-environment.mdx stay, since Homebrew and apt genuinely differ there.

Also rewrites the shared install-scripts admonition, which still described the pre-pnpm setup — it pointed at .npmrc's ignore-scripts and told contributors to recover with npm rebuild --foreground-scripts. Neither applies anymore. It now describes pnpm's onlyBuiltDependencies / allowBuilds lists in each workspace's pnpm-workspace.yaml. The partial is renamed _npm-install-scripts-admonition.mdx → _install-scripts-admonition.mdx; it's underscore-prefixed, so it has no route and needs no _redirects entry.

Why is this change needed?

Every JavaScript workspace in the repo installs with pnpm, and make node-preinstall hard-fails when the active version doesn't satisfy engines.pnpm. The setup docs only listed Node.js, leaving new contributors to infer the package manager from the Makefile — and the install-scripts admonition actively pointed them at a mechanism that no longer exists.

How was this tested?

  • make lint-spellcheck — clean across 4265 files (pnpm, corepack, and nvm were already covered by a bundled dictionary, so no new entries were needed)
  • pnpm --dir website run prettier — no reformatting
  • pnpm --dir website run build — succeeds; verified the rendered HTML of all four pages contains the new pnpm and nvm content, and that no stale brew install node@24 remains

Linked issues

Follow-up

Adding an .nvmrc so nvm use picks up the version without an argument is deliberately left to a separate PR.


Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings July 28, 2026 16:59
@GirlBossRush
GirlBossRush requested a review from a team as a code owner July 28, 2026 16:59
@netlify

netlify Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 3173722
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a692b0d47112400081e21f2
😎 Deploy Preview https://deploy-preview-24439--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 7ef578c
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a692ee17377bf000876cd0c
😎 Deploy Preview https://deploy-preview-24439--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 7ef578c
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a692ee1416d750008618204
😎 Deploy Preview https://deploy-preview-24439--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates authentik’s developer documentation to explicitly require pnpm alongside Node.js and to refresh the “install scripts” guidance to match the repository’s pnpm-based workflow.

Changes:

  • Adds pnpm (with corepack enable pnpm guidance) as a prerequisite across multiple developer-doc pages.
  • Updates translation setup instructions from npm i to pnpm install, and refreshes Node requirement to 24+.
  • Replaces the legacy npm install-scripts admonition with a pnpm-focused version and renames the shared partial.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
website/docs/developer-docs/translation.md Updates prerequisites and install command for local translation work to reflect Node 24+ and pnpm usage.
website/docs/developer-docs/setup/full-dev-environment.mdx Adds pnpm to prerequisites and Homebrew install list; switches to the renamed install-scripts admonition partial.
website/docs/developer-docs/setup/frontend-dev-environment.mdx Adds pnpm prerequisite and switches to the renamed install-scripts admonition partial.
website/docs/developer-docs/setup/_npm-install-scripts-admonition.mdx Removes the outdated npm-specific install-scripts guidance.
website/docs/developer-docs/setup/_install-scripts-admonition.mdx Introduces new pnpm-focused install-scripts guidance (allow-lists, rebuild workflow).
website/docs/developer-docs/docs/writing-documentation.md Updates docs tooling references from npm to pnpm, and adds pnpm to prerequisites/platform install guidance.
Comments suppressed due to low confidence (1)

website/docs/developer-docs/setup/_install-scripts-admonition.mdx:10

  • The rebuild command should be run in the same workspace where the dependency is installed (repo root vs web/ vs website/). As written, pnpm rebuild esbuild from the repo root won’t affect a failing install in the web workspace (which uses pnpm --dir web install).
If a build fails because a package needs its install script (commonly `esbuild`, `chromedriver`, `tree-sitter`, or `tree-sitter-json`), add it to both lists in the relevant `pnpm-workspace.yaml`, then rebuild just that package:

```shell
pnpm rebuild esbuild
</details>



---

💡 <a href="/goauthentik/authentik/new/main?filename=.github/instructions/*.instructions.md" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Add Copilot custom instructions</a> for smarter, more guided reviews. <a href="https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Learn how to get started</a>.

Copilot AI review requested due to automatic review settings July 28, 2026 17:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

website/docs/developer-docs/setup/_install-scripts-admonition.mdx:10

  • The example rebuild command is ambiguous in the context of this repo: installs are typically run with pnpm --dir web … / pnpm --dir website …, and each workspace has its own pnpm-workspace.yaml. Running pnpm rebuild esbuild from the repo root may not rebuild the dependency for the workspace whose allow-list you just edited. Consider showing --dir (or explicitly instructing to run the command from the relevant workspace directory) so the recovery step works reliably.
If a build fails because a package needs its install script (commonly `esbuild`, `chromedriver`, `tree-sitter`, or `tree-sitter-json`), add it to both lists in the relevant `pnpm-workspace.yaml`, then rebuild just that package:

```shell
pnpm rebuild esbuild
</details>

@GirlBossRush GirlBossRush mentioned this pull request Jul 28, 2026
Copilot AI review requested due to automatic review settings July 28, 2026 17:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (2)

website/docs/developer-docs/setup/full-dev-environment.mdx:14

  • The import path escapes the underscore ("./_install-scripts-admonition.mdx"). In a JS string this is an unnecessary escape and can trigger lint/build warnings; the file name can be referenced directly.
import InstallScriptsAdmonition from "./\_install-scripts-admonition.mdx";

website/docs/developer-docs/setup/frontend-dev-environment.mdx:11

  • The import path escapes the underscore ("./_install-scripts-admonition.mdx"). This escape is unnecessary in a JS string and can cause lint/build warnings; use the literal path instead.
import InstallScriptsAdmonition from "./\_install-scripts-admonition.mdx";

@codecov

codecov Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.62%. Comparing base (b902328) to head (7ef578c).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #24439   +/-   ##
=======================================
  Coverage   93.62%   93.62%           
=======================================
  Files        1089     1089           
  Lines       66264    66264           
  Branches      424      424           
=======================================
+ Hits        62037    62042    +5     
+ Misses       4227     4222    -5     
Flag Coverage Δ
conformance 35.29% <ø> (+0.14%) ⬆️
e2e 40.15% <ø> (+<0.01%) ⬆️
integration 31.89% <ø> (+<0.01%) ⬆️
rust 0.00% <ø> (ø)
unit 92.84% <ø> (+<0.01%) ⬆️
unit-migrate 92.87% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@github-actions

github-actions Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-7ef578c34c35e49aedf2dded5a316b5052e2f7ec
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-7ef578c34c35e49aedf2dded5a316b5052e2f7ec

Afterwards, run the upgrade commands from the latest release notes.

Copilot AI review requested due to automatic review settings July 28, 2026 22:16
@GirlBossRush
GirlBossRush requested review from a team as code owners July 28, 2026 22:16
GirlBossRush and others added 3 commits July 28, 2026 23:18
Every JavaScript workspace in the repo is installed with pnpm, but the
setup docs only ever listed Node.js as a prerequisite, leaving new
contributors to infer the package manager from the Makefile. Add pnpm to
the prerequisites of the full, frontend, docs, and translation setup
guides, noting that it can be installed directly or enabled through
corepack using the version pinned in package.json.

The shared install-scripts admonition still described the pre-pnpm
setup: it pointed at .npmrc's ignore-scripts and told contributors to
recover with `npm rebuild --foreground-scripts`. Neither applies
anymore. Rewrite it around pnpm's onlyBuiltDependencies and allowBuilds
lists in each workspace's pnpm-workspace.yaml, and rename the partial to
drop the npm prefix.

Also refresh the translation guide's prerequisites, which still asked
for Node 16.

Co-authored-by: Playpen Agent <[email protected]>
nvm is one of the version managers recommended on the Node.js download
page, and it scopes the toolchain to the shell instead of installing it
system-wide, so contributors switching between projects don't have to
reinstall. Point the setup guides at it and drop `node@24` from the
macOS Homebrew list.

pnpm now consistently links to its own installation guide rather than
naming a per-platform package, with `corepack enable pnpm` kept as the
alternative that tracks the version pinned in package.json.

In writing-documentation.md this collapses the platform tabs: with nvm
the macOS and Linux steps are identical, so the tabs became two copies
of the same instructions. The Windows note moves into an admonition and
gains a pointer to nvm-windows, which is a separate project rather than
a port.

Co-authored-by: Playpen Agent <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Signed-off-by: Teffen Ellis <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (5)

.nvmrc:1

  • The PR description says adding an .nvmrc is deliberately left to a follow-up PR, but this PR adds .nvmrc (and updates CODEOWNERS for it). Either remove .nvmrc from this PR, or update the PR description/follow-up notes so they match the actual change set.
24

website/docs/developer-docs/setup/full-dev-environment.mdx:122

  • Now that the repo includes a top-level .nvmrc, hard-coding the Node major version in these commands duplicates the source of truth and can drift over time. Prefer using .nvmrc so future Node bumps only require updating one file.
nvm install 24
nvm use 24

website/docs/developer-docs/setup/frontend-dev-environment.mdx:27

  • Now that the repo includes a top-level .nvmrc, hard-coding the Node major version in these commands duplicates the source of truth and can drift over time. Prefer using .nvmrc so future Node bumps only require updating one file.
nvm install 24
nvm use 24

website/docs/developer-docs/docs/writing-documentation.md:46

  • Now that the repo includes a top-level .nvmrc, hard-coding the Node major version in these commands duplicates the source of truth and can drift over time. Prefer using .nvmrc so future Node bumps only require updating one file.
nvm install 24
nvm use 24

website/docs/developer-docs/translation.md:22

  • This bullet links to the pnpm installation guide twice (the bullet link and again inside the sentence). Consider removing the second link to avoid repetition.
- [pnpm](https://pnpm.io/installation) (11.9 or later), installed by following the [pnpm installation guide](https://pnpm.io/installation) or by running `corepack enable pnpm`

Copilot AI review requested due to automatic review settings July 28, 2026 22:19
@GirlBossRush
GirlBossRush force-pushed the website/docs-pnpm-prerequisites branch from 2b045b7 to 3173722 Compare July 28, 2026 22:19
@GirlBossRush
GirlBossRush removed the request for review from a team July 28, 2026 22:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (6)

.nvmrc:1

  • The PR description says adding an .nvmrc is deliberately left to a follow-up PR, but this change set adds .nvmrc. Please either update the PR description/follow-up note to match, or move this file to the intended follow-up to avoid confusing contributors.
24

website/docs/developer-docs/setup/full-dev-environment.mdx:122

  • Now that .nvmrc exists, hard-coding the Node major version here duplicates the source of truth and can drift. Using nvm install/nvm use without an argument will read .nvmrc when run from the repo root.
nvm install 24
nvm use 24

website/docs/developer-docs/setup/frontend-dev-environment.mdx:27

  • Now that .nvmrc exists, hard-coding the Node major version here duplicates the source of truth and can drift. Using nvm install/nvm use without an argument will read .nvmrc when run from the repo root.
nvm install 24
nvm use 24

website/docs/developer-docs/docs/writing-documentation.md:46

  • Now that .nvmrc exists, hard-coding the Node major version here duplicates the source of truth and can drift. Using nvm install/nvm use without an argument will read .nvmrc when run from the repo root.
nvm install 24
nvm use 24

website/docs/developer-docs/setup/frontend-dev-environment.mdx:67

  • These commands don't install the web/ workspace dependencies: make node-install only installs the repo-root pnpm workspace, and make web-watch just runs pnpm --dir web run watch (no install). Add make web-install so the instructions actually install frontend deps before starting the watcher.
    make node-install
    make web-watch

website/docs/developer-docs/setup/_install-scripts-admonition.mdx:6

  • This admonition is included in multiple pages, but this repo has multiple pnpm workspace roots (./, web/, website/). To ensure the rebuild affects the right lockfile/node_modules, it should clarify that pnpm rebuild ... needs to be run from the relevant workspace directory (or invoked with --dir).
If a build fails because a package needs its install script (commonly `esbuild`, `chromedriver`, `tree-sitter`, or `tree-sitter-json`), add it to both lists in the relevant `pnpm-workspace.yaml`, then rebuild just that package:

Copilot AI review requested due to automatic review settings July 28, 2026 22:27
@GirlBossRush
GirlBossRush force-pushed the website/docs-pnpm-prerequisites branch from 3173722 to 97f2705 Compare July 28, 2026 22:27
@GirlBossRush
GirlBossRush removed request for a team July 28, 2026 22:28
@GirlBossRush
GirlBossRush enabled auto-merge (squash) July 28, 2026 22:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

website/docs/developer-docs/translation.md:22

  • This bullet links to the pnpm installation page twice (the pnpm name link and the "pnpm installation guide" link point to the same URL). Consider keeping a single link to avoid redundancy.
- [pnpm](https://pnpm.io/installation) (11.9 or later), installed by following the [pnpm installation guide](https://pnpm.io/installation) or by running `corepack enable pnpm`

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Signed-off-by: Teffen Ellis <[email protected]>
Copilot AI review requested due to automatic review settings July 28, 2026 22:36
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Signed-off-by: Teffen Ellis <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

@GirlBossRush
GirlBossRush merged commit 5032d2b into main Jul 29, 2026
261 of 268 checks passed
@GirlBossRush
GirlBossRush deleted the website/docs-pnpm-prerequisites branch July 29, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants