{"id":19945594,"url":"https://github.com/danger/danger-ts","last_synced_at":"2025-05-03T16:32:19.831Z","repository":{"id":57211401,"uuid":"288694620","full_name":"danger/danger-ts","owner":"danger","description":"An npx-able mix of Danger and TypeScript","archived":false,"fork":false,"pushed_at":"2020-08-19T11:21:33.000Z","size":31,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-25T06:39:15.755Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/danger.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}},"created_at":"2020-08-19T09:51:59.000Z","updated_at":"2024-11-11T20:31:51.000Z","dependencies_parsed_at":"2022-08-30T14:30:12.224Z","dependency_job_id":null,"html_url":"https://github.com/danger/danger-ts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danger%2Fdanger-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danger%2Fdanger-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danger%2Fdanger-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danger%2Fdanger-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danger","download_url":"https://codeload.github.com/danger/danger-ts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252216096,"owners_count":21713098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-13T00:26:08.545Z","updated_at":"2025-05-03T16:32:19.546Z","avatar_url":"https://github.com/danger.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# danger-ts\n\nAn npx-able mix of Danger and TypeScript, so you can trivially use Danger JS with a TS Dangerfile without having Danger in your dependency tree.  \n\n```sh\necho 'import {markdown} from \"danger\"; markdown(\"Hi!\");\"' \u003e dangerfile.ts\n\nnpx danger-ts\n```\n\n### Why Use This?\n\nMost of the time, you don't need to. You could be using Danger in a TS project, at that point though you'll want to include the Danger dep for the Types. \n\nCases where you might not though:\n\n- You're running CI on webhooks which aren't worth doing a full `yarn install` on. \n- You add the `dangerfile.ts` to your `exclude` in the project's `tsconfig.json`.\n\nIn those cases you can use `npx danger-ts` which acts as a proxy for `yarn danger ci`.\n\ne.g.\n\n```yml\nname: CI\non: pull_request\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v1\n      - uses: actions/setup-node@v1\n\n      - name: \"Use npx to run the dangerfile\"\n        run: \"npx danger-ts\"\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanger%2Fdanger-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanger%2Fdanger-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanger%2Fdanger-ts/lists"}