Skip to content

Commit

Permalink
Yarn serve logging (#1092)
Browse files Browse the repository at this point in the history
* esbuild: fix some issues with defines.js and add test

* esbuild: fixup filtered logging helper

---------

Signed-off-by: Pablo Mayrgundter <[email protected]>
  • Loading branch information
pablo-mayrgundter authored Apr 4, 2024
1 parent 6902431 commit 6d56d25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bldrs",
"version": "1.0.953",
"version": "1.0.954",
"main": "src/index.jsx",
"license": "MIT",
"homepage": "https://github.com/bldrs-ai/Share",
Expand Down
4 changes: 2 additions & 2 deletions tools/esbuild/utils.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** Wrapper for logging to allow disable from `jest test-tools`. */
export function log(msg) {
export function log(...msg) {
if (process.env.NO_LOG === 'true') {
return
}
// eslint-disable-next-line no-console
console.log(msg)
console.log(...msg)
}

0 comments on commit 6d56d25

Please sign in to comment.