From 8b62bf98171aa8a14eb8588e1b230ee04bdcc1cf Mon Sep 17 00:00:00 2001 From: Cody Seibert Date: Thu, 11 Dec 2025 22:43:57 -0500 Subject: [PATCH] trying stuff --- .github/workflows/pr-check.yml | 4 +++- .github/workflows/release.yml | 4 +++- .npmrc | 10 ++++++++++ apps/app/package.json | 2 -- 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 .npmrc diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 028460d8..e6044823 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -25,7 +25,9 @@ jobs: cache-dependency-path: package-lock.json - name: Install dependencies - run: npm ci + # Use npm install instead of npm ci to correctly resolve platform-specific + # optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries) + run: npm install - name: Run build:electron run: npm run build:electron diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9e6dfab9..cb2ad857 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,7 +41,9 @@ jobs: cache-dependency-path: package-lock.json - name: Install dependencies - run: npm ci + # Use npm install instead of npm ci to correctly resolve platform-specific + # optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries) + run: npm install - name: Build Electron App (macOS) if: matrix.os == 'macos-latest' diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..e5c1ee73 --- /dev/null +++ b/.npmrc @@ -0,0 +1,10 @@ +# Cross-platform compatibility for Tailwind CSS v4 and lightningcss +# These packages use platform-specific optional dependencies that npm +# automatically resolves based on your OS (macOS, Linux, Windows, WSL) +# +# IMPORTANT: When switching platforms or getting platform mismatch errors: +# 1. Delete node_modules: rm -rf node_modules apps/*/node_modules +# 2. Run: npm install +# +# In CI/CD: Use "npm install" instead of "npm ci" to allow npm to resolve +# the correct platform-specific binaries at install time. diff --git a/apps/app/package.json b/apps/app/package.json index 7770aa69..74431590 100644 --- a/apps/app/package.json +++ b/apps/app/package.json @@ -43,14 +43,12 @@ "@radix-ui/react-slot": "^1.2.4", "@radix-ui/react-tabs": "^1.1.13", "@radix-ui/react-tooltip": "^1.2.8", - "@tailwindcss/oxide-linux-x64-gnu": "^4.1.17", "@tanstack/react-query": "^5.90.12", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "cmdk": "^1.1.1", "dotenv": "^17.2.3", "geist": "^1.5.1", - "lightningcss-linux-x64-gnu": "^1.30.2", "lucide-react": "^0.556.0", "next": "16.0.7", "react": "19.2.0",