Skip to content

Commit

Permalink
🪟 fix: Windows Build (npm) (#3889)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
danny-avila authored Sep 2, 2024
1 parent 1365990 commit 9ec665d
Show file tree
Hide file tree
Showing 7 changed files with 14,427 additions and 14,545 deletions.
43 changes: 21 additions & 22 deletions .github/workflows/frontend-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,24 @@ jobs:
run: npm run test:ci --verbose
working-directory: client

# Windows job is commented out
# tests_frontend_windows:
# name: Run frontend unit tests on Windows
# timeout-minutes: 60
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v4
# - name: Use Node.js 20.x
# uses: actions/setup-node@v4
# with:
# node-version: 20
# cache: 'npm'

# - name: Install dependencies
# run: npm ci

# - name: Build Client
# run: npm run frontend:ci

# - name: Run unit tests
# run: npm run test:ci --verbose
# working-directory: client
tests_frontend_windows:
name: Run frontend unit tests on Windows
timeout-minutes: 60
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build Client
run: npm run frontend:ci

- name: Run unit tests
run: npm run test:ci --verbose
working-directory: client
3 changes: 1 addition & 2 deletions client/src/utils/artifacts.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import dedent from 'dedent';
import { ArtifactModes } from 'librechat-data-provider';
import { ArtifactModes, shadcnComponents } from 'librechat-data-provider';
import type {
SandpackProviderProps,
SandpackPredefinedTemplate,
} from '@codesandbox/sandpack-react';
import * as shadcnComponents from '~/utils/shadcn';

export const getArtifactsMode = ({
codeArtifacts,
Expand Down
Loading

0 comments on commit 9ec665d

Please sign in to comment.