{"id":19356888,"url":"https://github.com/alexfigliolia/ts-packager","last_synced_at":"2026-01-11T17:03:26.413Z","repository":{"id":216832339,"uuid":"742561851","full_name":"alexfigliolia/ts-packager","owner":"alexfigliolia","description":"A set of packaging tools for building typescript libraries for Common JS and ES Modules","archived":false,"fork":false,"pushed_at":"2024-09-26T20:15:35.000Z","size":279,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-27T17:51:44.522Z","etag":null,"topics":["build","build-tools","commonjs","esm","esmodule","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@figliolia/ts-packager","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/alexfigliolia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-12T18:52:11.000Z","updated_at":"2024-09-26T20:15:38.000Z","dependencies_parsed_at":"2024-01-13T05:38:23.659Z","dependency_job_id":"b13ac785-938e-4334-bbf3-07bab9ff4c07","html_url":"https://github.com/alexfigliolia/ts-packager","commit_stats":null,"previous_names":["alexfigliolia/ts-packager"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alexfigliolia/ts-packager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfigliolia%2Fts-packager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfigliolia%2Fts-packager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfigliolia%2Fts-packager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfigliolia%2Fts-packager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexfigliolia","download_url":"https://codeload.github.com/alexfigliolia/ts-packager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfigliolia%2Fts-packager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28314261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: 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":["build","build-tools","commonjs","esm","esmodule","typescript"],"created_at":"2024-11-10T07:05:45.994Z","updated_at":"2026-01-11T17:03:26.395Z","avatar_url":"https://github.com/alexfigliolia.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ts-packager\nA no-configuration necessary CLI for typescript package owners that generates corresponding builds for Common JS and ES Modules. Fire up the CLI and ship your code sanely!\n\n### Installation\n```bash\nnpm i -D @figliolia/ts-packager \u0026\u0026 npm link\nyarn add -D @figliolia/ts-packager \u0026\u0026 npm link\n```\n\n### Background\nFor several years the migration to ES Modules has been a large pain point for package maintainers. This package is designed to take care of the interoperability by allowing you to distribute your build for both Common JS and ESM. \n\nThe CLI will read from your project's TS Config, then override the appropriate options at build time to generate each build. It'll also take care of modifying your package.json file to appropriately distribute these builds.\n\nLet's no longer distribute packages that break the projects of our peers!\n\n### Basic Usage\nTo list options, run\n```bash\nnpx ts-packager --help\n```\n#### Building for ES Modules and Common JS\n\n```bash\nnpx ts-packager --command build-all --project \u003cyour project directory\u003e -entrypoint \u003cyour includes directory\u003e\n```\nBy default, the `--project` and `--entrypoint` flag will be set to the current working directory\n\n#### Building for ES Modules\n\n```bash\nnpx ts-packager --command build-esm\n```\n\n#### Building for Common JS\n\n```bash\nnpx ts-packager --command build-common\n```\n\n#### To Modify your package.json for distributing each build\n\n```bash\nnpx ts-packager --command fix-package-file\n```\nWhen executing `--command build-all` your package file will automatically be modified to appropriately distribute your builds\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexfigliolia%2Fts-packager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexfigliolia%2Fts-packager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexfigliolia%2Fts-packager/lists"}