{"id":46447514,"url":"https://github.com/alpheusday/tsdown","last_synced_at":"2026-03-15T00:22:23.405Z","repository":{"id":329637864,"uuid":"1109873509","full_name":"alpheusday/tsdown","owner":"alpheusday","description":"A shareable tsdown configuration","archived":false,"fork":false,"pushed_at":"2026-03-13T00:12:15.000Z","size":463,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-13T07:39:09.472Z","etag":null,"topics":["config","javascript","shareable","tsdown","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/alpheusday/tsdown/blob/main/apis/README.md","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alpheusday.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-04T11:59:53.000Z","updated_at":"2026-03-13T00:12:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/alpheusday/tsdown","commit_stats":null,"previous_names":["alpheusday/tsdown"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/alpheusday/tsdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpheusday%2Ftsdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpheusday%2Ftsdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpheusday%2Ftsdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpheusday%2Ftsdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alpheusday","download_url":"https://codeload.github.com/alpheusday/tsdown/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpheusday%2Ftsdown/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30519166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-14T19:51:21.629Z","status":"ssl_error","status_checked_at":"2026-03-14T19:51:12.959Z","response_time":57,"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":["config","javascript","shareable","tsdown","typescript"],"created_at":"2026-03-05T23:51:43.423Z","updated_at":"2026-03-15T00:22:23.395Z","avatar_url":"https://github.com/alpheusday.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alpheus tsdown Configuration\n\nA shareable tsdown configuration.\n\n## Installation\n\nInstall this package as a dependency in the project:\n\n```sh\n# npm\nnpm i @apst/tsdown\n\n# Yarn\nyarn add @apst/tsdown\n\n# pnpm\npnpm add @apst/tsdown\n\n# Bun\nbun add @apst/tsdown\n```\n\n## Usage\n\nImplement the preset into `tsdown.config.ts`:\n\n```ts\nimport { defineConfig } from \"@apst/tsdown\";\nimport { \n    esmPreset,\n    cjsPreset,\n    dtsPreset,\n} from \"@apst/tsdown/presets\";\n\nexport default defineConfig(\n    {\n        entry: {\n            index: \"./src/index.ts\",\n        },\n    },\n    [\n        esmPreset(),\n        cjsPreset(),\n        dtsPreset(),\n    ],\n);\n```\n\nWith IIFE output:\n\n```ts\nimport type { UserConfig } from \"tsdown\";\n\nimport { defineConfig } from \"@apst/tsdown\";\nimport { \n    esmPreset,\n    cjsPreset,\n    dtsPreset,\n    iifePreset,\n} from \"@apst/tsdown/presets\";\n\nconst options: UserConfig = {\n    entry: {\n        index: \"./src/index.ts\",\n    },\n};\n\nconst iifeOptions: UserConfig = {\n    entry: {\n        init: \"./src/init.ts\",\n    },\n    deps: {\n        alwaysBundle: [\n            /** ... */\n        ],\n    },\n};\n\nexport default defineConfig([\n    esmPreset(options),\n    cjsPreset(options),\n    dtsPreset(options),\n    iifePreset(iifeOptions),\n]);\n```\n\n## APIs\n\nFor the APIs, please refer to the [APIs](./apis/README.md).\n\n## License\n\nThis project is licensed under the terms of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falpheusday%2Ftsdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falpheusday%2Ftsdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falpheusday%2Ftsdown/lists"}