Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

chore: use localhost as hostname for docs.preview dev command #4357

Merged
merged 1 commit into from
Apr 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/chains/ethereum/ethereum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"scripts": {
"docs.build": "npx shx rm -rf ./lib/docs ./lib/api.json && npm run docs.typedoc",
"docs.typedoc": "typedoc --options ./typedoc.json --readme ./README.md --out ../../../../docs/typedoc --json ../../../../docs/typedoc/api.json src/api.ts",
"docs.preview": "ws --open --port 3010 --directory ../../../../docs",
"docs.preview": "ws --open --hostname localhost --port 3010 --directory ../../../../docs",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough - I don't use WSL, but trust that this does help :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha. 127.0.0 doesn't make it to wsl from windows by default, but localhost does.

"tsc": "tsc --build",
"test": "nyc --reporter lcov npm run mocha",
"mocha": "cross-env TS_NODE_FILES=true mocha --timeout 5000 -s 0 --exit --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'",
Expand Down