Outdated fixture path in package-recommendations workflow and check script
Describe the bug
In commit bcedad0 (standardize backend organization), server/middlewares/similar-packages/fixtures.ts was renamed to server/middlewares/similar-packages/similar-packages.fixtures.ts.
However, the file path references in .github were not updated:
In
.github/workflows/package-recommendations.yml:9:paths: - server/middlewares/similar-packages/fixtures.tsBecause the file was renamed, this workflow never triggers on pull requests that modify curated package recommendations.
In
.github/scripts/check-recommendation-changes.mjs:13:const fixturePath = 'server/middlewares/similar-packages/fixtures.ts'When
check-curated-dataexecutes or when the script is run locally against a base SHA, it fails immediately with:ENOENT: no such file or directory, open 'server/middlewares/similar-packages/fixtures.ts'
To Reproduce
Run the quality check script locally against a previous commit:
node .github/scripts/check-recommendation-changes.mjs HEAD~1Output:
Error: ENOENT: no such file or directory, open 'server/middlewares/similar-packages/fixtures.ts'Expected behavior
.github/workflows/package-recommendations.ymlshould trackserver/middlewares/similar-packages/similar-packages.fixtures.ts..github/scripts/check-recommendation-changes.mjsshould read fromserver/middlewares/similar-packages/similar-packages.fixtures.ts.
Proposed fix
Update both paths to server/middlewares/similar-packages/similar-packages.fixtures.ts.
Happy to open a quick PR fixing both lines if helpful!
Source: pastelsky/bundlephobia