Skip to content

Commit 8b62bf9

Browse files
committed
trying stuff
1 parent 9591371 commit 8b62bf9

4 files changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/pr-check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
cache-dependency-path: package-lock.json
2626

2727
- name: Install dependencies
28-
run: npm ci
28+
# Use npm install instead of npm ci to correctly resolve platform-specific
29+
# optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries)
30+
run: npm install
2931

3032
- name: Run build:electron
3133
run: npm run build:electron

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ jobs:
4141
cache-dependency-path: package-lock.json
4242

4343
- name: Install dependencies
44-
run: npm ci
44+
# Use npm install instead of npm ci to correctly resolve platform-specific
45+
# optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries)
46+
run: npm install
4547

4648
- name: Build Electron App (macOS)
4749
if: matrix.os == 'macos-latest'

.npmrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Cross-platform compatibility for Tailwind CSS v4 and lightningcss
2+
# These packages use platform-specific optional dependencies that npm
3+
# automatically resolves based on your OS (macOS, Linux, Windows, WSL)
4+
#
5+
# IMPORTANT: When switching platforms or getting platform mismatch errors:
6+
# 1. Delete node_modules: rm -rf node_modules apps/*/node_modules
7+
# 2. Run: npm install
8+
#
9+
# In CI/CD: Use "npm install" instead of "npm ci" to allow npm to resolve
10+
# the correct platform-specific binaries at install time.

apps/app/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,12 @@
4343
"@radix-ui/react-slot": "^1.2.4",
4444
"@radix-ui/react-tabs": "^1.1.13",
4545
"@radix-ui/react-tooltip": "^1.2.8",
46-
"@tailwindcss/oxide-linux-x64-gnu": "^4.1.17",
4746
"@tanstack/react-query": "^5.90.12",
4847
"class-variance-authority": "^0.7.1",
4948
"clsx": "^2.1.1",
5049
"cmdk": "^1.1.1",
5150
"dotenv": "^17.2.3",
5251
"geist": "^1.5.1",
53-
"lightningcss-linux-x64-gnu": "^1.30.2",
5452
"lucide-react": "^0.556.0",
5553
"next": "16.0.7",
5654
"react": "19.2.0",

0 commit comments

Comments
 (0)