Skip to content

Commit 62af6fb

Browse files
committed
fix: ensure token-distribution build does not block project from building, remove yarn patch
Signed-off-by: Tomás Migone <[email protected]>
1 parent d7dd62d commit 62af6fb

File tree

2 files changed

+5
-56
lines changed

2 files changed

+5
-56
lines changed

.yarn/patches/typechain-npm-8.3.2-b02e27439e.patch

Lines changed: 0 additions & 56 deletions
This file was deleted.

packages/token-distribution/scripts/build.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ const graphClientIndex = path.join(graphClientDir, 'index.js')
2929
const contractsDir = path.join(rootDir, 'contracts')
3030
const artifactsDir = path.join(rootDir, 'artifacts')
3131

32+
if (!process.env.STUDIO_API_KEY) {
33+
console.log('Warning: STUDIO_API_KEY is not set. Skipping build steps. Some functionality may be limited.')
34+
process.exit(0)
35+
}
36+
3237
// Check if a file exists
3338
function fileExists(filePath) {
3439
try {

0 commit comments

Comments
 (0)