Skip to content

fix: make @freelanceflow/ui package entrypoint directly importable#3364

Open
biocai wants to merge 1 commit into
SecureBananaLabs:mainfrom
biocai:fix/issue-2781-ui-package-entrypoint
Open

fix: make @freelanceflow/ui package entrypoint directly importable#3364
biocai wants to merge 1 commit into
SecureBananaLabs:mainfrom
biocai:fix/issue-2781-ui-package-entrypoint

Conversation

@biocai
Copy link
Copy Markdown

@biocai biocai commented Jun 1, 2026

Summary

The @freelanceflow/ui workspace package pointed main at raw TypeScript source (src/index.ts), causing import failures for Node/ESM consumers because there was no compiled JavaScript entrypoint.

Changes

  • Added tsconfig.json with react-jsx, declaration, and sourceMap support targeting dist/
  • Updated package.json: maindist/index.js, typesdist/index.d.ts
  • Added build script (tsc) and @types/react as a dev dependency
  • peerDependencies set to react >= 17.0.0

Testing

  • Ran npx tsc successfully — produces dist/index.js, dist/index.d.ts, and component declaration files
  • The compiled dist/index.js re-exports both Button and Card as CommonJS modules

Fixes #2781

Add TypeScript build configuration so the package exposes a compiled
JavaScript entrypoint (dist/index.js) instead of pointing main at
raw TypeScript source (src/index.ts). This allows Node/ESM consumers
to import the package without errors.

- Add tsconfig.json with react-jsx, declaration, and sourceMap support
- Update package.json: main → dist/index.js, types → dist/index.d.ts
- Add build script and @types/react dev dependency

Fixes SecureBananaLabs#2781
github-actions Bot added a commit that referenced this pull request Jun 1, 2026
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.

@freelanceflow/ui package entrypoint should be directly importable

1 participant