Skip to content

Conversation

@pyramation
Copy link
Contributor

No description provided.

yyyyaaa and others added 18 commits January 4, 2026 15:01
- Remove bin/graphql-codegen.js wrapper script that imported from ../dist/cli/index.js
- Point bin directly to ./dist/cli/index.js (tsup already adds shebang via banner config)
- Remove 'bin' from files array since bin folder is deleted

This aligns with the pattern used by pgpm and cnc CLIs which don't have
runtime code reaching into dist/ folder.
- Add publishConfig.directory = 'dist' so npm publishes from dist/ folder
- Update bin to 'cli/index.js' (relative to published root, no dist/ prefix)
- Update main/module/types to be relative to dist/ (no ./dist/ prefix)
- Update all exports paths to be relative to dist/
- Remove files field (not needed with publishConfig.directory)

This matches the exact pattern used by pgpm and cnc CLIs.
@pyramation pyramation merged commit 9effd16 into main Jan 5, 2026
36 checks passed
@pyramation pyramation deleted the feat/fix-codegen branch January 5, 2026 21:49
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.

4 participants