Skip to content

feat(lib): Add support for flat workspace layout#31

Merged
JFusco merged 1 commit into
mainfrom
fix/scaffold
Jul 3, 2026
Merged

feat(lib): Add support for flat workspace layout#31
JFusco merged 1 commit into
mainfrom
fix/scaffold

Conversation

@JFusco

@JFusco JFusco commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

feat(lib): Add support for flat workspace layout

Summary (AI, bounded)

  • 91b3a64 feat(lib): Add support for flat workspace layout by updating workspace initialization logic and CLI handling to accommodate the new layout structure.

Changes

  • 91b3a64 feat(lib): Add support for flat workspace layout

Files changed

  • M bin/cli.js
  • M lib/init-workspace.js

Diff stats

bin/cli.js            |   9 +++
 lib/init-workspace.js | 168 ++++++++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 171 insertions(+), 6 deletions(-)

Testing

  • Manual smoke test
  • CI green

Risk / Impact

  • Risk level: Low / Medium / High
  • Rollback plan:

Base: main → Head: fix/scaffold

Suggested labels / Review checklist

Suggested labels: feature, lib, cli, workspace

Review checklist:

  • Verify workspace initialization works correctly with flat layout
  • Test CLI commands for compatibility with new workspace structure
  • Confirm no regressions in existing workspace layouts
  • Ensure CI passes all related tests
  • Perform manual smoke test of workspace setup and CLI usage

This commit introduces the ability to initialize a flat workspace layout
for Git repositories. The new functionality allows users to set up a
husky-free configuration at the root of the repository, which simplifies
the management of Git hooks.

The `initWorkspaceFlat` function has been added to handle the setup
process. It configures the `core.hooksPath` to point to the `.husky`
directory, ensuring that hooks are correctly managed without the need
for Husky at the root level. Additionally, it creates necessary hooks
and updates the root `package.json` with a commit delegator and a
prepare script, enhancing the overall usability for projects with nested
workspaces.

This change improves the developer experience by streamlining the
initialization process and reducing dependencies on external tools.
@JFusco JFusco marked this pull request as ready for review July 3, 2026 14:36
@JFusco JFusco merged commit 3376ffc into main Jul 3, 2026
3 checks passed
@JFusco JFusco deleted the fix/scaffold branch July 3, 2026 14:37
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