Skip to content

fix: packaging hygiene — drop unused dep, add peers, exports, files whitelist - #10

Open
kuraydev wants to merge 1 commit into
masterfrom
fix/packaging-hygiene
Open

kuraydev wants to merge 1 commit into
masterfrom
fix/packaging-hygiene

Conversation

@kuraydev

@kuraydev kuraydev commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Packaging-hygiene pass mirroring react-native-bouncy-checkbox #822. package.json only, no source changes.

  • Removed unused dependency: react-use-state-with-callback was declared but never imported — the code uses its own local copy at lib/helpers/useStateWithCallback.ts. @freakycoder/react-native-bounceable is genuinely imported by lib/CounterInput.tsx and stays as a dependency.
  • peerDependencies: none were declared — added react >=17.0.0, react-native >=0.64.0.
  • types + exports map: added, pointing at the published build/dist output (CounterInput.js / .d.ts), types condition first, ./package.json export included.
  • files whitelist: the published 2.0.2 tarball ships .idea/, .husky/, .github/, TypeScript sources (lib/), tsconfig.json, tsconfig.tsbuildinfo, lint dotfiles — now trimmed to build/dist. The build/dist/local-assets/ PNGs the component require()s at runtime are inside the whitelist and still ship.
  • Version: 2.0.2 → 2.0.3.

LICENSE file present ✓

Publish as 2.0.3 after the npm account migration.

…files whitelist

react-use-state-with-callback was declared as a dependency but never
imported — the code uses its own lib/helpers/useStateWithCallback.ts
copy — so it is removed. @freakycoder/react-native-bounceable IS
genuinely imported by lib/CounterInput.tsx and stays. Peers on
react/react-native added, types + exports point at the published
build/dist output with the types condition first, and a files
whitelist trims the tarball to build/dist while keeping the
local-assets images the component require()s at runtime. Version
bumped to 2.0.3; no source changes.
@kuraydev
kuraydev force-pushed the fix/packaging-hygiene branch from 877cd82 to 6246ebd Compare August 16, 2026 18:37
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