JoshuaKGoldberg / JoshuaKGoldberg/create-typescript-app
🚀 Feature: Replace ncc block for GitHub actions with native Node.js TypeScript
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 89
- Avg merge
- 1m
- Merged PRs (30d)
- 3
Description
### Feature Request Checklist
- [x] I have pulled the latest `main` branch of the repository.
- [x] I have [searched for related issues](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aissue) and found none that matched my issue.
### Overview
Node.js has native type stripping (i.e. TypeScript file running) now. Yay! https://nodejs.org/en/learn/typescript/run-natively
GitHub Actions created with create-typescript-app -e.g. https://github.com/JoshuaKGoldberg/OctoGuide- currently use [`blockNcc`](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/67102a84657b4e2dbaa3292fe743c8a5b518637b/src/blocks/blockNcc.ts) to use [`@vercel/ncc`](https://www.npmjs.com/package/@vercel/ncc) for building. They check in their `dist/` directory with built outputs. But now that GitHub Actions runners support Node.js versions with TS syntax support, we can do away with that and have the actions just ship their `src/` directory with `.ts` file sources.
### Additional Info
I'm not sure what the exact proof of this is. But I've heard of people doing it. Maybe it's that https://github.com/actions/setup-node?tab=readme-ov-file#breaking-changes-in-v5 notes:
> Upgraded action from node20 to node24.
🎁
Contributor guide
Assessment
This issue has not been assessed yet.