Skip to content

Commit ddf66f0

Browse files
fix: remove hydrate entries from package.json in setup (#571)
## PR Checklist - [x] Addresses an existing open issue: fixes #480 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/template-typescript-node-package/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Adds a couple of removals and clumps them together.
1 parent 1bd7781 commit ddf66f0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/setup/steps/updateLocalFiles.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ export async function updateLocalFiles({
3131
[/JoshuaKGoldberg/g, owner],
3232
[/template-typescript-node-package/g, repository],
3333
[/\/\*\n.+\*\/\n\n/gs, ``, ".eslintrc.cjs"],
34-
[/"setup": ".*",/g, ``, "./package.json"],
35-
[/"setup:test": ".*",/g, ``, "./package.json"],
3634
[/"author": ".+"/g, `"author": "${npmAuthor}"`, "./package.json"],
35+
[/"bin": ".+\n/g, ``, "./package.json"],
36+
[/"hydrate:test": ".+\n/g, ``, "./package.json"],
37+
[/"setup:test": ".*/g, ``, "./package.json"],
38+
[/"setup": ".*/g, ``, "./package.json"],
3739

3840
[/## Explainer.*## Usage/gs, `## Usage`, "./README.md"],
3941
[/\n### Testing the Setup Script.*$/gs, "", "./.github/DEVELOPMENT.md"],

0 commit comments

Comments
 (0)