Skip to content

Commit

Permalink
Add dep-check script to package.json files
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Dec 12, 2023
1 parent b796522 commit c84cbe5
Show file tree
Hide file tree
Showing 18 changed files with 26 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Accounts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"start": "node --require ts-node/register Serve.ts",
"audit": "npm audit --audit-level=low",
"configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"dep-check": "depcheck ./ --skip-missing=true'"
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true'"
},
"browserslist": {
"production": [
Expand Down
2 changes: 1 addition & 1 deletion AdminDashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"start": "node --require ts-node/register Serve.ts",
"audit": "npm audit --audit-level=low",
"configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"dep-check": "depcheck ./ --skip-missing=true'"
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true'"
},
"browserslist": {
"production": [
Expand Down
2 changes: 1 addition & 1 deletion ApiReference/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"audit": "npm audit --audit-level=low",
"light-house": "node lighthouse.js --web",
"light-house-mobile": "node lighthouse.js --mobile",
"dep-check": "depcheck ./ --skip-missing=true --ignores='ejs,puppeteer'"
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true"
},
"dependencies": {
"@types/body-parser": "^1.19.5",
Expand Down
3 changes: 2 additions & 1 deletion Common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"test": "jest --detectOpenHandles",
"coverage": "jest --detectOpenHandles --coverage",
"compile": "tsc"
"compile": "tsc",
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true"
},
"author": "",
"license": "MIT",
Expand Down
7 changes: 4 additions & 3 deletions CommonServer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"main": "index.ts",
"scripts": {
"compile": "tsc",
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
"test": "jest --detectOpenHandles",
"coverage": "jest --detectOpenHandles --coverage",
"debug:test": "cd .. && export $(grep -v '^#' config.env | xargs) && cd CommonServer && node --inspect node_modules/.bin/jest --runInBand ./Tests --detectOpenHandles"
"debug:test": "cd .. && export $(grep -v '^#' config.env | xargs) && cd CommonServer && node --inspect node_modules/.bin/jest --runInBand ./Tests --detectOpenHandles",
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true"
},
"author": "",
"license": "MIT",
Expand Down Expand Up @@ -65,4 +66,4 @@
"ts-jest": "^27.1.4",
"jest-mock-extended": "^3.0.5"
}
}
}
3 changes: 2 additions & 1 deletion CommonUI/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"test": "jest --detectOpenHandles",
"coverage": "jest --detectOpenHandles --coverage",
"compile": "tsc",
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install"
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true"
},
"author": "",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"start": "node --require ts-node/register Serve.ts",
"audit": "npm audit --audit-level=low",
"configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"dep-check": "depcheck ./ --skip-missing=true'"
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true'"
},
"browserslist": {
"production": [
Expand Down
2 changes: 1 addition & 1 deletion DashboardAPI/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
"dev": "npx nodemon",
"audit": "npm audit --audit-level=low",
"dep-check": "depcheck ./ --skip-missing=true",
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true",
"test": "jest --detectOpenHandles",
"coverage": "jest --detectOpenHandles --coverage"
},
Expand Down
2 changes: 1 addition & 1 deletion File/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
"dev": "npx nodemon",
"audit": "npm audit --audit-level=low",
"dep-check": "depcheck ./ --skip-missing=true",
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true",
"test": "jest --detectOpenHandles",
"coverage": "jest --detectOpenHandles --coverage"
},
Expand Down
7 changes: 3 additions & 4 deletions Home/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"start": "node --require ts-node/register Index.ts",
"compile": "tsc",
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
"dev": "npx nodemon",
"test": "jest --detectOpenHandles",
"coverage": "jest --detectOpenHandles --coverage",
Expand All @@ -15,7 +15,7 @@
"audit": "npm audit --audit-level=low",
"light-house": "node lighthouse.js --web",
"light-house-mobile": "node lighthouse.js --mobile",
"dep-check": "depcheck ./ --skip-missing=true --ignores='ejs,puppeteer'"
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true"
},
"dependencies": {
"@types/body-parser": "^1.19.5",
Expand Down Expand Up @@ -48,10 +48,9 @@
"nodemon": "^2.0.20",
"npm-force-resolutions": "0.0.10",
"ora": "^6.1.0",

"start-server-and-test": "^1.14.0",
"ts-jest": "^28.0.2",
"ts-node-dev": "^1.1.8",
"typescript": "^5.3.2"
}
}
}
2 changes: 1 addition & 1 deletion Identity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
"dev": "npx nodemon",
"audit": "npm audit --audit-level=low",
"dep-check": "depcheck ./ --skip-missing=true",
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true",
"test": "jest --detectOpenHandles",
"coverage": "jest --detectOpenHandles --coverage"
},
Expand Down
2 changes: 1 addition & 1 deletion Ingestor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
"dev": "npx nodemon",
"audit": "npm audit --audit-level=low",
"dep-check": "depcheck ./ --skip-missing=true",
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true",
"test": "jest --passWithNoTests"
},
"author": "",
Expand Down
2 changes: 1 addition & 1 deletion Probe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
"dev": "npx nodemon",
"audit": "npm audit --audit-level=low",
"dep-check": "depcheck ./ --skip-missing=true",
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true",
"test": "jest --detectOpenHandles",
"coverage": "jest --detectOpenHandles --coverage",
"debug:test": "node --inspect node_modules/.bin/jest --runInBand ./Tests --detectOpenHandles"
Expand Down
2 changes: 1 addition & 1 deletion StatusPage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"start": "node --require ts-node/register Serve.ts",
"audit": "npm audit --audit-level=low",
"configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"dep-check": "depcheck ./ --skip-missing=true'"
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true'"
},
"browserslist": {
"production": [
Expand Down
2 changes: 1 addition & 1 deletion TestServer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
"dev": "npx nodemon",
"audit": "npm audit --audit-level=low",
"dep-check": "depcheck ./ --skip-missing=true",
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true",
"test": "jest --detectOpenHandles",
"coverage": "jest --detectOpenHandles --coverage"
},
Expand Down
2 changes: 1 addition & 1 deletion Workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
"dev": "npx nodemon",
"audit": "npm audit --audit-level=low",
"dep-check": "depcheck ./ --skip-missing=true",
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true",
"test": "jest --detectOpenHandles",
"coverage": "jest --detectOpenHandles --coverage"
},
Expand Down
2 changes: 1 addition & 1 deletion Workflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
"dev": "npx nodemon",
"audit": "npm audit --audit-level=low",
"dep-check": "depcheck ./ --skip-missing=true",
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true",
"test": "jest --detectOpenHandles",
"coverage": "jest --detectOpenHandles --coverage"
},
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
"remove-all-containers": "docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q) || echo 'No running containers'",
"prepare": "husky install",
"backup": "bash backup.sh",
"update": "npm run prerun && export $(grep -v '^#' config.env | xargs) && docker compose pull && npm run start"
"update": "npm run prerun && export $(grep -v '^#' config.env | xargs) && docker compose pull && npm run start",
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit c84cbe5

Please sign in to comment.