Skip to content

Publish an ESM-only package - #27

Merged
BeryJu merged 1 commit into
goauthentik:mainfrom
GirlBossRush:esm-only
Oct 21, 2026
Merged

BeryJu merged 1 commit into
goauthentik:mainfrom
GirlBossRush:esm-only

Conversation

@GirlBossRush

@GirlBossRush GirlBossRush commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

This PR brings the published client in line with the vendored one in the monorepo (goauthentik/authentik#27029). Relative imports get a .js extension, allowing it to compile with nodenext. The old dist/esm output was actually CommonJS and has been removed too.

This PR also picks up the monorepo toolchain:

  • Node from .nvmrc, pnpm 12.9.1 via packageManager
  • engines/devEngines
  • files allow-list so we stop shipping docs/, the templates, and the schema.

Since releases build from each version-YYYY.MM branch's own templates, this only lands for new release lines -- 2026.8.x patches stay CommonJS.

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.
@BeryJu
BeryJu merged commit 4080dc9 into goauthentik:main Oct 21, 2026
2 checks passed
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.

2 participants