Repository navigation
Publish an ESM-only package - #27
Merged
Merged
Conversation
Generate relative imports with a `.js` extension and compile with `nodenext`, matching the vendored client in the authentik monorepo. The package template now declares `"type": "module"` and ships a single `dist/` build, replacing the CommonJS build and the mislabeled `dist/esm` output. Also adopt the monorepo's toolchain: Node from `.nvmrc`, pnpm via `packageManager`, matching `engines`/`devEngines`, and a `files` allow-list so only `dist/` and `src/` are published.
GirlBossRush
marked this pull request as ready for review
October 19, 2026 18:17
BeryJu
approved these changes
Oct 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR brings the published client in line with the vendored one in the monorepo (goauthentik/authentik#27029). Relative imports get a
.jsextension, allowing it to compile withnodenext. The olddist/esmoutput was actually CommonJS and has been removed too.This PR also picks up the monorepo toolchain:
.nvmrc, pnpm 12.9.1 viapackageManagerengines/devEnginesfilesallow-list so we stop shippingdocs/, the templates, and the schema.Since releases build from each
version-YYYY.MMbranch's own templates, this only lands for new release lines -- 2026.8.x patches stay CommonJS.