chore(release script): remove validate-json step if only running in the backend

This commit is contained in:
Miodec 2025-06-16 12:13:36 +02:00
parent 63b63ffa9c
commit 9891dac323

View file

@ -176,17 +176,20 @@ const installDependencies = () => {
const buildProject = () => {
console.log("Building project...");
let filter = "";
if (isFrontend && !isBackend) {
filter = "--filter @monkeytype/frontend";
runProjectRootCommand(
"SENTRY=1 npx turbo lint test validate-json build --filter @monkeytype/frontend --force"
);
} else if (isBackend && !isFrontend) {
filter = "--filter @monkeytype/backend";
runProjectRootCommand(
"SENTRY=1 npx turbo lint test build --filter @monkeytype/backend --force"
);
} else {
runProjectRootCommand(
"SENTRY=1 npx turbo lint test validate-json build --force"
);
}
runProjectRootCommand(
"SENTRY=1 npx turbo lint test validate-json build " + filter + " --force"
);
};
const deployBackend = () => {