Skip to content

Commit 9ec665d

Browse files
authored
🪟 fix: Windows Build (npm) (danny-avila#3889)
* chore: package-lock.json * chore: remove shadcn files (temp) * refactor: language comparisons script * fix: resolve package-lock file for windows compatibility * chore: Enable Windows unit tests for frontend * refactor: move shadcn components to data-provider
1 parent 1365990 commit 9ec665d

File tree

7 files changed

+14427
-14545
lines changed

7 files changed

+14427
-14545
lines changed

.github/workflows/frontend-review.yml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,24 @@ jobs:
3333
run: npm run test:ci --verbose
3434
working-directory: client
3535

36-
# Windows job is commented out
37-
# tests_frontend_windows:
38-
# name: Run frontend unit tests on Windows
39-
# timeout-minutes: 60
40-
# runs-on: windows-latest
41-
# steps:
42-
# - uses: actions/checkout@v4
43-
# - name: Use Node.js 20.x
44-
# uses: actions/setup-node@v4
45-
# with:
46-
# node-version: 20
47-
# cache: 'npm'
48-
49-
# - name: Install dependencies
50-
# run: npm ci
51-
52-
# - name: Build Client
53-
# run: npm run frontend:ci
54-
55-
# - name: Run unit tests
56-
# run: npm run test:ci --verbose
57-
# working-directory: client
36+
tests_frontend_windows:
37+
name: Run frontend unit tests on Windows
38+
timeout-minutes: 60
39+
runs-on: windows-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
- name: Use Node.js 20.x
43+
uses: actions/setup-node@v4
44+
with:
45+
node-version: 20
46+
cache: 'npm'
47+
48+
- name: Install dependencies
49+
run: npm ci
50+
51+
- name: Build Client
52+
run: npm run frontend:ci
53+
54+
- name: Run unit tests
55+
run: npm run test:ci --verbose
56+
working-directory: client

client/src/utils/artifacts.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import dedent from 'dedent';
2-
import { ArtifactModes } from 'librechat-data-provider';
2+
import { ArtifactModes, shadcnComponents } from 'librechat-data-provider';
33
import type {
44
SandpackProviderProps,
55
SandpackPredefinedTemplate,
66
} from '@codesandbox/sandpack-react';
7-
import * as shadcnComponents from '~/utils/shadcn';
87

98
export const getArtifactsMode = ({
109
codeArtifacts,

0 commit comments

Comments
 (0)