{"id":38905650,"url":"https://github.com/luanroger/ts-package-template","last_synced_at":"2026-06-14T14:01:17.589Z","repository":{"id":317186939,"uuid":"1066350008","full_name":"LuanRoger/ts-package-template","owner":"LuanRoger","description":"Modern tools to build an NPM package with TypeScript support","archived":false,"fork":false,"pushed_at":"2026-06-08T19:56:21.000Z","size":645,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-08T21:24:22.791Z","etag":null,"topics":["biomejs","boilerplate","changelog","pacakge","rolldown","template","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@luanroger/ts-package-template","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/LuanRoger.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-09-29T11:13:03.000Z","updated_at":"2026-06-08T19:56:18.000Z","dependencies_parsed_at":"2026-06-14T14:01:14.997Z","dependency_job_id":null,"html_url":"https://github.com/LuanRoger/ts-package-template","commit_stats":null,"previous_names":["luanroger/ts-package-template"],"tags_count":4,"template":true,"template_full_name":null,"purl":"pkg:github/LuanRoger/ts-package-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuanRoger%2Fts-package-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuanRoger%2Fts-package-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuanRoger%2Fts-package-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuanRoger%2Fts-package-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuanRoger","download_url":"https://codeload.github.com/LuanRoger/ts-package-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuanRoger%2Fts-package-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34323994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["biomejs","boilerplate","changelog","pacakge","rolldown","template","typescript"],"created_at":"2026-01-17T15:08:01.694Z","updated_at":"2026-06-14T14:01:17.580Z","avatar_url":"https://github.com/LuanRoger.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://rolldown.rs\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"margin-right: 20px;\"\u003e\n    \u003cimg width=\"150\" src=\"https://raw.githubusercontent.com/voidzero-dev/community-design-resources/refs/heads/main/brand-assets/rolldown/rolldown-icon-color-dark.svg\" alt=\"Rolldown logo\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.typescriptlang.org/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n    \u003cimg width=\"150\" src=\"https://raw.githubusercontent.com/remojansen/logo.ts/refs/heads/master/ts.png\" alt=\"TypeScript logo\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# ts-package-template\n\n[![GitHub License](https://img.shields.io/github/license/LuanRoger/ts-package-template)\n](https://github.com/LuanRoger/ts-package-template/blob/main/LICENSE)\n[![NPM Version](https://img.shields.io/npm/v/%40luanroger%2Fts-package-template)](https://www.npmjs.com/package/@luanroger/ts-package-template)\n\nA future proof TypeScript package template, using good alternative (kind of) tools. It includes everything you need to get started quickly, including a basic project structure, build scripts, and configuration files.\n\n\u003e You can delete the content of this README and add your own information about your package.\n\n## Tools\n\n- 📘 [TypeScript](https://www.typescriptlang.org/) - A typed superset of JavaScript that compiles to plain JavaScript.\n- ⬇️ [Rolldown](https://rolldown.rs) with [tsdown](https://tsdown.dev/) - A modern JavaScript bundler that focuses on simplicity and ease of use. With `tsdown`, it provides seamless TypeScript integration.\n- 🌿 [Biome](https://biomejs.dev/) - An all-in-one code linter and formatter.\n- ⚡ [Vitest](https://vitest.dev/) - A blazing fast unit test framework.\n- 📋 [git-cliff](https://git-cliff.org/) - A changelog generator based on [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/).\n- 🚀 [np](https://github.com/sindresorhus/np) - A better `npm publish`.\n- 📦 [pnpm](https://pnpm.io/) — Already used in this project.\n\n## Directory Structure\n\n```plaintext\n./\n├── ./.vscode/\n│   └── settings.json\n├── ./src/\n│   └── index.ts\n├── ./test/\n│   └── index.test.ts\n├── biome.json\n├── CHANGELOG.md\n├── cliff.toml\n├── tsconfig.json\n├── tsconfig.build.json\n└── tsdown.config.ts\n```\n\n\u003e This is just the most important files and folders. Not every file is shown in this structure.\n\n- `./` - The root directory of the project.\n  - `./.vscode/` - Contains VSCode-specific settings for the project.\n  - `./src/` - The source code of the package. Used by the bundler to create the final output, also, in the `dev` mode, the files here will be watched for changes.\n  - `./test/` - The test files for the package. Used by Vitest to run unit tests.\n- `biome.json` - Configuration file for Biome, the code linter and formatter. Check the [Biome documentation](https://biomejs.dev/reference/configuration) for more details.\n- `CHANGELOG.md` - The changelog file generated by `git-cliff`.\n- `cliff.toml` - Configuration file for `git-cliff`. Check the [git-cliff documentation](https://git-cliff.org/docs/) for more details.\n- `tsconfig.json` - The main TypeScript configuration file.\n- `tsconfig.build.json` - TypeScript configuration file used specifically for the build process.\n- `tsdown.config.ts` - Configuration file for `tsdown`. Check the [tsdown documentation](https://tsdown.dev/options/config-file) for more details.\n\n## NPM Scripts\n\nRun with:\n\n```bash\npnpm \u003cscript\u003e\n```\n\nor\n\n```bash\nnpm run \u003cscript\u003e\n```\n\n- `dev` - Starts the bundler in watch mode over `./src`.\n- `build` - Bundles the package using Rolldown and outputs to the `./dist` folder.\n- `check` - Runs Biome to lint and format the code.\n- `check:write` - Runs Biome to automatically fix linting and formatting issues.\n- `test` - Runs Vitest to execute the unit tests.\n- `test:watch` - Runs Vitest in watch mode for continuous testing during development.\n- `changelog` - Generates or updates the `CHANGELOG.md` file using `git-cliff`.\n- `publish` - Publishes the package to NPM using `np`.\n- `publish:all` - Builds before publishing it to NPM.\n\n## How to use\n\n1. Clone this repository.\n   Alternatively, you can use this template when creating a new repository on GitHub by selecting the \"Use this template\" option. This will create a new repository with the same structure and files as this template.\n2. Run `pnpm install` to install the dependencies.\n3. Modify the `package.json` file to set your package `name`, `version`, `description`, `author`, and other relevant information.\n4. You are ready to start coding your TypeScript package!\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/LuanRoger/ts-package-template/blob/main/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluanroger%2Fts-package-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluanroger%2Fts-package-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluanroger%2Fts-package-template/lists"}