Skip to content

Commit 6cf86a7

Browse files
committed
Merge branch 'feat/skills-manage' into feat/skills-roadmap
2 parents 38fb9a7 + f790f5d commit 6cf86a7

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎apps/server/src/skills/JsoncSettings.ts‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@
1616
*/
1717
import * as Effect from "effect/Effect";
1818
import * as FileSystem from "effect/FileSystem";
19-
import { applyEdits, modify, parse, type FormattingOptions, type ParseError } from "jsonc-parser";
19+
// The ESM build: the package's `main` is UMD, whose `require("./impl/format")` calls the server
20+
// bundler can't follow, so the bundled server fails to start.
21+
import {
22+
applyEdits,
23+
modify,
24+
parse,
25+
type FormattingOptions,
26+
type ParseError,
27+
} from "jsonc-parser/lib/esm/main.js";
2028
import { writeFileStringAtomically } from "@t3tools/shared/atomicWrite";
2129

2230
/** Keys of objects, and positions in arrays. */

0 commit comments

Comments
 (0)