We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08e2549 commit d804e5cCopy full SHA for d804e5c
package.json
@@ -47,7 +47,7 @@
47
"publish": "nr prepublishOnly && esno scripts/publish.ts",
48
"release": "esno scripts/release.ts",
49
"start": "esno src/index.ts",
50
- "test": "DEBUG=ora-stack:* vitest",
+ "test": "DEBUG=DEBUG:ora-stack:* vitest",
51
"typecheck": "tsc --noEmit"
52
},
53
"devDependencies": {
packages/utils/src/common/debug.ts
@@ -1,5 +1,10 @@
1
+/* eslint-disable no-console */
2
import debugFn from 'debug'
3
4
export function debug(workspace: string) {
- return debugFn(`ora-stack:${workspace}`)
5
+ const d = debugFn(`DEBUG:ora-stack:${workspace}`)
6
+ d.log = (...args: any[]) => {
7
+ console.log(...args)
8
+ }
9
+ return d
10
}
0 commit comments