Revert "Fix @pierre/diffs import path"

This reverts commit 53be870ec4.
This commit is contained in:
Cursor Agent committed 2026-06-13 16:26:24 +00:00
1 parent 53be870ec4
commit 9959fe18c0
3 files changed
+1 -17

No files matched your search

-1
View File
@@ -2,7 +2,6 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<script crossorigin="anonymous" src="https://unpkg.com/react-scan/dist/auto.global.js"></script>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content"
+1 -1
View File
@@ -1,4 +1,4 @@
import { parsePatchFiles } from "@pierre/diffs";
import { parsePatchFiles } from "@pierre/diffs/utils/parsePatchFiles";
import type { FileDiffMetadata } from "@pierre/diffs/types";
export const DIFF_THEME_NAMES = {
-15
View File
@@ -17,9 +17,6 @@ import { hasCloudPublicConfig } from "./cloud/publicConfig";
import { getRouter } from "./router";
import { APP_DISPLAY_NAME } from "./branding";
import { syncDocumentWindowControlsOverlayClass } from "./lib/windowControlsOverlay";
import { DraftId, useComposerDraftStore } from "./composerDraftStore";
import { scopeProjectRef } from "@t3tools/client-runtime";
import type { EnvironmentId, ProjectId, ThreadId } from "@t3tools/contracts";
// Electron loads the app from a file-backed shell, so hash history avoids path resolution issues.
const history = isElectron ? createHashHistory() : createBrowserHistory();
@@ -36,18 +33,6 @@ const clerkPublishableKey = import.meta.env.VITE_CLERK_PUBLISHABLE_KEY as string
const app = <RouterProvider router={router} />;
if (import.meta.env.VITE_REACT_SCAN_DEMO === "1") {
const draftId = DraftId.make("react-scan-demo");
useComposerDraftStore.getState().setProjectDraftThreadId(
scopeProjectRef("react-scan-env" as EnvironmentId, "react-scan-project" as ProjectId),
draftId,
{
threadId: "react-scan-thread" as ThreadId,
createdAt: "2026-01-01T00:00:00.000Z",
},
);
}
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<React.StrictMode>
{clerkPublishableKey && hasCloudPublicConfig() ? (