Skip to content

Commit

Permalink
Only try the NPM_BUILD_COMMAND if a package.json exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jan 9, 2025
1 parent e298011 commit b0e604e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Only upgrade npm packages if a `package.json` file exists
- Only upgrade npm packages or try to build with `NPM_BUILD_COMMAND` if a `package.json` file exists

### Security

Expand Down
2 changes: 1 addition & 1 deletion docker/tna-python/bin/tna-build
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ then
exit 1
fi

if [ -n "$NPM_BUILD_COMMAND" ]
if [ -n "$NPM_BUILD_COMMAND" ] && [ -f "/app/package.json" ]
then
tna-node "$NPM_BUILD_COMMAND"
fi
Expand Down

0 comments on commit b0e604e

Please sign in to comment.