Skip to content

PROD-1033: expand .npmignore to match .gitignore hygiene#175

Merged
5PK merged 1 commit into
mainfrom
PROD-1033-npmignore-hygiene
Jul 8, 2026
Merged

PROD-1033: expand .npmignore to match .gitignore hygiene#175
5PK merged 1 commit into
mainfrom
PROD-1033-npmignore-hygiene

Conversation

@5PK

@5PK 5PK commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

The published @agility/cli npm package was shipping a lot of non-runtime files. Because .npmignore takes precedence over .gitignore when present, the previous thin .npmignore (which only excluded /src/, /.agility-files/, /agility-files/) meant files excluded from git still made it into the tarball.

Before this change, npm pack --dry-run included: .github/, .claude/, .vscode/, .prettierrc, .prettierignore, eslint.config.js, jest.config.js, tsconfig.json, tsconfig.test.json, changelog.md, and structure.txt.

This PR expands .npmignore to cover all non-runtime files (dev configs, env files, test artifacts/config, TypeScript/build config, lint/format config, CI/repo tooling, and OS/editor junk), organized to mirror .gitignore hygiene.

Verification

npm pack --dry-run (after a clean npm run build) now ships only:

  • dist/ (compiled output + .d.ts type definitions — what main/bin point at)
  • README.md
  • license.txt
  • package.json

Acceptance criteria

  • .npmignore covers all non-runtime files
  • npm pack --dry-run output reviewed — only runtime files ship

Ticket: https://agilitycms.atlassian.net/browse/PROD-1033

🤖 Generated with Claude Code

The published @agility/cli package was shipping non-runtime files
(.github/, .claude/, .vscode/, tsconfig*.json, changelog.md,
structure.txt, eslint/jest/prettier configs) because .npmignore only
excluded three paths and takes precedence over .gitignore.

Expand .npmignore to exclude all non-runtime files. Verified with
`npm pack --dry-run`: the tarball now ships only dist/, README.md,
license.txt, and package.json.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@5PK 5PK merged commit e959ffd into main Jul 8, 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.

2 participants