From 39ce64e93657cf4fc91264a2b5797f913f0c026c Mon Sep 17 00:00:00 2001 From: Sanjeev Sharma Date: Sat, 14 Mar 2026 15:01:42 +0530 Subject: [PATCH 1/2] fix(ci): replace npm ci with npm install for rolldown binding Lockfile was generated on ARM and can miss linux-x64 optional rolldown bindings. npm ci follows lockfile strictly and build fails with missing native binding in CI. npm install resolves platform optional deps and installs linux-x64-gnu binding.~ --- .github/workflows/ci.yml | 6 +++--- .github/workflows/release.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16ea861..9516caf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: cache: npm - name: Install dependencies - run: npm ci + run: npm install - name: Lint run: npm run lint:check @@ -62,7 +62,7 @@ jobs: cache: npm - name: Install dependencies - run: npm ci + run: npm install - name: Run tests with coverage run: npm run test:coverage @@ -92,7 +92,7 @@ jobs: cache: npm - name: Install dependencies - run: npm ci + run: npm install - name: Build run: npm run build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d7248de..6d0619c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: cache: npm - name: Install dependencies - run: npm ci + run: npm install - name: Lint run: npm run lint:check @@ -67,7 +67,7 @@ jobs: cache: npm - name: Install dependencies - run: npm ci + run: npm install - name: Build run: npm run build From a8a36b065e0bc64fa266aa6d961831a0754a8fbe Mon Sep 17 00:00:00 2001 From: Sanjeev Sharma Date: Sat, 14 Mar 2026 15:04:21 +0530 Subject: [PATCH 2/2] fix(ci): npm install for native bindings + expand eslint ignores - npm install workflow switch already applied in previous commit. - This commit includes expanded eslint ignores for generated and config files. --- eslint.config.mjs | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 2d21fce..c0fc42e 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,14 +1,32 @@ -import globals from 'globals'; import pluginJs from '@eslint/js'; -import tseslint from 'typescript-eslint'; import eslintConfigPrettier from 'eslint-config-prettier'; +import simpleImportSort from 'eslint-plugin-simple-import-sort'; import sonarjs from 'eslint-plugin-sonarjs'; import unicorn from 'eslint-plugin-unicorn'; -import simpleImportSort from 'eslint-plugin-simple-import-sort'; +import globals from 'globals'; +import tseslint from 'typescript-eslint'; export default [ // ── Ignore patterns ──────────────────────────────────────────── - { ignores: ['dist/', 'node_modules/', 'coverage/', 'examples/'] }, + { + ignores: [ + // Build outputs + 'dist/', + 'release/', + 'coverage/', + // Dependencies + 'node_modules/', + // Demo / docs / scratch + 'examples/', + 'docs/', + 'todo/', + // Generated declaration files inside dist + '**/*.d.ts', + // Root config files that don't need linting + 'jest.config.js', + 'commitlint.config.mjs', + ], + }, // ── File patterns ────────────────────────────────────────────── { files: ['**/*.{js,mjs,cjs,ts}'] },