Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Add prepare-release-publish executor for cleaner npm packages#23

Merged
phuctm97 merged 1 commit intomainfrom
update
Jul 8, 2025
Merged

Add prepare-release-publish executor for cleaner npm packages#23
phuctm97 merged 1 commit intomainfrom
update

Conversation

@phuctm97
Copy link
Copy Markdown
Owner

@phuctm97 phuctm97 commented Jul 8, 2025

Summary

  • Adds a new prepare-release-publish Nx executor that cleans package.json files before npm publishing
  • Integrates the executor into the GitHub publish workflow
  • Fixes import paths in create-modelfetch templates

Details

The new executor removes development-only content from package.json files to ensure cleaner production packages:

  • Removes scripts and devDependencies sections
  • Removes development condition from export entries
  • Automatically runs on all non-private packages during the publish process

This improves the quality of published packages by excluding unnecessary development dependencies and scripts that end users don't need.

Test plan

  • Verify the executor runs successfully in the publish workflow
  • Check that published packages have cleaned package.json files
  • Ensure create-modelfetch templates work correctly with fixed import paths

🤖 Generated with Claude Code

…re publishing

This improves the npm publishing process by removing development-only content from published packages. The executor removes scripts, devDependencies, and development conditions from exports to ensure cleaner production packages.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
modelfetch-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 2:29am

@phuctm97 phuctm97 merged commit c6fe306 into main Jul 8, 2025
2 checks passed
@phuctm97 phuctm97 deleted the update branch July 8, 2025 02:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant