mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
fix(shared): import jsonc-parser ESM entry
Align with ocm-cli's import so shared resolves the ESM build and its types consistently under Bun and Vite bundling.
This commit is contained in:
1 parent
9ae229f44a
commit
2106722c07
1 file changed
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { parse as parseJsoncLib, parseTree, findNodeAtLocation, type ParseError, type JSONPath } from 'jsonc-parser'
|
||||
import { parse as parseJsoncLib, parseTree, findNodeAtLocation, type ParseError, type JSONPath } from 'jsonc-parser/lib/esm/main.js'
|
||||
|
||||
export function parseJsonc<T = unknown>(content: string): T {
|
||||
const errors: ParseError[] = []
|
||||
|
||||
Reference in new issue
Block a user