Skip to content

Commit 2c14c2d

Browse files
authored
fix: exclude tests with.npmignore (#1637)
<!-- 👋 Hi, thanks for sending a PR to create-typescript-app! 💖. Please fill out all fields below and make sure each item is true and [x] checked. Otherwise we may not be able to review your PR. --> ## PR Checklist - [x] Addresses an existing open issue: fixes #1629 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken ## Overview <!-- Description of what is changed and how the code change does that. --> Doing this on a mobile phone on a train. It can never work, can it?
1 parent e85cc59 commit 2c14c2d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.test.*

src/steps/writing/creation/rootFiles.ts

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export async function createRootFiles(options: Options) {
2525
"node_modules/",
2626
]),
2727
}),
28+
".npmignore": `*.test.*\n`,
2829
".nvmrc": `20.12.2\n`,
2930
".prettierignore": formatIgnoreFile([
3031
...(options.excludeAllContributors ? [] : [".all-contributorsrc"]),

0 commit comments

Comments
 (0)