Skip to content

Trim code and stop tracking generated data - #6

Merged
ikarthikng merged 4 commits into
masterfrom
saving-code-lines
Sep 26, 2026
Merged

ikarthikng merged 4 commits into
masterfrom
saving-code-lines

Conversation

@ikarthikng

Copy link
Copy Markdown
Owner

Changes

  • index.ts: findState/City/County/Coordinates now derive from find(); findByCity/County share one filterBy helper; removed redundant regex/normalize step (~100 lines fewer)
  • rollup.config.js: ESM + CJS builds merged; removed unused json plugin and default options
  • package.json: removed check-data, postinstall, build:types, and @rollup/plugin-json; prebuild now always runs process-data
  • Untracked generated data/zip-data.js / .d.ts (gitignored, regenerated by prebuild via npm ci → prepare)
  • data/US.txt: zip 89044 moved from Lincoln to Clark County

Verification

  • npm run build succeeds; 28/28 tests pass locally

To check

  • CI: relies on npm ci running prepare to generate zip-data.js before npm test
  • dist/index.d.ts is still emitted by the rollup typescript plugin after removing build:types

🤖 Generated with Claude Code

ikarthikng and others added 4 commits September 25, 2026 20:08
…rom git

- index.ts: derive findState/City/County/Coordinates from find(); share filterBy
- rollup: merge ESM+CJS configs, drop json plugin and default options
- package.json: remove check-data, postinstall, build:types scripts
- untrack generated data/zip-data.{js,d.ts}; regenerated in prebuild
- data/US.txt: move zip 89044 from Lincoln to Clark county

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…rt missing zip-data.js

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ikarthikng
ikarthikng merged commit 7ef40f9 into master Sep 26, 2026
2 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.

1 participant