Skip to content

Commit

Permalink
chore: removing documentation generation from pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
steniowagner committed Feb 17, 2024
1 parent 7f267c9 commit fd158a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ npm run prettier:fix
npm run lint:fix
npm run build
npm run test
rm -rf docs
mkdir docs
npx spectaql spectaql-config.yaml -t ./docs
git add -A .
# rm -rf docs
# mkdir docs
# npx spectaql spectaql-config.yaml -t ./docs
# git add -A .
4 changes: 3 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ const server = new ApolloServer<Context>({
},
listen: { port: parseInt(process.env.PORT! as string) },
});
console.log(`UHUL! Cine-Tasty-API is running at ${url}!`);
if (process.env.NODE_ENV !== "production") {
console.log(`UHUL! Cine-Tasty-API is running at ${url}!`);

Check warning on line 33 in src/app.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Unexpected console statement
}
})();

0 comments on commit fd158a1

Please sign in to comment.