Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/release/apply-release.cts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import fs from "fs";

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

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

import type { Core } from "./helpers";
import type { Core } from "./helpers/index.cts";

export default async function applyRelease(core: Core): Promise<void> {
const pkgPath = getPkgPath();
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/extract-release-notes.cts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import fs from "fs";

import { getChangelogPath, getPkgPath, readJSON } from "./helpers";
import { getChangelogPath, getPkgPath, readJSON } from "./helpers/index.cts";

export default function extractReleaseNotes({ version }: { version?: string } = {}): string {
const changelog = fs.readFileSync(getChangelogPath(), "utf8");
Expand Down
6 changes: 3 additions & 3 deletions scripts/release/get-release-state.cts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { execSync } from "node:child_process";

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

import { readJSON, getPkgPath } from "./helpers";
import { readJSON, getPkgPath } from "./helpers/index.cts";

import type { Core } from "./helpers";
import type { Core } from "./helpers/index.cts";

export default async function getReleaseState(core: Core) {
const isReleaseCommit = /^chore\(release\):/m.test(execSync("git log -1 --pretty=%B", { encoding: "utf8" }));
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/helpers/constants.cts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Level } from "./types.cjs";
import type { Level } from "./types.cts";

export const allowedWhenNotRc: Set<Level> = new Set([
"patch",
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions scripts/release/validate-changelog.cts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import fs from "fs";

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

import type { Level } from "./helpers";
import type { Level } from "./helpers/index.cts";

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