When I run forge deploy ...
it produces output such as this:
Deploying your app to the development environment.
Press Ctrl+C to cancel.
Running forge lint…
No issues found.
Deploying optum-control-plane to development…
Packaging app files
Error: TypeScript errors in the app caused the bundling to fail. Fix the errors listed below before rerunning the command. [tsl] ERROR in /home/runner/_work/ctp-control-plane-jira-app/ctp-control-plane-jira-app/test/backend/jira/ApiHelper.ts(3,27)
I can see it runs the linter which produces no errors and I can run the lint command on my own…
forge lint ...
But then the next step appears to be “packaging app files” and failing on some typescript issues… But where is the forge pack ..
command? How am I supposed to check that a pull request is ready for deployment without running the deployment command?
People can have syntax issues I can’t seem to test for which then block the deployment because of errors here.
Can the lint command not just check these errors to? Or can we get a stand alone command that does everything up to the deploy step? Or can the deploy command get a flag such as --verify-only
. I see it has a --no-verify
but that seem like the opposite of what we need.