Skip to content

Commit

Permalink
feat: support verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
phshy0607 committed May 10, 2022
1 parent 9ce1103 commit 57936e7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions src/node/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
Expand Down

0 comments on commit 57936e7

Please sign in to comment.