fix: replace jsonc with jsonc-parser and cleanup build config

This commit is contained in:
openhands committed 2026-08-11 16:50:10 +02:00
1 parent 0bd2ac6707
commit e867b675fc
12 files changed
+195 -216

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
import fs from "node:fs/promises";
import path from "node:path";
import JSON5 from "json5";
import * as JSONC from "jsonc-parser";
import {
CLIENT_TRANSLATION_FILES,
getClientTranslationFile,
@@ -29,7 +29,7 @@ export default async function ClientTranslationsPage({
path.join(/*turbopackIgnore: true*/ process.cwd(), file.relPath),
"utf-8",
);
const parsed = file.format === "json5" ? JSON5.parse(raw) : JSON.parse(raw);
const parsed = file.format === "json5" ? JSONC.parse(raw) : JSON.parse(raw);
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
// Nitro localization files are flat: { "key.with.dots": "value" }.
// Coerce values to strings so the editor can render them in <input>.
-1
View File
@@ -1,7 +1,6 @@
@import "tailwindcss";
@plugin "@tailwindcss/forms";
@plugin "@tailwindcss/typography";
@plugin "tailwindcss-animate";
@custom-variant dark (&:where(.dark, .dark *));
@theme {