Skip to content

Commit 115c814

Browse files
fix: update regex for stay JoshuaKGoldberg/console-fail-test (#777)
<!-- 👋 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 #776 - [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 I noticed your package's author name replaced my organization. So I update regex to exclude target for replace. <a href="laststance/usd-query@4dc556b#diff-08fefa4c744ba1491da425d8acfa9e10a04b302518948dd1b95d3d2636103383L66"> <img width="1102" alt="Screenshot 2023-09-04 at 10 31 06" src="https://github.com/JoshuaKGoldberg/create-typescript-app/assets/5501268/f5d4d56f-6861-45e8-b739-697acd009c78"> </a>
1 parent 03609fe commit 115c814

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/steps/updateLocalFiles.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ describe("updateLocalFiles", () => {
8787
"./.github/**/*",
8888
"./*.*",
8989
],
90-
"from": /JoshuaKGoldberg/g,
90+
"from": /JoshuaKGoldberg\\(\\?!\\\\/console-fail-test\\)/g,
9191
"to": "StubOwner",
9292
},
9393
],
@@ -222,7 +222,7 @@ describe("updateLocalFiles", () => {
222222
"./.github/**/*",
223223
"./*.*",
224224
],
225-
"from": /JoshuaKGoldberg/g,
225+
"from": /JoshuaKGoldberg\\(\\?!\\\\/console-fail-test\\)/g,
226226
"to": "StubOwner",
227227
},
228228
],
@@ -360,7 +360,7 @@ describe("updateLocalFiles", () => {
360360
"./.github/**/*",
361361
"./*.*",
362362
],
363-
"from": /JoshuaKGoldberg/g,
363+
"from": /JoshuaKGoldberg\\(\\?!\\\\/console-fail-test\\)/g,
364364
"to": "StubOwner",
365365
},
366366
],

src/steps/updateLocalFiles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export async function updateLocalFiles(options: Options) {
1414

1515
const replacements = [
1616
[/Create TypeScript App/g, options.title],
17-
[/JoshuaKGoldberg/g, options.owner],
17+
[/JoshuaKGoldberg(?!\/console-fail-test)/g, options.owner],
1818
[/create-typescript-app/g, options.repository],
1919
[/\/\*\n.+\*\/\n\n/gs, ``, ".eslintrc.cjs"],
2020
[/"author": ".+"/g, `"author": "${options.author}"`, "./package.json"],

0 commit comments

Comments
 (0)