1
0
Fork 0
mirror of https://github.com/imjasonh/npm-snoop synced 2026-07-07 00:32:54 +00:00

Move poller to cmd/npm-cron/

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jason Hall 2026-03-26 21:39:02 -04:00
parent c0db95e261
commit 946a1869ec
4 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
# Go binaries
/npm-snoop
/npm-cron
/ast-diff
/ast-diff-service

View file

@ -4,7 +4,7 @@ Go cron job that tails the npm registry changes feed and records releases, metad
## Structure
- `main.go` — the poller; all application logic is in this one file
- `cmd/npm-cron/` — the poller cron job
- `cmd/ast-diff/` — CLI tool for diffing symbols between two npm package versions
- `cmd/ast-diff-service/` — Cloud Run service that receives release events and emits diff events
- `internal/npm/` — npm registry client (metadata, tarball download, semver logic)

View file

@ -153,7 +153,7 @@ module "cron" {
schedule = var.schedule
service_account = google_service_account.poller.email
working_dir = "${path.module}/.."
importpath = "."
importpath = "./cmd/npm-cron"
notification_channels = []
team = "npm-snoop"
deletion_protection = var.deletion_protection