diff --git a/Accounts/package.json b/Accounts/package.json index 3db212a173..1b04c48b9c 100644 --- a/Accounts/package.json +++ b/Accounts/package.json @@ -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": [ diff --git a/AdminDashboard/package.json b/AdminDashboard/package.json index a8d84a0181..dc60632913 100644 --- a/AdminDashboard/package.json +++ b/AdminDashboard/package.json @@ -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": [ diff --git a/ApiReference/package.json b/ApiReference/package.json index 6b1f8d48b9..273034af04 100644 --- a/ApiReference/package.json +++ b/ApiReference/package.json @@ -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", diff --git a/Common/package.json b/Common/package.json index 37ce467c4d..cdd0dad18b 100644 --- a/Common/package.json +++ b/Common/package.json @@ -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", diff --git a/CommonServer/package.json b/CommonServer/package.json index de127cacec..b59bde00a3 100644 --- a/CommonServer/package.json +++ b/CommonServer/package.json @@ -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", @@ -65,4 +66,4 @@ "ts-jest": "^27.1.4", "jest-mock-extended": "^3.0.5" } -} +} \ No newline at end of file diff --git a/CommonUI/package.json b/CommonUI/package.json index 02e0009ad2..beca7c03ff 100644 --- a/CommonUI/package.json +++ b/CommonUI/package.json @@ -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", diff --git a/Dashboard/package.json b/Dashboard/package.json index 10fdefe38b..03799925e5 100644 --- a/Dashboard/package.json +++ b/Dashboard/package.json @@ -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": [ diff --git a/DashboardAPI/package.json b/DashboardAPI/package.json index f2170d54ae..e4628b01c7 100644 --- a/DashboardAPI/package.json +++ b/DashboardAPI/package.json @@ -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" }, diff --git a/File/package.json b/File/package.json index d499b70c61..6d223dd6f3 100644 --- a/File/package.json +++ b/File/package.json @@ -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" }, diff --git a/Home/package.json b/Home/package.json index 6b1f8d48b9..06ea983c61 100644 --- a/Home/package.json +++ b/Home/package.json @@ -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", @@ -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", @@ -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" } -} +} \ No newline at end of file diff --git a/Identity/package.json b/Identity/package.json index 14e282ff71..5e62df4e18 100644 --- a/Identity/package.json +++ b/Identity/package.json @@ -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" }, diff --git a/Ingestor/package.json b/Ingestor/package.json index 089c7a0052..e337990c78 100644 --- a/Ingestor/package.json +++ b/Ingestor/package.json @@ -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": "", diff --git a/Probe/package.json b/Probe/package.json index ba0ac53ad5..729bf1a819 100644 --- a/Probe/package.json +++ b/Probe/package.json @@ -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" diff --git a/StatusPage/package.json b/StatusPage/package.json index d1fa6151ba..b50124b7d3 100644 --- a/StatusPage/package.json +++ b/StatusPage/package.json @@ -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": [ diff --git a/TestServer/package.json b/TestServer/package.json index 67ce649ab6..b40bf0c9d0 100644 --- a/TestServer/package.json +++ b/TestServer/package.json @@ -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" }, diff --git a/Workers/package.json b/Workers/package.json index 2089de4db0..4a103c2e76 100644 --- a/Workers/package.json +++ b/Workers/package.json @@ -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" }, diff --git a/Workflow/package.json b/Workflow/package.json index 19078d9a98..4072beb141 100644 --- a/Workflow/package.json +++ b/Workflow/package.json @@ -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" }, diff --git a/package.json b/package.json index 943b583f63..2d39cf7413 100644 --- a/package.json +++ b/package.json @@ -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",