Skip to content

Refactor release workflow and enhance module installation logic - #23

Merged
roble merged 3 commits into
mainfrom
dev
Sep 2, 2026
Merged

roble merged 3 commits into
mainfrom
dev

Conversation

@roble

@roble roble commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

This pull request improves the module installation process to better support "copy-and-own" workflows, ensuring that existing module directories are preserved and not overwritten during installs, especially in production deployments. It also introduces logic to rewrite cross-module import paths after flattening frontend files, and adds comprehensive tests for these behaviors.

Installation logic improvements:

  • The install() method now skips downloading and overwriting module files if the install path already contains files, regardless of the package's dist.type. This ensures that committed module directories in the app repository are preserved during fresh deploys and repeated installs.
  • Added a new helper method hasModuleFiles() to reliably detect non-empty module directories, distinguishing between empty leftovers and genuine installs.

Frontend framework handling:

  • Added rewriteCrossModuleImports() to strip framework subdirectory segments from cross-module import paths in JS/TS/Vue files after flattening, ensuring import paths remain correct regardless of the active frontend framework.

Documentation updates:

  • Updated CLAUDE.md to clarify that the install process skips locally tracked directories and any install path that already contains files, supporting the copy-and-own model.

Testing enhancements:

  • Added new tests to verify that installs do not overwrite existing module directories and that empty directories do not prevent downloads. Also updated existing tests to cover these scenarios. [1] [2]

Workflow simplification:

  • Removed unused workflow inputs related to versioning from .github/workflows/release.yml, simplifying CI configuration.

@coderabbitai

coderabbitai Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Review Change Stack

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 3f9bfac5-41d0-41d4-88b3-183d21519f21

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@roble
roble merged commit 55ee6d8 into main Sep 2, 2026
3 checks passed
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.

1 participant