We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1f7199 commit 85c1ba9Copy full SHA for 85c1ba9
1 file changed
src/scripts/utils.ts
@@ -5,6 +5,10 @@ import type { CopyOptions, Dirent } from "fs";
5
import { fileURLToPath } from "url";
6
import { rewriteRelativeLink } from "../pages/_utils-node";
7
8
+// This should correspond to the latest release tag name from
9
+// https://github.com/processing/p5.js/releases.
10
+export const latestRelease = "v1.10.0";
11
+
12
/* Absolute path to the root of this project repo */
13
export const repoRootPath = path.join(
14
path.dirname(fileURLToPath(import.meta.url)),
@@ -42,6 +46,8 @@ export const cloneLibraryRepo = async (
42
46
"--depth",
43
47
"1",
44
48
"--filter=blob:none",
49
+ "--branch",
50
+ latestRelease
45
51
]);
52
console.log("Repository cloned successfully.");
53
await fixAbsolutePathInPreprocessor(localSavePath);
0 commit comments