Skip to content

fix: stop publishing tests and tooling config in the packages - #123

Merged
felipesauer merged 2 commits into
mainfrom
fix/package-contents
Aug 27, 2026
Merged

fix: stop publishing tests and tooling config in the packages#123
felipesauer merged 2 commits into
mainfrom
fix/package-contents

Conversation

@felipesauer

Copy link
Copy Markdown
Owner

Two packaging defects, and the release that carries them also delivers the
documentation fixes from #119 — which are sitting on main but have not
reached npm or Packagist, because every commit since the last release was
chore/ci/docs/style and none of those trigger release-please.

npm was shipping the test suite

packages/js/package.json had no files field, so the tarball carried
everything the split repo has:

tests/…                       60+ files, up to 53 kB each
eslint.config.js  stryker.config.json  tsconfig.json  vitest.config.ts
.gitattributes    .gitkeep

Now restricted to dist, src and CHANGELOG.md — npm adds README, LICENSE
and package.json on its own. Verified every path in exports still resolves.

The Composer archive carried tooling too

export-ignore already covered phpstan, php-cs-fixer, phpunit and tests, but
missed infection.json5, scripts/ and composer.lock. A library's lock file
is dead weight — Composer ignores it for dependencies. The archive is now:

CHANGELOG.md  LICENSE  README.md  composer.json  src/

What the resulting release delivers

Beyond the two fixes above, cutting 0.2.2 finally publishes the corrected
LICENSE link in the package READMEs and the PHPStan badge from #119.

npm test → 2116 passed

With no `files` field, npm published everything the split repo carries: the
whole tests/ tree (60-odd files, some of them 50 kB), eslint.config.js,
stryker.config.json, tsconfig.json, vitest.config.ts and .gitattributes.
Consumers were downloading the test suite along with the library.

Restricting to dist, src and CHANGELOG.md leaves exactly what belongs there —
npm always adds README, LICENSE and package.json on its own. Every path in
`exports` still resolves.
The export-ignore list already covered phpstan, php-cs-fixer, phpunit and
tests, but missed infection.json5, scripts/ and composer.lock — none of which
mean anything to someone requiring this package. A library's lock file in
particular is dead weight: Composer ignores it for dependencies.
@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@felipesauer
felipesauer merged commit b5a0313 into main Aug 27, 2026
18 checks passed
@felipesauer
felipesauer deleted the fix/package-contents branch August 27, 2026 14:11
felipesauer pushed a commit that referenced this pull request Aug 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.2.2](php-v0.2.1...php-v0.2.2)
(2026-08-27)


### Bug Fixes

* stop publishing tests and tooling config in the packages
([#123](#123))
([b5a0313](b5a0313))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
felipesauer pushed a commit to felipesauer/safeaccess-inline-php that referenced this pull request Aug 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.2.2](felipesauer/safeaccess-inline@php-v0.2.1...php-v0.2.2)
(2026-08-27)


### Bug Fixes

* stop publishing tests and tooling config in the packages
([#123](felipesauer/safeaccess-inline#123))
([b5a0313](felipesauer/safeaccess-inline@b5a0313))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
felipesauer pushed a commit that referenced this pull request Aug 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.2.2](js-v0.2.1...js-v0.2.2)
(2026-08-27)


### Bug Fixes

* stop publishing tests and tooling config in the packages
([#123](#123))
([b5a0313](b5a0313))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
felipesauer pushed a commit to felipesauer/safeaccess-inline-js that referenced this pull request Aug 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.2.2](felipesauer/safeaccess-inline@js-v0.2.1...js-v0.2.2)
(2026-08-27)


### Bug Fixes

* stop publishing tests and tooling config in the packages
([#123](felipesauer/safeaccess-inline#123))
([b5a0313](felipesauer/safeaccess-inline@b5a0313))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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