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.
This commit is contained in:
1 file changed
-1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user