Skip to content

fix: correct invalid main entry and include compiled lib output#79

Merged
julian-bridgefy merged 1 commit into
mainfrom
pre_release/v1.2.2
Mar 30, 2026
Merged

fix: correct invalid main entry and include compiled lib output#79
julian-bridgefy merged 1 commit into
mainfrom
pre_release/v1.2.2

Conversation

@julian-bridgefy
Copy link
Copy Markdown
Contributor

The package.json main field was pointing to a non-existent file: lib/module/index.js, causing Metro (React Native) to fail resolving the package.

Fix:

  • Updated main to lib/commonjs/index.js
  • Ensured lib/ is generated before publish
  • Added/validated build step for compiled output

This resolves module resolution issues in Expo/Metro environments, especially when using pnpm.

Closes #78

The package.json `main` field was pointing to a non-existent file:
`lib/module/index.js`, causing Metro (React Native) to fail resolving
the package.

Fix:
- Updated `main` to `lib/commonjs/index.js`
- Ensured `lib/` is generated before publish
- Added/validated build step for compiled output

This resolves module resolution issues in Expo/Metro environments,
especially when using pnpm.

Closes #78
@julian-bridgefy julian-bridgefy merged commit 7d80bee into main Mar 30, 2026
2 of 4 checks passed
@julian-bridgefy julian-bridgefy deleted the pre_release/v1.2.2 branch March 30, 2026 18:27
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