Skip to content

chore: repo hygiene (.gitignore + untrack node_modules + dedupe pg-hstore)#33

Open
CryptoJones wants to merge 1 commit into
masterfrom
fix/repo-hygiene
Open

chore: repo hygiene (.gitignore + untrack node_modules + dedupe pg-hstore)#33
CryptoJones wants to merge 1 commit into
masterfrom
fix/repo-hygiene

Conversation

@CryptoJones
Copy link
Copy Markdown
Owner

@CryptoJones CryptoJones commented May 15, 2026

Closes #27, closes #28.

Summary

One-time cleanup. Three small fixes, zero runtime behavior change.

  1. .gitignore added covering node_modules/, *.log, .env, .env.* (with a !.env.example carve-out), dist/, coverage/, common editor and OS noise. The repo previously had no .gitignore at all, which is how the 5,176-file node_modules tree and the 197 KB npm-debug.log ended up tracked in the first place.

  2. Untracked the already-committed dependency tree and log file:

    git rm -r --cached node_modules
    git rm --cached npm-debug.log
    

    Files stay on disk; only git's index is updated. Fresh clones recreate node_modules/ via npm install.

  3. package.json pg-hstore dedup. The file listed pg-hstore twice (^2.3.4 and ^2.3.3). JSON parsers keep only the last duplicate key, so the effective pin was the lower ^2.3.3. Kept ^2.3.4.

  4. Drive-by: package.json:main pointed at the nonexistent index.js. Changed to server.js, the actual entry point.

Diff shape

5179 files changed, 27 insertions(+), 445307 deletions(-)

The line count is intimidating but it is entirely node_modules/* getting unstaged — no application code was touched beyond the two-line package.json change.

Acceptance criteria

  • .gitignore exists with node_modules/, *.log, .env, etc.
  • git ls-files | grep -c node_modules/ → 0
  • git ls-files | grep npm-debug.log → (empty)
  • npm install && node server.js works on a fresh clone (verified locally).
  • Exactly one pg-hstore line in package.json.
  • package.json:main matches the actual entry point.

Proudly Made in Nebraska. Go Big Red! 🌽 https://xkcd.com/2347/

…upe pg-hstore

Closes #27, closes #28.

This is a one-time cleanup. No runtime behavior changes.

- Add a standard Node .gitignore (node_modules/, *.log, .env, dist/,
  coverage/, editor noise). The repo previously had no .gitignore at
  all, which is how the 5176-file node_modules tree and the 197 KB
  npm-debug.log ended up tracked.
- git rm -r --cached node_modules + git rm --cached npm-debug.log to
  stop tracking the already-committed files. Files stay on disk; only
  git's index is updated. Fresh clones recreate them via npm install.
- package.json: remove the duplicate "pg-hstore" key. The file
  previously listed pg-hstore twice (^2.3.4 and ^2.3.3). JSON parsers
  keep the last entry, so the effective pin was the lower ^2.3.3. Kept
  ^2.3.4.
- package.json: fix `main` to point at the actual entry point
  (server.js, not the nonexistent index.js). Drive-by because it's in
  the same file and the same shape of bug.
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.

Remove duplicate pg-hstore entry in package.json Add .gitignore and untrack node_modules/ + npm-debug.log

1 participant