From 57936e76c039fdc189910b15044e57f6420cd87d Mon Sep 17 00:00:00 2001 From: phshy0607 Date: Tue, 10 May 2022 19:35:35 +0800 Subject: [PATCH] feat: support verbose --- CHANGELOG.md | 6 ++++++ package.json | 2 +- src/node/utils/index.ts | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8e1210..12bfa40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,9 +15,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased + +### Added +- add LOG_LEVEL=VERBOSE to node env will print more info ### Changed - extract `SharedConfig` to share type between `UserConfig` `UserFileConfig` `ResolvedUserConfig` +### Fixes +- fix iframe tools cannot be click through issue + ## [0.8.2] - 2022-04-21 ### Added diff --git a/package.json b/package.json index 1cd0246..d682228 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "build-client": "tsc -p src/client", "build-node": "tsc -p src/node", "docs": "run-p dev docs-dev", - "docs-dev": "node ./bin/docit start", + "docs-dev": "LOG_LEVEL=VERBOSE node ./bin/docit start", "docs-build": "node ./bin/docit build docs", "test": "vitest", "release": "yarn build && yarn publish && node scripts/gh.js" diff --git a/src/node/utils/index.ts b/src/node/utils/index.ts index 1289132..c6811b3 100644 --- a/src/node/utils/index.ts +++ b/src/node/utils/index.ts @@ -47,6 +47,10 @@ export const readUserConfigFile = async ( const { mod } = await bundleRequire({ filepath: p, }); + + if (process.env?.LOG_LEVEL === "VERBOSE") { + console.log(mod.default); + } return mod.default; } catch (e) { return {};