Skip to content

Commit 9891dac

Browse files
committed
chore(release script): remove validate-json step if only running in the backend
1 parent 63b63ff commit 9891dac

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

packages/release/src/index.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,17 +176,20 @@ const installDependencies = () => {
176176

177177
const buildProject = () => {
178178
console.log("Building project...");
179-
let filter = "";
180179

181180
if (isFrontend && !isBackend) {
182-
filter = "--filter @monkeytype/frontend";
181+
runProjectRootCommand(
182+
"SENTRY=1 npx turbo lint test validate-json build --filter @monkeytype/frontend --force"
183+
);
183184
} else if (isBackend && !isFrontend) {
184-
filter = "--filter @monkeytype/backend";
185+
runProjectRootCommand(
186+
"SENTRY=1 npx turbo lint test build --filter @monkeytype/backend --force"
187+
);
188+
} else {
189+
runProjectRootCommand(
190+
"SENTRY=1 npx turbo lint test validate-json build --force"
191+
);
185192
}
186-
187-
runProjectRootCommand(
188-
"SENTRY=1 npx turbo lint test validate-json build " + filter + " --force"
189-
);
190193
};
191194

192195
const deployBackend = () => {

0 commit comments

Comments
 (0)