Skip to content

Commit ad0e157

Browse files
committed
remove unist dep
1 parent 87aa591 commit ad0e157

File tree

3 files changed

+2
-22
lines changed

3 files changed

+2
-22
lines changed

packages/core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"tsup": "^8.4.0",
5454
"typescript": "^5.8.3",
5555
"unified": "^11.0.5",
56-
"unist": "^0.0.1",
5756
"unist-util-remove": "^4.0.0",
5857
"vfile": "^6.0.3"
5958
}

packages/core/src/SourcePlugin.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import * as Mailbox from "effect/Mailbox"
88
import type * as Scope from "effect/Scope"
99
import * as Stream from "effect/Stream"
1010
import type * as Unified from "unified"
11-
import type * as Unist from "unist"
1211
import * as Remove from "unist-util-remove"
1312
import type { VFile } from "vfile"
1413
import { ContentlayerError } from "./ContentlayerError.ts"
@@ -108,20 +107,11 @@ export class UnifiedOutput extends Context.Tag("@effect/contentlayer/SourcePlugi
108107
* @category unified
109108
*/
110109
export const unified = <
111-
ParseTree extends Unist.Node,
112-
HeadTree extends Unist.Node,
113-
TailTree extends Unist.Node,
114-
CompileTree extends Unist.Node,
115-
Out extends Unified.CompileResults,
116110
EX = never
117111
>(options: {
118112
readonly processor:
119-
| Unified.Processor<ParseTree, HeadTree, TailTree, CompileTree, Out>
120-
| Effect.Effect<
121-
Unified.Processor<ParseTree, HeadTree, TailTree, CompileTree, Out>,
122-
EX,
123-
Source.Source.Provided | Scope.Scope
124-
>
113+
| Unified.Processor
114+
| Effect.Effect<Unified.Processor, EX, Source.Source.Provided | Scope.Scope>
125115
readonly extractFields?: ((vfile: VFile) => Record<string, any>) | undefined
126116
}): <Meta, In, E>(
127117
source: Source.Source<Meta, In, E>

pnpm-lock.yaml

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)