diff --git a/entrypoint.sh b/entrypoint.sh index 5c5fd5d..4ca9d37 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -79,10 +79,18 @@ fi project_command="cd ${project_dir};" +# +# npm emits warning cauze it uses experimental nodejs feature +# see https://github.com/nodejs/node/issues/55417 +# +# With node-v24 this might not be needed +# +npm_command="NODE_OPTIONS=--disable-warning=ExperimentalWarning npm" + if [ -z "${SKIP_NPM_INSTALL:-}" ]; then - project_command="${project_command} npm install;" + project_command="${project_command} ${npm_command} install;" fi -project_command="${project_command} npm test;" +project_command="${project_command} ${npm_command} test;" su - "${project_user}" -c "${project_command}"