Repository navigation
website/docs: mention pnpm alongside Node.js in developer setup docs - #24439
Conversation
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
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 pnpmguidance) as a prerequisite across multiple developer-doc pages. - Updates translation setup instructions from
npm itopnpm 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/vswebsite/). As written,pnpm rebuild esbuildfrom the repo root won’t affect a failing install in thewebworkspace (which usespnpm --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>.
There was a problem hiding this comment.
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 ownpnpm-workspace.yaml. Runningpnpm rebuild esbuildfrom 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>
There was a problem hiding this comment.
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 Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your 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)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your 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-7ef578c34c35e49aedf2dded5a316b5052e2f7ecAfterwards, run the upgrade commands from the latest release notes. |
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]>
There was a problem hiding this comment.
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
.nvmrcis deliberately left to a follow-up PR, but this PR adds.nvmrc(and updates CODEOWNERS for it). Either remove.nvmrcfrom 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.nvmrcso 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.nvmrcso 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.nvmrcso 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`
2b045b7 to
3173722
Compare
There was a problem hiding this comment.
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
.nvmrcis 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
.nvmrcexists, hard-coding the Node major version here duplicates the source of truth and can drift. Usingnvm install/nvm usewithout an argument will read.nvmrcwhen run from the repo root.
nvm install 24
nvm use 24
website/docs/developer-docs/setup/frontend-dev-environment.mdx:27
- Now that
.nvmrcexists, hard-coding the Node major version here duplicates the source of truth and can drift. Usingnvm install/nvm usewithout an argument will read.nvmrcwhen run from the repo root.
nvm install 24
nvm use 24
website/docs/developer-docs/docs/writing-documentation.md:46
- Now that
.nvmrcexists, hard-coding the Node major version here duplicates the source of truth and can drift. Usingnvm install/nvm usewithout an argument will read.nvmrcwhen 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-installonly installs the repo-root pnpm workspace, andmake web-watchjust runspnpm --dir web run watch(no install). Addmake web-installso 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 thatpnpm 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:
3173722 to
97f2705
Compare
There was a problem hiding this comment.
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]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]> Signed-off-by: Teffen Ellis <[email protected]>
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@24drops out of the macOS Homebrew listsetup/frontend-dev-environment.mdx— prerequisite bullets and install stepsdocs/writing-documentation.md— prerequisite bullets and install stepstranslation.md— prerequisites still asked for Node 16.x; refreshed to Node 24 + pnpm, andnpm i→pnpm installpnpm links to the pnpm installation guide rather than naming a per-platform package, with
corepack enable pnpmgiven as the alternative that tracks the version pinned inpackage.json.In
writing-documentation.mdthis 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 infull-dev-environment.mdxstay, 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'signore-scriptsand told contributors to recover withnpm rebuild --foreground-scripts. Neither applies anymore. It now describes pnpm'sonlyBuiltDependencies/allowBuildslists in each workspace'spnpm-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_redirectsentry.Why is this change needed?
Every JavaScript workspace in the repo installs with pnpm, and
make node-preinstallhard-fails when the active version doesn't satisfyengines.pnpm. The setup docs only listed Node.js, leaving new contributors to infer the package manager from theMakefile— 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, andnvmwere already covered by a bundled dictionary, so no new entries were needed)pnpm --dir website run prettier— no reformattingpnpm --dir website run build— succeeds; verified the rendered HTML of all four pages contains the new pnpm and nvm content, and that no stalebrew install node@24remainsLinked issues
Follow-up
Adding an
.nvmrcsonvm usepicks up the version without an argument is deliberately left to a separate PR.Checklist
make all)make docs)🤖 Generated with Claude Code