diff --git a/src/scripts/parsers/reference.ts b/src/scripts/parsers/reference.ts index 82ef08b84c..1de96d306a 100644 --- a/src/scripts/parsers/reference.ts +++ b/src/scripts/parsers/reference.ts @@ -36,8 +36,8 @@ export const parseLibraryReference = // If we're using a custom build of p5 instead of a public release, create // a build and copy it to the specified path - if (process.env.P5_LIBRARY_PATH) { - await createP5Build('p5.js', '../../../public' + process.env.P5_LIBRARY_PATH) + if (process.env.PUBLIC_P5_LIBRARY_PATH) { + await createP5Build('p5.js', '../../../public' + process.env.PUBLIC_P5_LIBRARY_PATH) } // Copy the reference output so we can process it