Skip to content

chore: copy skills/ into packages/cli at prepack time#34

Merged
dastratakos merged 2 commits into
mainfrom
dastratakos/prepack-copy-skills
May 5, 2026
Merged

chore: copy skills/ into packages/cli at prepack time#34
dastratakos merged 2 commits into
mainfrom
dastratakos/prepack-copy-skills

Conversation

@dastratakos
Copy link
Copy Markdown
Contributor

@dastratakos dastratakos commented May 5, 2026

Summary

Extend the prepack script to copy the root skills/ directory into packages/cli/skills/ so it ships in the published npm tarball alongside the existing README copy.

Changes

  • Extended prepack script in packages/cli/package.json to also run fs.cpSync('../../skills', './skills', {recursive: true})
  • Added packages/cli/skills to .gitignore since it's generated at publish time

Testing

  • Ran the prepack script manually and verified skills/ is copied correctly
  • pnpm typecheck, pnpm lint, and pnpm test all pass

Open in Stage

Extend the existing prepack script to also copy the root skills/
directory into packages/cli/skills/ so it ships in the published
tarball. Add packages/cli/skills to .gitignore since it's generated.
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the CLI package's build configuration to include the 'skills' directory during the prepack phase and adds the local directory to .gitignore. A review comment suggests enhancing the 'prepack' script to remove the destination directory before copying, ensuring that stale files are not included in the final package.

Comment thread packages/cli/package.json Outdated
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6d8ffa1. Configure here.

Comment thread packages/cli/package.json Outdated
Address PR review feedback: fs.cpSync merges into the destination
without removing deleted files. Add fs.rmSync before copying to
ensure a clean, faithful copy every time.
@dastratakos dastratakos marked this pull request as ready for review May 5, 2026 05:28
@dastratakos dastratakos merged commit c320811 into main May 5, 2026
5 checks passed
@dastratakos dastratakos deleted the dastratakos/prepack-copy-skills branch May 5, 2026 05:28
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