Skip to content

Commit

Permalink
Merge pull request #23 from BlizzBolts/dev
Browse files Browse the repository at this point in the history
fix: exports path
  • Loading branch information
null51_ authored May 11, 2022
2 parents f1fc53e + 99ca47d commit 0917388
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## Unreleased

### Fixes
- Fix `package.json#exports` path
- Remove useless LOG_LEVEL design, need add more cli options

### Added
- Add error logging in config reading

## [0.8.3] - 2022-05-10

Expand Down
11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blizzbolts/docit",
"version": "0.8.3",
"version": "0.8.4",
"license": "MIT",
"bin": {
"docit": "bin/docit.js"
Expand All @@ -13,12 +13,7 @@
"main": "./build/node/index.js",
"module": "./build/node/index.js",
"types": "./build/node/index.d.ts",
"exports": {
".": {
"import": "./build/node/index.js",
"types": "./build/node/index.d.ts"
}
},
"exports": "./build/node/index.js",
"scripts": {
"dev": "rimraf -rf build && run-p dev-node entry-prepare dev-client",
"dev-node": "tsc -w -p src/node",
Expand All @@ -29,7 +24,7 @@
"build-client": "tsc -p src/client",
"build-node": "tsc -p src/node",
"docs": "run-p dev docs-dev",
"docs-dev": "LOG_LEVEL=VERBOSE node ./bin/docit start",
"docs-dev": "node ./bin/docit start",
"docs-build": "node ./bin/docit build docs",
"test": "vitest",
"release": "yarn build && yarn publish && node scripts/gh.js"
Expand Down
5 changes: 2 additions & 3 deletions src/node/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ export const readUserConfigFile = async (
filepath: p,
});

if (process.env?.LOG_LEVEL === "VERBOSE") {
console.log(mod.default);
}
return mod.default;
} catch (e) {
logger.error("Something wrong happens while reading config file.");
console.error(e);
return {};
}
};
Expand Down

0 comments on commit 0917388

Please sign in to comment.