refactor: add cwd constant

This commit is contained in:
Innei
2022-03-27 15:11:23 +08:00
parent c8d957271f
commit b89897aafc
13 changed files with 85 additions and 45 deletions

View File

@@ -1,6 +1,6 @@
const { registerGlobals } = require('zx-cjs')
registerGlobals()
const globals = { consola: console, isDev: true }
const globals = { consola: console, isDev: true, cwd: process.cwd() }
for (const key in globals) {
global[key] = globals[key]