Skip to content

Commit bf2348b

Browse files
fix:build error
Signed-off-by: shiva <[email protected]>
1 parent 1dc7b57 commit bf2348b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/scripts/builders/contribute.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ const moveContentDirectory = async (
259259
const buildContributorDocs = async () => {
260260
console.log("Building contributor docs...");
261261

262-
let latestRelease = p5Version;
262+
let latestRelease:string = p5Version;
263263
if (/^\d+\.\d+\.\d+$/.exec(latestRelease)) {
264264
latestRelease = `v${ latestRelease}`;
265265
}

src/scripts/parsers/reference.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const parsersOutPath = path.join(__dirname, "out");
2222
*/
2323
export const parseLibraryReference =
2424
async (): Promise<ParsedLibraryReference | null> => {
25-
let latestRelease = p5Version;
25+
let latestRelease:string = p5Version;
2626
if (/^\d+\.\d+\.\d+$/.exec(latestRelease)) {
2727
latestRelease = `v${ latestRelease}`;
2828
}

src/scripts/utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import { fileURLToPath } from "url";
66
import { rewriteRelativeLink } from "../pages/_utils-node";
77
import { p5Version } from "../globals/p5-version";
88

9-
let latestRelease = p5Version;
9+
let latestRelease:string = p5Version;
1010
// If the latest release is a version number (e.g. 1.10.0) without a 'v'
1111
// prefix, add the v prefix
1212
if (/^\d+\.\d+\.\d+$/.exec(latestRelease)) {
13-
latestRelease = `v${ latestRelease}`;
13+
latestRelease = `v${latestRelease}`;
1414
}
1515

1616
export const p5RepoUrl = "https://github.com/processing/p5.js.git";

0 commit comments

Comments
 (0)