diff --git a/.gitignore b/.gitignore index ccf46c5..7995445 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Go binaries /npm-snoop +/npm-cron /ast-diff /ast-diff-service diff --git a/CLAUDE.md b/CLAUDE.md index 7a19aeb..fe5f024 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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) diff --git a/main.go b/cmd/npm-cron/main.go similarity index 100% rename from main.go rename to cmd/npm-cron/main.go diff --git a/terraform/main.tf b/terraform/main.tf index 9a21a6e..cc304e0 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -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