Restore Missing `package.json` File to Fix Build and Dependency Issues - #1297
Description
This PR restores the missing package.json file in the owtf/webapp directory. The absence of this file was causing multiple issues, including:
- Docker build failures (
make compose-safe). - Dependency installation errors.
-
yarn buildcommand failures due to missing scripts.
The restored package.json includes all necessary dependencies and scripts required for the proper functioning of the web application.
Related Issue
This PR addresses the issue described in #1297 .
The issue outlines the missing package.json file and its impact on the build and installation process.
Motivation and Context
The package.json file is critical for defining the dependencies and scripts for the web application. Its absence was blocking the development and deployment process, causing cascading errors. Restoring this file resolves these issues and ensures the project can be built and run successfully.
Reviewers
@7a
@viyatb
How Has This Been Tested?
- Verified that the restored
package.jsonallows successful dependency installation usingyarn install. - Confirmed that the
yarn buildcommand works as expected. - Tested the
make compose-safecommand to ensure the Docker build process completes without errors. - Checked the application functionality after restoring the file.
**Screenshots **
Types of Changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Other
Checklist
- [x] My code follows the code style (modified PEP8) of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.