Skip to content

Commit 67a41e8

Browse files
committed
chore: pin problematic dependencies
The package version ranges specified in package.json cause peer dependency conflicts when package-lock.json is removed. Since npm's dependency resolution doesn't consider the versions tracked in package-lock.json, any project that depends on the UI will need to resolve these issues. To fix this, pin the versions of problematic packages to the versions currently set in package-lock.json. Signed-off-by: Nick Hale <[email protected]>
1 parent ad679fa commit 67a41e8

File tree

8 files changed

+1327
-486
lines changed

8 files changed

+1327
-486
lines changed

app/build/layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ export default function BuildLayout({
66
return (
77
<section className="absolute left-0 top-16">
88
<div className="border-t-1 border-gray-300 dark:border-gray-700"
9-
style={{width: `100vw`, height: `calc(100vh - 66px)`}}>
9+
style={{width: `100vw`, height: `calc(100vh - 66px)`}}
10+
>
1011
{children}
1112
</div>
1213
</section>

app/edit/layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ export default function RunLayout({
66
return (
77
<section className="absolute left-0 top-16">
88
<div className="border-t-1 border-gray-300 dark:border-gray-700"
9-
style={{width: `100vw`, height: `calc(100vh - 64px)`}}>
9+
style={{width: `100vw`, height: `calc(100vh - 64px)`}}
10+
>
1011
{children}
1112
</div>
1213
</section>

components/script/chatBar/upload/workspace.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const Workspace = ({onRestart}: WorkspaceProps) => {
2222
useEffect(() => {
2323
getWorkspaceDir().then((wd) => setActingWorkspace(wd))
2424
}, []);
25+
2526
useEffect(() => {
2627
setWorkspace(actingWorkspace)
2728
}, [actingWorkspace]);

components/script/useChatSocket.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const useChatSocket = (isEmpty?: boolean) => {
2525
useEffect(() => {
2626
messagesRef.current = messages
2727
}, [messages]);
28+
2829
useEffect(() => {
2930
socketRef.current = socket
3031
}, [socket]);

config/env.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ let gptscript: GPTScript | null = null;
1212

1313
export function gpt() {
1414
if (!gptscript) {
15-
gptscript = new GPTScript()
15+
gptscript = new GPTScript();
1616
}
17-
;
1817
return gptscript;
1918
}

next.config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {
3-
images: {
4-
unoptimized: true,
5-
}
6-
}
2+
const nextConfig = {}
73

84
module.exports = nextConfig

0 commit comments

Comments
 (0)