Skip to content

Commit 432fe8b

Browse files
authored
Fix file extension (typo) (#166)
* Fixed file extension * Test CI * Revert Test CI
1 parent 56312ad commit 432fe8b

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

scripts/release/apply-release.cts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import fs from "fs";
44

55
import computeNextVersion from "./helpers/compute-next-version.cts";
66

7-
import { getTopSection, readJSON, writeJSON, getPkgPath, getChangelogPath, validateReleaseTopSection } from "./helpers";
7+
import { getTopSection, readJSON, writeJSON, getPkgPath, getChangelogPath, validateReleaseTopSection } from "./helpers/index.cts";
88

9-
import type { Core } from "./helpers";
9+
import type { Core } from "./helpers/index.cts";
1010

1111
export default async function applyRelease(core: Core): Promise<void> {
1212
const pkgPath = getPkgPath();

scripts/release/extract-release-notes.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import fs from "fs";
44

5-
import { getChangelogPath, getPkgPath, readJSON } from "./helpers";
5+
import { getChangelogPath, getPkgPath, readJSON } from "./helpers/index.cts";
66

77
export default function extractReleaseNotes({ version }: { version?: string } = {}): string {
88
const changelog = fs.readFileSync(getChangelogPath(), "utf8");

scripts/release/get-release-state.cts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { execSync } from "node:child_process";
22

3-
import extractReleaseNotes from "./extract-release-notes";
3+
import extractReleaseNotes from "./extract-release-notes.cts";
44

5-
import { readJSON, getPkgPath } from "./helpers";
5+
import { readJSON, getPkgPath } from "./helpers/index.cts";
66

7-
import type { Core } from "./helpers";
7+
import type { Core } from "./helpers/index.cts";
88

99
export default async function getReleaseState(core: Core) {
1010
const isReleaseCommit = /^chore\(release\):/m.test(execSync("git log -1 --pretty=%B", { encoding: "utf8" }));

scripts/release/helpers/constants.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Level } from "./types.cjs";
1+
import type { Level } from "./types.cts";
22

33
export const allowedWhenNotRc: Set<Level> = new Set([
44
"patch",
File renamed without changes.

scripts/release/validate-changelog.cts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import fs from "fs";
44

5-
import { getChangelogPath, getPkgPath, readJSON, allowedWhenNotRc, allowedWhenRc } from "./helpers";
5+
import { getChangelogPath, getPkgPath, readJSON, allowedWhenNotRc, allowedWhenRc } from "./helpers/index.cts";
66

7-
import type { Level } from "./helpers";
7+
import type { Level } from "./helpers/index.cts";
88

99
function fail(message: string): never {
1010
throw new Error(`CHANGELOG validation failed: ${message}`);

0 commit comments

Comments
 (0)