From 147b19d4ff1005bbdf9923fd811d988a330a02b7 Mon Sep 17 00:00:00 2001 From: Matteo Date: Fri, 18 Sep 2026 15:18:04 +0200 Subject: [PATCH] fix(web): remove design-system's broken "lint" script alias "lint": "lint:stylelint" tries to exec a binary literally named "lint:stylelint", which doesn't exist - it needed "npm run"/"pnpm run" to actually invoke the script by that name. Pre-existing, unrelated to any Nx work: the root `lint` script never delegates per-package (it globs the whole workspace directly with eslint), and nothing in CI calls `pnpm --filter design-system run lint` either, so this has never been exercised. Also discovered `lint:stylelint` itself has never successfully run - it's missing the `postcss-scss` dependency stylelint's SCSS custom syntax needs (Cannot find package 'postcss-scss', reproduces identically outside of Nx). That's a separate, deeper pre-existing gap, left alone. Removed the alias entirely rather than fixing it in place: nothing currently calls it, and Nx's per-project lint target (next commit) needs the "lint" name free to create a real ESLint-backed target for this package, same as every other one. --- web/packages/design-system/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/web/packages/design-system/package.json b/web/packages/design-system/package.json index 5fedcb08e25..405846dfb56 100644 --- a/web/packages/design-system/package.json +++ b/web/packages/design-system/package.json @@ -22,7 +22,6 @@ "main": "src/index.ts", "private": false, "scripts": { - "lint": "lint:stylelint", "lint:stylelint": "stylelint './src/styles/**/*.scss' --cache", "tokens": "node build/build-tokens.js", "tokens:w": "onchange -i \"./src/tokens/**/*.json\" -- npm run tokens",