Skip to content

Commit

Permalink
use @effect/markdown-toc instead of github dependency (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Apr 10, 2024
1 parent ebb6f2c commit 619a0e3
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 26 deletions.
5 changes: 5 additions & 0 deletions .changeset/rich-pants-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/docgen": patch
---

use @effect/markdown-toc instead of github dependency
1 change: 1 addition & 0 deletions docs/modules/Markdown.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { Option } from "effect"

const doc = Domain.createNamedDoc("tests", Option.none(), Option.some("1.0.0"), false, [], Option.none())
const m = Domain.createModule(doc, ["src", "tests.ts"], [], [], [], [], [], [], [])
console.log(Markdown.printModule(m, 0))
```

Added in v1.0.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
},
"dependencies": {
"@effect/cli": "0.35.17",
"@effect/markdown-toc": "^0.1.0",
"@effect/platform": "0.48.15",
"@effect/platform-node": "0.45.17",
"@effect/schema": "0.64.11",
"chalk": "^5.3.0",
"doctrine": "^3.0.0",
"effect": "2.4.11",
"glob": "^10.3.10",
"markdown-toc": "github:effect-ts/markdown-toc",
"prettier": "^3.1.1",
"ts-morph": "^21.0.1",
"tsconfck": "^3.0.0"
Expand Down
46 changes: 22 additions & 24 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export const printModule = (
Effect.tryPromise({
try: () => {
// @ts-ignore
return import("markdown-toc").then((m) => m.default)
return import("@effect/markdown-toc").then((m) => m.default)
},
catch: identity
}).pipe(Effect.orDie)
Expand Down

0 comments on commit 619a0e3

Please sign in to comment.