Skip to content

Commit 031efb9

Browse files
chore: remove unnecessary should-semantic-release dependency and script (#1271)
## PR Checklist - [x] Addresses an existing open issue: fixes #1270 - [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 Removes the unnecessary script... and thanks to Knip, the dependency altogether.
1 parent 017088a commit 031efb9

File tree

7 files changed

+4
-26
lines changed

7 files changed

+4
-26
lines changed

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"lint:packages": "pnpm dedupe --check",
2929
"lint:spelling": "cspell \"**\" \".github/**/*\"",
3030
"prepare": "husky install",
31-
"should-semantic-release": "should-semantic-release --verbose",
3231
"test": "vitest",
3332
"test:create": "node script/create-test-e2e.js",
3433
"test:initialize": "node script/initialize-test-e2e.js",
@@ -96,7 +95,6 @@
9695
"prettier-plugin-packagejson": "^2.4.7",
9796
"release-it": "^17.0.0",
9897
"sentences-per-line": "^0.2.1",
99-
"should-semantic-release": "^0.2.1",
10098
"tsup": "^8.0.1",
10199
"tsx": "^4.6.2",
102100
"typescript": "^5.3.3",

pnpm-lock.yaml

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/shared/options/getBase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { readPackageData } from "../packages.js";
22
import { OptionsBase } from "../types.js";
33

4-
const commonScripts = new Set(["lint:knip", "should-semantic-release", "test"]);
4+
const commonScripts = new Set(["lint:knip", "test"]);
55

66
const everythingScripts = new Set([
77
"lint:md",

src/steps/finalizeDependencies.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe("finalize", () => {
3838
expect(mockExecaCommand.mock.calls).toMatchInlineSnapshot(`
3939
[
4040
[
41-
"pnpm add @release-it/conventional-changelog@latest @types/eslint@latest @typescript-eslint/eslint-plugin@latest @typescript-eslint/parser@latest @vitest/coverage-v8@latest all-contributors-cli@latest console-fail-test@latest cspell@latest eslint@latest eslint-plugin-deprecation@latest eslint-plugin-eslint-comments@latest eslint-plugin-jsdoc@latest eslint-plugin-jsonc@latest eslint-plugin-markdown@latest eslint-plugin-n@latest eslint-plugin-no-only-tests@latest eslint-plugin-package-json@latest eslint-plugin-perfectionist@latest eslint-plugin-regexp@latest eslint-plugin-vitest@latest eslint-plugin-yml@latest husky@latest jsonc-eslint-parser@latest knip@latest lint-staged@latest markdownlint@latest markdownlint-cli@latest prettier@latest prettier-plugin-curly@latest prettier-plugin-packagejson@latest release-it@latest sentences-per-line@latest should-semantic-release@latest tsup@latest typescript@latest vitest@latest yaml-eslint-parser@latest -D",
41+
"pnpm add @release-it/conventional-changelog@latest @types/eslint@latest @typescript-eslint/eslint-plugin@latest @typescript-eslint/parser@latest @vitest/coverage-v8@latest all-contributors-cli@latest console-fail-test@latest cspell@latest eslint@latest eslint-plugin-deprecation@latest eslint-plugin-eslint-comments@latest eslint-plugin-jsdoc@latest eslint-plugin-jsonc@latest eslint-plugin-markdown@latest eslint-plugin-n@latest eslint-plugin-no-only-tests@latest eslint-plugin-package-json@latest eslint-plugin-perfectionist@latest eslint-plugin-regexp@latest eslint-plugin-vitest@latest eslint-plugin-yml@latest husky@latest jsonc-eslint-parser@latest knip@latest lint-staged@latest markdownlint@latest markdownlint-cli@latest prettier@latest prettier-plugin-curly@latest prettier-plugin-packagejson@latest release-it@latest sentences-per-line@latest tsup@latest typescript@latest vitest@latest yaml-eslint-parser@latest -D",
4242
],
4343
[
4444
"npx all-contributors-cli generate",
@@ -59,7 +59,7 @@ describe("finalize", () => {
5959
expect(mockExecaCommand.mock.calls).toMatchInlineSnapshot(`
6060
[
6161
[
62-
"pnpm add @release-it/conventional-changelog@latest @types/eslint@latest @typescript-eslint/eslint-plugin@latest @typescript-eslint/parser@latest @vitest/coverage-v8@latest all-contributors-cli@latest console-fail-test@latest cspell@latest eslint@latest eslint-plugin-deprecation@latest eslint-plugin-eslint-comments@latest eslint-plugin-jsdoc@latest eslint-plugin-jsonc@latest eslint-plugin-markdown@latest eslint-plugin-n@latest eslint-plugin-no-only-tests@latest eslint-plugin-package-json@latest eslint-plugin-perfectionist@latest eslint-plugin-regexp@latest eslint-plugin-vitest@latest eslint-plugin-yml@latest husky@latest jsonc-eslint-parser@latest knip@latest lint-staged@latest markdownlint@latest markdownlint-cli@latest prettier@latest prettier-plugin-curly@latest prettier-plugin-packagejson@latest release-it@latest sentences-per-line@latest should-semantic-release@latest tsup@latest typescript@latest vitest@latest yaml-eslint-parser@latest -D --offline",
62+
"pnpm add @release-it/conventional-changelog@latest @types/eslint@latest @typescript-eslint/eslint-plugin@latest @typescript-eslint/parser@latest @vitest/coverage-v8@latest all-contributors-cli@latest console-fail-test@latest cspell@latest eslint@latest eslint-plugin-deprecation@latest eslint-plugin-eslint-comments@latest eslint-plugin-jsdoc@latest eslint-plugin-jsonc@latest eslint-plugin-markdown@latest eslint-plugin-n@latest eslint-plugin-no-only-tests@latest eslint-plugin-package-json@latest eslint-plugin-perfectionist@latest eslint-plugin-regexp@latest eslint-plugin-vitest@latest eslint-plugin-yml@latest husky@latest jsonc-eslint-parser@latest knip@latest lint-staged@latest markdownlint@latest markdownlint-cli@latest prettier@latest prettier-plugin-curly@latest prettier-plugin-packagejson@latest release-it@latest sentences-per-line@latest tsup@latest typescript@latest vitest@latest yaml-eslint-parser@latest -D --offline",
6363
],
6464
[
6565
"npx all-contributors-cli generate",

src/steps/finalizeDependencies.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ export async function finalizeDependencies(options: Options) {
4545
: ["eslint-plugin-yml", "yaml-eslint-parser"]),
4646
...(options.excludeReleases
4747
? []
48-
: [
49-
"@release-it/conventional-changelog",
50-
"release-it",
51-
"should-semantic-release",
52-
]),
48+
: ["@release-it/conventional-changelog", "release-it"]),
5349
...(options.excludeTests
5450
? []
5551
: [

src/steps/writing/creation/writePackageJson.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ describe("writePackageJson", () => {
108108
"lint:packages": "pnpm dedupe --check",
109109
"lint:spelling": "cspell "**" ".github/**/*"",
110110
"prepare": "husky install",
111-
"should-semantic-release": "should-semantic-release --verbose",
112111
"test": "vitest",
113112
"tsc": "tsc",
114113
},

src/steps/writing/creation/writePackageJson.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ export async function writePackageJson(options: Options) {
102102
"lint:spelling": 'cspell "**" ".github/**/*"',
103103
}),
104104
prepare: "husky install",
105-
...(!options.excludeReleases && {
106-
"should-semantic-release": "should-semantic-release --verbose",
107-
}),
108105
...(!options.excludeReleases && { test: "vitest" }),
109106
tsc: "tsc",
110107
},

0 commit comments

Comments
 (0)