Skip to content

Commit

Permalink
fix: add fallback to node for generate_seeding_data script
Browse files Browse the repository at this point in the history
  • Loading branch information
kahlstrm committed Jan 5, 2025
1 parent 4dc1fe2 commit 9e28903
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/generate_seeding_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,9 @@ for COLLECTION_NAME in $COLLECTIONS; do
fi
done
echo "cleaning up excess versions from versioned collections..."
bun run scripts/remove_excess_versions.ts
if ! [ -x "$(command -v bun)" ]; then
echo "bun is not installed, running with node with --experimental-strip-types..."
node --experimental-strip-types apps/cms/src/scripts/import-uploads.ts
else
bun run scripts/remove_excess_versions.ts
fi

0 comments on commit 9e28903

Please sign in to comment.