{"id":42037595,"url":"https://github.com/giladgd/typeorm-codebase-sync","last_synced_at":"2026-01-26T05:10:49.780Z","repository":{"id":57689823,"uuid":"475077476","full_name":"giladgd/typeorm-codebase-sync","owner":"giladgd","description":"Automatically update your codebase to add migrations, entities and subscribers to your `data-source.ts` file","archived":false,"fork":false,"pushed_at":"2022-04-04T19:45:59.000Z","size":330,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T14:28:03.638Z","etag":null,"topics":["ast","cli","code","codebase","data-source","datasource","edit","files","sync","ts","typeorm","typeorm-extension","typeorm-migration","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/giladgd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-28T16:03:35.000Z","updated_at":"2023-11-21T19:06:23.000Z","dependencies_parsed_at":"2022-09-26T16:40:22.033Z","dependency_job_id":null,"html_url":"https://github.com/giladgd/typeorm-codebase-sync","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/giladgd/typeorm-codebase-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giladgd%2Ftypeorm-codebase-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giladgd%2Ftypeorm-codebase-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giladgd%2Ftypeorm-codebase-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giladgd%2Ftypeorm-codebase-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giladgd","download_url":"https://codeload.github.com/giladgd/typeorm-codebase-sync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giladgd%2Ftypeorm-codebase-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28767045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:54:34.369Z","status":"ssl_error","status_checked_at":"2026-01-26T03:54:33.031Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ast","cli","code","codebase","data-source","datasource","edit","files","sync","ts","typeorm","typeorm-extension","typeorm-migration","typescript"],"created_at":"2026-01-26T05:10:49.283Z","updated_at":"2026-01-26T05:10:49.775Z","avatar_url":"https://github.com/giladgd.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TypeORM Codebase Sync\nAutomatically update your codebase to add migrations, entities and subscribers to your `data-source.ts` file\n\n[![Test](https://github.com/giladgd/typeorm-codebase-sync/actions/workflows/test.yml/badge.svg)](https://github.com/giladgd/typeorm-codebase-sync/actions/workflows/test.yml)\n[![Version](https://badgen.net/npm/v/typeorm-codebase-sync)](https://www.npmjs.com/package/typeorm-codebase-sync)\n[![codecov](https://codecov.io/gh/giladgd/typeorm-codebase-sync/branch/master/graph/badge.svg)](https://codecov.io/gh/giladgd/typeorm-codebase-sync)\n\n\n## Installation\n1. Install dependencies\n```bash\nnpm install --save-dev typescript\nnpm install --save typeorm\n```\n\n2. Install `typeorm-codebase-sync`\n```bash\nnpm install --save-dev typeorm-codebase-sync\n```\n\n3. Add `typeorm-sync` script to `package.json`\n```bash\nnpm set-script \"typeorm-sync\" \"typeorm-codebase-sync addReferences --dataSource ./src/db/data-source.ts --migrations ./src/db/migrations --entities ./src/db/entities --subscribers ./src/db/subscribers\"\n```\n\n4. To automatically run `typeorm-sync` after using the typeorm CLI, edit `package.json`:\n```bash\nnpm set-script \"posttypeorm\" \"npm run typeorm-sync\"\n``` \n\n\u003e Given that your `package.json` contains a script called `typeorm`,\n\u003e after each time you run `npm run typeorm -- \u003cparams\u003e`, the `typeorm-sync` script will automatically run\n\n## Documentation\n### `addReferences` command\n```txt\nUsage: typeorm-codebase-sync addReferences --dataSource \u003cpath\u003e [options]\n\nRequired:\n  -d, --dataSource  Path to a data-source.ts file                                [string] [required]\n\nFiles:\n  -m, --migrations   Glob of migration files or folders containing migration files           [array]\n  -e, --entities     Glob of entity files or folders containing entity files                 [array]\n  -s, --subscribers  Glob of subscriber files or folders containing subscriber files         [array]\n\nOptions:\n  -h, --help     Show help                                                                 [boolean]\n  -v, --version  Show version number                                                       [boolean]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiladgd%2Ftypeorm-codebase-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiladgd%2Ftypeorm-codebase-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiladgd%2Ftypeorm-codebase-sync/lists"}