Skip to content

Commit

Permalink
Merge pull request #1167 from mathjax/script-defaults
Browse files Browse the repository at this point in the history
Update lint and format scripts to allow specifying the files to process
  • Loading branch information
dpvc authored Jan 13, 2025
2 parents bacc102 + 5ff1790 commit 45c07db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@
],
"scripts": {
"=============================================================================== code hygene": "",
"lint": "eslint ts/",
"lint:fix": "eslint --fix ts/ --format unix",
"format": "prettier --check \"ts/**/*.{ts,tsx}\"",
"format:fix": "prettier --write \"ts/**/*.{ts,tsx}\"",
"lint": "check() { eslint ${1:-ts/}; }; check",
"lint:fix": "fix() { eslint --fix ${1:-ts/}; -- format unix}; fix",
"format": "check() { prettier --check ${1:-\"ts/**/*.{ts,tsx}\"}; }; check",
"format:fix": "fix() { prettier --write ${1:-\"ts/**/*.{ts,tsx}\"}; }; fix",
"=============================================================================== clean": "",
"clean:dir": "clean() { pnpm -s log:single \"Cleaning $1 directory\"; pnpm rimraf $1; }; clean",
"clean:lib": "clean() { pnpm -s log:single \"Cleaning $1 component libs\"; pnpm rimraf -g components/$1'/**/lib'; }; clean",
Expand Down Expand Up @@ -122,7 +122,7 @@
"build-mjs": "pnpm -s mjs:build",
"make-cjs-components": "pnpm -s cjs:components:make && pnpm -s cjs:bundle:finalize",
"make-mjs-components": "pnpm -s mjs:components:make",
"make-one": "make() { components/bin/makeAll --no-subdirs $3 $4 --$2 components/$2/$1; }; make",
"make-one": "make() { components/bin/makeAll --no-subdirs $3 $4 --${2:-mjs} components/${2-:mjs}/$1; }; make",
"make-components": "pnpm -s make-mjs-components",
"compile": "pnpm -s compile-mjs",
"build": "pnpm -s build-mjs",
Expand Down

0 comments on commit 45c07db

Please sign in to comment.