Skip to content

Commit

Permalink
Check uncommitted build files on pre-push (#7652)
Browse files Browse the repository at this point in the history
This aims to prevent us from forgetting commits of built files (`*.cjs`).
Additionally, this lower the log level of Rollup.
  • Loading branch information
ybiquitous committed Apr 25, 2024
1 parent 48eb848 commit 744f13f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .husky/pre-push
@@ -0,0 +1,2 @@
npm run build -- --silent
npm run build-check
1 change: 1 addition & 0 deletions rollup.config.mjs
Expand Up @@ -46,6 +46,7 @@ export default inputFiles.map((input) => {
plugins: [addWarningForCommonJS()],
},
treeshake: false,
logLevel: 'silent',
};
});

Expand Down

0 comments on commit 744f13f

Please sign in to comment.