build: Update scripts to be more selective on files

And run on test files
This commit is contained in:
Edmund Miller 2022-11-13 16:08:42 -06:00 committed by Thomas A. Christensen II
parent 205818f4d8
commit 0541993f3c

View file

@ -5,10 +5,10 @@
"main": "lib/main.js", "main": "lib/main.js",
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"format": "prettier --write '**/*'", "format": "prettier --write '**/*.{ts,js,yml,md,json}'",
"format:check": "prettier --check '**/*'", "format:check": "prettier --check '**/*.{ts,js,yml,md,json}'",
"lint": "eslint src/**/*.ts", "lint": "eslint {src,test}/**/*.ts",
"lint:fix": "eslint --fix src/**/*.ts", "lint:fix": "eslint --fix {src,test}/**/*.ts",
"package": "ncc build --source-map --license LICENSE", "package": "ncc build --source-map --license LICENSE",
"test": "ava", "test": "ava",
"all": "npm run build && npm run format && npm run lint && npm run package && npm test" "all": "npm run build && npm run format && npm run lint && npm run package && npm test"