Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix(chore): fix windows cls reg (#7669)

VicKun646ea2138e86
diff --git a/packages/design/scripts/generate-clsx.mts b/packages/design/scripts/generate-clsx.mts
index 79b194bff7..8d3cf67a06 100644
--- a/packages/design/scripts/generate-clsx.mts
+++ b/packages/design/scripts/generate-clsx.mts
@@ -59,7 +59,7 @@ function serializeConflicts(conflicts: Record<string, readonly string[] | undefi
const require = createRequire(import.meta.url);
const packageDir = resolve(dirname(require.resolve('tailwind-merge')), '..');
const license = readFileSync(resolve(packageDir, 'LICENSE.md'), 'utf8').trim();
-const header = readFileSync(new URL('../src/helper/clsx.ts', import.meta.url), 'utf8').split('\n\n')[0];
+const header = readFileSync(new URL('../src/helper/clsx.ts', import.meta.url), 'utf8').split(/\r?\n\r?\n/, 1)[0];
const output = `${header}
// Generated by pnpm --filter @univerjs/design prepare. Do not edit.