-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
147 lines (147 loc) · 8.14 KB
/
Copy pathpackage.json
File metadata and controls
147 lines (147 loc) · 8.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"name": "openpath-monorepo",
"version": "4.1.0",
"description": "DNS-based URL whitelist enforcement system for educational environments",
"private": true,
"type": "module",
"scripts": {
"prepare": "husky || true",
"postinstall": "patch-package",
"build": "npm run build --workspaces --if-present",
"lint": "npm run lint --workspace=@openpath/shared && npm run lint --workspace=@openpath/api && npm run lint --workspace=@openpath/dashboard && npm run lint --workspace=@openpath/react-spa && npm run lint --workspace=@openpath/firefox-extension && eslint tests --max-warnings=0 --cache --cache-location .eslintcache --concurrency off",
"lint:fix": "eslint . --fix --cache --cache-location .eslintcache",
"lint:shell": "shellcheck --severity=warning linux/lib/*.sh linux/scripts/**/*.sh tests/**/*.sh",
"clean": "npm run clean --workspaces --if-present && rm -rf node_modules",
"test": "npm run test:shell && npm run test:e2e:helpers && npm test --workspaces --if-present",
"test:shell": "cd tests && bats *.bats",
"test:local": "npm run test:e2e:helpers && npm test --workspaces --if-present",
"test:api": "npm test --workspace=@openpath/api",
"test:dashboard": "npm test --workspace=@openpath/dashboard",
"test:react-spa": "npm test --workspace=@openpath/react-spa",
"test:e2e": "npm run test:e2e --workspace=@openpath/react-spa",
"test:e2e:helpers": "node --import tsx --test --test-concurrency=1 tests/selenium/firefox-extension-uuid.test.ts tests/selenium/linux-auto-allow-diagnostics.test.ts tests/selenium/student-policy-flow.test.ts tests/e2e/student-flow/fixture-server.test.ts tests/e2e/student-flow/reconcile-student-scenario.test.ts tests/e2e/student-flow/windows-student-summary.test.ts",
"test:e2e:smoke": "npm run test:e2e --workspace=@openpath/react-spa -- --grep @smoke",
"test:installer:linux": "bash tests/e2e/ci/run-linux-installer-contracts.sh",
"test:installer:apt": "bash tests/e2e/ci/run-linux-apt-contracts.sh",
"test:contract:linux": "bash tests/e2e/ci/run-linux-contract-scenarios.sh",
"test:installer:contracts": "npm run test:installer:linux && npm run test:installer:apt",
"provision:windows-offline-installer": "npm run provision:windows-offline-installer --workspace=@openpath/api",
"test:student-policy:linux": "bash tests/e2e/ci/run-linux-student-flow.sh",
"test:student-policy:windows": "pwsh -NoProfile -ExecutionPolicy Bypass -File tests/e2e/ci/run-windows-student-flow.ps1",
"check:ps-culture": "node scripts/check-ps-datetime-culture.mjs",
"test:repo-config": "node --test tests/repo-config.test.mjs tests/generate-docker-manifests.test.mjs tests/check-ps-datetime-culture.test.mjs tests/verify-stable-client-extension-id.test.mjs tests/check-new-file-coverage.test.mjs tests/e2e-scope-check.test.mjs tests/generate-contract-constants.test.mjs windows/offline-installer/tests/pinned-payloads.test.mjs",
"test:windows-runner-direct": "node --test tests/windows-runner-direct.test.mjs",
"test:repo-test-files": "bash scripts/check-test-files.sh",
"test:watch:spa": "npm run test --workspace=@openpath/react-spa -- --watch",
"test:watch:api": "npm run test:watch --workspace=@openpath/api",
"e2e:setup": "bash scripts/e2e-setup.sh",
"e2e:teardown": "docker compose -f docker-compose.test.yml down",
"e2e:run": "npm run test:e2e --workspace=@openpath/react-spa",
"e2e:full": "npm run e2e:setup && (npm run e2e:run; status=$?; npm run e2e:teardown; exit $status)",
"typecheck": "npm run typecheck --workspaces --if-present",
"verify": "npm run verify:quick",
"verify:quick": "npm run typecheck && npm run lint && npm run format:check",
"verify:affected": "npm run verify:quick && node scripts/affected-workspaces.js --run-tests",
"verify:agent": "node scripts/agent-verify.js",
"verify:staged": "lint-staged",
"verify:staged:affected": "npm run verify:staged && node scripts/affected-workspaces.js --run-tests",
"verify:static": "turbo run typecheck lint --parallel",
"verify:checks": "concurrently --group --names 'shell,format,docs,files,repo,tests,migrations,ps-culture' 'npm:lint:shell' 'npm:format:check' 'npm:verify:docs' 'npm:security:files' 'npm:test:repo-config' 'npm:test:repo-test-files' 'npm:verify:migrations:metadata' 'npm:check:ps-culture'",
"verify:migrations:metadata": "npm --workspace=@openpath/api run verify:migrations",
"verify:docs": "node scripts/verify-docs.mjs",
"verify:unit": "npm run build --workspace=@openpath/shared && npm run test:e2e:helpers && turbo run test --parallel",
"verify:security": "concurrently --group --names 'audit,secrets,size' 'npm:security:audit' 'npm:security:secrets' 'npm:size:check'",
"verify:coverage": "node scripts/run-changed-coverage.js && node scripts/check-new-file-coverage.js",
"verify:full": "bash scripts/verify-full.sh",
"format:check": "prettier --check .",
"format:fix": "prettier --write .",
"security:secrets": "secretlint '**/*.{js,ts,tsx,json,yml,yaml,env,env.*}' '!coverage/**' '!api/coverage/**' '!react-spa/e2e/test-results/**' '!react-spa/test-results/**' '!react-spa/playwright-report/**'",
"security:audit": "tmp=\"$(mktemp \"${TMPDIR:-/tmp}/openpath-audit-report.XXXXXX.json\")\"; npm audit --audit-level=high --json > \"$tmp\" || true; mv \"$tmp\" audit-report.json && npx prettier --write audit-report.json >/dev/null && node scripts/check-npm-audit-critical.mjs audit-report.json",
"security:files": "bash scripts/check-sensitive-files.sh",
"size:check": "test -d react-spa/dist && npm run size --workspace=@openpath/react-spa || echo 'SKIP: react-spa/dist not built, skipping size check'",
"docker:manifests": "node scripts/generate-docker-manifests.mjs",
"docker:manifests:check": "node scripts/generate-docker-manifests.mjs --check",
"contract:constants": "node scripts/generate-contract-constants.mjs",
"contract:constants:check": "node scripts/generate-contract-constants.mjs --check",
"diagnostics:windows:direct": "node scripts/run-windows-runner-direct.mjs",
"canary:windows-offline-installer": "node scripts/windows-offline-installer-canary.mjs",
"diagnostics:linux-student:local": "node scripts/run-linux-student-policy-local.mjs",
"ops:change-brief": "node ../scripts/change-brief.mjs --workspace .. --repo openpath"
},
"devDependencies": {
"@commitlint/cli": "^20.5.3",
"@commitlint/config-conventional": "^20.4.0",
"@eslint/js": "^10.0.1",
"@secretlint/secretlint-rule-preset-recommend": "^11.3.1",
"@size-limit/preset-app": "^12.1.0",
"concurrently": "^9.2.1",
"drizzle-orm": "^0.45.2",
"eslint": "^10.0.0",
"eslint-plugin-import-x": "^4.16.2",
"eslint-plugin-no-only-tests": "^3.3.0",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"node-gyp-build": "^4.8.4",
"patch-package": "^8.0.1",
"pg": "8.20.0",
"prettier": "^3.8.1",
"secretlint": "^11.3.1",
"size-limit": "^12.1.0",
"turbo": "^2.8.3",
"typescript-eslint": "^8.20.0"
},
"lint-staged": {
"*.{js,ts,tsx,mjs,cjs}": [
"bash -c 'files=\"$@\"; filtered=\"$(echo \"$files\" | tr \" \" \"\\n\" | grep -v \"_backup/\" | tr \"\\n\" \" \")\"; [ -n \"$filtered\" ] && eslint --fix $filtered || true' --",
"prettier --write",
"secretlint"
],
"*.{json,yml,yaml,env*}": [
"secretlint"
],
"*.{json,md,yml,yaml}": [
"prettier --write"
],
"*.{ps1,psm1}": [
"node scripts/check-ps-datetime-culture.mjs"
]
},
"engines": {
"node": ">=20.0.0"
},
"packageManager": "npm@10.9.3",
"repository": {
"type": "git",
"url": "git+https://github.com/balejosg/openpath.git"
},
"keywords": [
"dns",
"whitelist",
"dnsmasq",
"education",
"content-filter"
],
"license": "AGPL-3.0-or-later",
"workspaces": [
"api",
"react-spa",
"shared",
"dashboard",
"firefox-extension"
],
"overrides": {
"esbuild": "^0.25.0",
"flatted": "^3.4.0",
"brace-expansion": "^5.0.5",
"fast-uri": "^3.1.2",
"qs": "^6.14.2",
"minimatch": "^10.2.1",
"shell-quote": "^1.8.4",
"router": {
"path-to-regexp": "^8.4.0"
},
"swagger-jsdoc": {
"glob": "^11.0.0"
}
}
}