Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(runtime): detach custom dependency, support node_module caching #1658

Merged
merged 15 commits into from
Nov 27, 2023
Merged
Prev Previous commit
Next Next commit
debug node modules cache pull script
  • Loading branch information
maslow committed Nov 27, 2023
commit c72897fb29f122ba674d3a9828cd77aa2a8f9971
4 changes: 3 additions & 1 deletion runtimes/nodejs/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ fi
CACHED_DEPENDENCIES=""
# if node_modules/.dependencies exists
if [ -f "node_modules/.dependencies" ]; then
$CACHED_DEPENDENCIES=`cat node_modules/.dependencies`
CACHED_DEPENDENCIES=`cat node_modules/.dependencies`
fi

# if $CACHED_DEPENDENCIES is not empty and $CACHED_DEPENDENCIES is equal to $DEPENDENCIES
if [ -n "$CACHED_DEPENDENCIES" ] && [ "$CACHED_DEPENDENCIES" = "$DEPENDENCIES" ]; then
echo "No dependencies changed since last cache build."
exit 0
else
echo "Dependencies changed since last cache build."
fi


Expand Down