Skip to content

Conversation

@mridang
Copy link
Collaborator

@mridang mridang commented Jan 15, 2026

Description

Added main, types, and exports pointing to dist/index so consumers can import from the package root. Added a prepare script so dist is built during git installs.

Related Issue

None

Motivation and Context

GitHub installs were missing dist, causing ERR_MODULE_NOT_FOUND when importing @zitadel/zitadel-node/dist/index.js. Root-level imports also failed because no entrypoint was declared.

How Has This Been Tested?

Ran npm run build and then inn a fresh temp project using Node 20, we ran.

npm init -y
npm_config_cache="$PWD/.npm-cache" 
npm install ../

Once linked, we validated that the issue was resolved since we are now able to use proper ESM imports.

import Zitadel, { ApiException } from '@zitadel/zitadel-node';

Documentation:

The Readme is up to date.

Checklist:

  • I have updated the documentation accordingly.
  • I have assigned the correct milestone or created one if non-existent.
  • I have correctly labeled this pull request.
  • I have linked the corresponding issue in this description.
  • I have requested a review from at least 2 reviewers
  • I have checked the base branch of this pull request
  • I have checked my code for any possible security vulnerabilities

@mridang mridang self-assigned this Jan 15, 2026
@mridang mridang added the bug Something isn't working label Jan 15, 2026
@mridang
Copy link
Collaborator Author

mridang commented Jan 15, 2026

@matiasracedo I'll get this out soon. FYI.

@mridang mridang force-pushed the fix/broken-library-packaging branch from 78c4bb4 to 2211a3d Compare January 15, 2026 23:55
@mridang mridang merged commit f67dcd6 into beta Jan 16, 2026
13 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 16, 2026
# [4.1.0-beta.6](v4.1.0-beta.5...v4.1.0-beta.6) (2026-01-16)

### Bug Fixes

* add correct package exports and build for git installs ([#102](#102)) ([f67dcd6](f67dcd6))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants