Unnecessary files published despite `package.json#files` config

Open Beginner friendly
#993 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
66/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
github-actions, node.js, typescript
Domain
release

Research direction

Start with the files field in package.json and check whether an .npmignore or the CI publish step overrides it. Run npm pack --dry-run locally to list what would be published, then compare with the CI workflow that runs the publish. Done means the tarball no longer contains .vscode or .prettierrc while the intended build output still ships.

Written by the indexing model from the issue text.

Description

.vscode and .prettierrc are being published (source), despite the package's files config:

https://github.com/algolia/react-element-to-jsx-string/blob/f05ae7bf9a9ed3719d4ac1a6380854aeadc32d5b/package.json#L16-L19

I haven't dug into the root cause, but maybe this is a quirk of the way the package is packed in CI.

Dominant language
TypeScript
Stars
519
Forks
88
Avg merge
3h 55m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from algolia/react-element-to-jsx-string

All issues in algolia/react-element-to-jsx-string

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.