File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ import type { CopyOptions, Dirent } from "fs";
5
5
import { fileURLToPath } from "url" ;
6
6
import { rewriteRelativeLink } from "../pages/_utils-node" ;
7
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
+
8
12
/* Absolute path to the root of this project repo */
9
13
export const repoRootPath = path . join (
10
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
] ) ;
46
52
console . log ( "Repository cloned successfully." ) ;
47
53
await fixAbsolutePathInPreprocessor ( localSavePath ) ;
You can’t perform that action at this time.
0 commit comments