-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
222 lines (222 loc) · 9.29 KB
/
package.json
File metadata and controls
222 lines (222 loc) · 9.29 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
{
"name": "riksdagsmonitor",
"version": "0.8.60",
"type": "module",
"description": "Swedish Parliament (Riksdag) intelligence platform — TypeScript utilities for political data visualization, dashboards, and open data analysis with Chart.js and D3.js",
"main": "dist/lib/shared/index.js",
"module": "dist/lib/shared/index.js",
"types": "dist/lib/shared/index.d.ts",
"sideEffects": [
"./dist/lib/shared/register-globals.js"
],
"exports": {
".": {
"import": "./dist/lib/shared/index.js",
"types": "./dist/lib/shared/index.d.ts"
},
"./shared": {
"import": "./dist/lib/shared/index.js",
"types": "./dist/lib/shared/index.d.ts"
},
"./shared/*": {
"import": "./dist/lib/shared/*.js",
"types": "./dist/lib/shared/*.d.ts"
},
"./cia/*": {
"import": "./dist/lib/cia/*.js",
"types": "./dist/lib/cia/*.d.ts"
},
"./dashboards/*": {
"import": "./dist/lib/dashboards/*.js",
"types": "./dist/lib/dashboards/*.d.ts"
},
"./ui/*": {
"import": "./dist/lib/ui/*.js",
"types": "./dist/lib/ui/*.d.ts"
}
},
"files": [
"dist/lib",
"README.md",
"LICENSE",
"SECURITY.md"
],
"publishConfig": {
"access": "public",
"provenance": true,
"registry": "https://registry.npmjs.org/"
},
"scripts": {
"dev": "vite",
"predev": "npx tsx scripts/copy-vendor-mermaid.ts --quiet",
"copy-vendor": "npx tsx scripts/copy-vendor-mermaid.ts",
"prebuild": "npx tsx scripts/copy-vendor-mermaid.ts --quiet && npx tsx scripts/aggregate-analysis.ts --all --quiet && npx tsx scripts/render-articles.ts --all --lang en,sv --quiet && npx tsx scripts/generate-news-indexes/index.ts && npx tsx scripts/extract-news-metadata.ts && npx tsx scripts/generate-sitemap-html.ts && npx tsx scripts/generate-political-intelligence.ts && npx tsx scripts/generate-rss.ts && npx tsx scripts/generate-sitemap.ts",
"build": "vite build",
"build:lib": "tsc -p tsconfig.lib.json && tsc -p tsconfig.npm-scripts.json",
"postbuild": "cp rss.xml dist/rss.xml && cp sitemap.xml dist/sitemap.xml && cp -r cia-data dist/cia-data",
"preview": "vite preview",
"test": "NODE_OPTIONS='--max-old-space-size=2048' vitest run",
"test:watch": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest run --coverage",
"cypress:open": "cypress open",
"cypress:run": "cypress run --config video=false",
"cypress:run:fast": "cypress run --config video=false --quiet --browser chrome",
"cypress:run:critical": "cypress run --spec 'cypress/e2e/homepage.cy.js,cypress/e2e/accessibility.cy.js' --config video=false",
"e2e": "npm run build && start-server-and-test preview http://localhost:4173 cypress:run",
"e2e:fast": "npm run build && start-server-and-test preview http://localhost:4173 cypress:run:fast",
"sync-schemas": "npx tsx scripts/sync-cia-schemas.ts",
"validate-data": "npx tsx scripts/validate-against-cia-schemas.ts",
"check-updates": "npx tsx scripts/check-cia-schema-updates.ts",
"generate-types": "npx tsx scripts/generate-types-from-cia-schemas.ts",
"validate-translations": "npx tsx scripts/validate-translations.ts",
"validate-news": "node scripts/validate-news-translations.ts",
"validate-article": "npx tsx scripts/validate-article.ts",
"validate-all": "npm run htmlhint && npm run validate-translations && npm run validate-news && npm run validate-article",
"generate-news": "npx tsx scripts/render-articles.ts --all --lang en,sv",
"aggregate-analysis": "npx tsx scripts/aggregate-analysis.ts --all",
"render-articles": "npx tsx scripts/render-articles.ts --all --lang en,sv",
"generate-news-indexes": "node scripts/generate-news-indexes.ts",
"generate-sitemap": "node scripts/generate-sitemap.ts",
"generate-sitemap-html": "npx tsx scripts/generate-sitemap-html.ts",
"generate-political-intelligence": "npx tsx scripts/generate-political-intelligence.ts",
"generate-rss": "npx tsx scripts/generate-rss.ts",
"htmlhint": "sh -c 'htmlhint *.html; set -- news/*.html; if [ -e \"$1\" ]; then htmlhint \"$@\"; else echo \"No news/*.html files to lint\"; fi'",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"typedoc": "typedoc",
"typedoc:validate": "npm run typedoc && vitest run tests/jsdoc-validation.test.js",
"coverage": "vitest run --coverage",
"docs:dependencies": "mkdir -p docs/dependencies && (npm list --all --json > docs/dependencies/dependency-tree.json 2> docs/dependencies/dependency-tree.log || true) && (npm list --all > docs/dependencies/dependency-tree.txt 2>> docs/dependencies/dependency-tree.log || true)",
"docs:diagrams": "echo 'Architecture diagrams generation placeholder - implement with graphviz if needed'",
"test:e2ereportmerge": "echo 'Cypress report merge placeholder - mochawesome-merge if multi-spec reports exist'",
"test:e2ereporthtmlall": "echo 'Cypress HTML report generation placeholder - mochawesome-report-generator'",
"build:test-reports": "mkdir -p docs/test-results docs/cypress docs/coverage && ([ -d builds/coverage ] && [ -n \"$(ls -A builds/coverage 2>/dev/null)\" ] && cp -r builds/coverage/* docs/coverage/ || echo 'No coverage directory to copy') && ([ -d builds/test-results ] && [ -n \"$(ls -A builds/test-results 2>/dev/null)\" ] && cp -r builds/test-results/* docs/test-results/ || echo 'No test-results directory to copy') && ([ -d builds/cypress ] && [ -n \"$(ls -A builds/cypress 2>/dev/null)\" ] && cp -r builds/cypress/* docs/cypress/ || echo 'No cypress directory to copy') && echo 'Test reports copied to docs/'",
"docs:sitemap": "node scripts/generate-sitemap.ts",
"serve": "python3 -m http.server 8080",
"linkcheck": "linkinator http://localhost:8080/ --recurse",
"prepublishOnly": "npm run lint && npm run build:lib && npm test",
"prepack": "echo 'Prepack: build artifacts should already be generated (see prepublishOnly/CI)'",
"download-data": "npx tsx scripts/download-parliamentary-data.ts",
"download-data:today": "npx tsx scripts/download-parliamentary-data.ts --date today",
"download-data:weekly": "npx tsx scripts/download-parliamentary-data.ts --aggregate weekly",
"backfill-metadata": "tsx scripts/backfill-article-metadata.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Hack23/riksdagsmonitor.git"
},
"keywords": [
"riksdag",
"riksdagen",
"swedish-parliament",
"parliament",
"sweden",
"politics",
"political-data",
"political-intelligence",
"political-analysis",
"democracy",
"civic-tech",
"open-data",
"osint",
"transparency",
"government",
"data-visualization",
"dashboard",
"chart.js",
"d3",
"typescript",
"monitoring",
"voting-records",
"parliamentary",
"intelligence"
],
"author": "Hack23 AB",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/Hack23/riksdagsmonitor/issues"
},
"homepage": "https://riksdagsmonitor.com",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/Hack23"
},
"peerDependencies": {
"chart.js": "^4.0.0",
"chartjs-plugin-annotation": "^3.0.0",
"d3": "^7.0.0",
"papaparse": "^5.0.0"
},
"peerDependenciesMeta": {
"chart.js": {
"optional": true
},
"chartjs-plugin-annotation": {
"optional": true
},
"d3": {
"optional": true
},
"papaparse": {
"optional": true
}
},
"devDependencies": {
"@eslint/js": "10.0.1",
"@types/d3": "7.4.3",
"@types/node": "25.6.0",
"@types/papaparse": "5.5.2",
"@vitest/coverage-v8": "4.1.5",
"@vitest/ui": "4.1.5",
"ajv": "8.20.0",
"ajv-formats": "3.0.1",
"chart.js": "4.5.1",
"chartjs-plugin-annotation": "3.1.0",
"d3": "7.9.0",
"eslint": "10.2.1",
"globals": "17.5.0",
"gray-matter": "^4.0.3",
"happy-dom": "20.9.0",
"htmlhint": "1.9.2",
"js-yaml": "4.1.1",
"json-schema-to-typescript": "15.0.4",
"jszip": "3.10.1",
"knip": "6.7.0",
"mermaid": "11.14.0",
"papaparse": "5.5.3",
"playwright": "1.59.1",
"rehype-autolink-headings": "^7.1.0",
"rehype-raw": "^7.0.0",
"rehype-sanitize": "^6.0.0",
"github-slugger": "^2.0.0",
"rehype-slug": "^6.0.0",
"rehype-stringify": "^10.0.1",
"remark-gfm": "^4.0.1",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.2",
"start-server-and-test": "3.0.2",
"tsx": "4.21.0",
"typedoc": "0.28.19",
"typedoc-plugin-mdn-links": "5.1.1",
"typescript": "6.0.3",
"typescript-eslint": "8.59.0",
"unified": "^11.0.5",
"vite": "8.0.10",
"vite-plugin-sri-gen": "1.4.1",
"vitest": "4.1.5",
"worldbank-mcp": "1.0.1"
},
"optionalDependencies": {
"cypress": "15.14.1"
},
"overrides": {
"glob": "13.0.6"
},
"engines": {
"node": ">=25"
},
"x-external-mcp": {
"_comment": "SBOM-style manifest for MCP servers managed outside of npm dependencies (Python, Docker, HTTP). Tracked here so supply-chain reviews, Open_Source_Policy.md audits, and Change_Management.md tickets have a single source of truth. Currently EMPTY: IMF access was migrated from c-cf/imf-data-mcp (Python/uvx) to the repository's pure-TypeScript client scripts/imf-client.ts (invoked via scripts/imf-fetch.ts from the bash tool in agentic workflows) — it is now fully covered by the npm SBOM."
}
}