-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathpackage.json
More file actions
102 lines (102 loc) · 4.67 KB
/
package.json
File metadata and controls
102 lines (102 loc) · 4.67 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
{
"name": "nimiq-validators",
"type": "module",
"version": "0.0.1",
"private": true,
"packageManager": "pnpm@10.13.1",
"description": "An API for integrating validators and pools with the Nimiq Wallet and other apps, helping stakers choose where to stake.",
"scripts": {
"dev": "nr dev:testnet",
"dev:mainnet": "nr dev:packages && nuxt dev --remote --dotenv .env.mainnet",
"dev:testnet": "nr dev:packages && nuxt dev --remote --dotenv .env.testnet",
"dev:mainnet:prod": "nr dev:packages && nuxt dev --remote=production --dotenv .env.mainnet",
"dev:testnet:prod": "nr dev:packages && nuxt dev --remote=production --dotenv .env.testnet",
"dev:local": "nr dev:packages && nuxt dev --dotenv .env.local",
"dev:packages": "nr -C packages -r dev",
"build": "pnpm validators:bundle:generate && nr -r build && NODE_OPTIONS=--max-old-space-size=4096 nuxt build",
"generate": "nuxt generate",
"worker:dev": "npx wrangler --cwd .output dev",
"postinstall": "nuxt prepare",
"prepublishOnly": "nr build",
"typecheck": "nuxt typecheck && nr -r typecheck",
"lint": "eslint --cache .",
"lint:fix": "eslint --cache . --fix",
"prepare": "nuxt prepare",
"test": "vitest",
"db:generate": "drizzle-kit generate",
"db:delete": "drizzle-kit drop",
"db:apply:cron-runs:mainnet": "wrangler d1 execute validators-api-mainnet --remote --yes --command \"CREATE TABLE IF NOT EXISTS cron_runs (id integer PRIMARY KEY AUTOINCREMENT NOT NULL, cron text NOT NULL, network text NOT NULL, git_branch text, started_at text NOT NULL, finished_at text, status text NOT NULL, error_message text, meta text);\" && wrangler d1 execute validators-api-mainnet --remote --yes --command \"CREATE INDEX IF NOT EXISTS idx_cron_runs_started_at ON cron_runs (started_at);\"",
"db:apply:cron-runs:testnet": "wrangler d1 execute validators-api-testnet --remote --yes --command \"CREATE TABLE IF NOT EXISTS cron_runs (id integer PRIMARY KEY AUTOINCREMENT NOT NULL, cron text NOT NULL, network text NOT NULL, git_branch text, started_at text NOT NULL, finished_at text, status text NOT NULL, error_message text, meta text);\" && wrangler d1 execute validators-api-testnet --remote --yes --command \"CREATE INDEX IF NOT EXISTS idx_cron_runs_started_at ON cron_runs (started_at);\"",
"db:apply:is-listed:mainnet": "wrangler d1 execute validators-api-mainnet --remote --yes --command \"ALTER TABLE validators ADD COLUMN is_listed integer;\"",
"db:apply:is-listed:testnet": "wrangler d1 execute validators-api-testnet --remote --yes --command \"ALTER TABLE validators ADD COLUMN is_listed integer;\"",
"release": "bumpp -r && nr -r publish",
"validate:json-files": "tsx scripts/validate-json-files.ts",
"validators:bundle:generate": "tsx scripts/generate-validators-bundle.ts"
},
"dependencies": {
"@nimiq/core": "catalog:",
"@nimiq/utils": "catalog:",
"@nuxthub/core": "catalog:",
"@tanstack/vue-table": "catalog:",
"@unovis/ts": "catalog:",
"@unovis/vue": "catalog:",
"@vueuse/core": "catalog:",
"consola": "catalog:",
"defu": "catalog:",
"drizzle-orm": "catalog:",
"identicons-esm": "catalog:",
"nimiq-rpc-client-ts": "catalog:",
"nimiq-validator-trustscore": "workspace:*",
"nuxt": "catalog:",
"reka-ui": "catalog:",
"valibot": "catalog:",
"vue": "catalog:",
"vue-router": "catalog:",
"zod": "catalog:"
},
"devDependencies": {
"@antfu/eslint-config": "catalog:",
"@antfu/ni": "catalog:",
"@iconify-json/tabler": "catalog:",
"@libsql/client": "catalog:",
"@nuxt/eslint": "catalog:",
"@nuxt/fonts": "catalog:",
"@nuxt/image": "catalog:",
"@nuxtjs/color-mode": "catalog:",
"@types/node": "catalog:",
"@unocss/eslint-config": "catalog:",
"@unocss/nuxt": "catalog:",
"@unocss/reset": "catalog:",
"@vueuse/nuxt": "catalog:",
"bumpp": "catalog:",
"dotenv": "catalog:",
"drizzle-kit": "catalog:",
"drizzle-zod": "catalog:",
"eslint": "catalog:",
"eslint-plugin-format": "catalog:",
"lint-staged": "catalog:",
"nimiq-css": "catalog:",
"nuxt-charts": "catalog:",
"nuxt-safe-runtime-config": "catalog:",
"ofetch": "catalog:",
"pathe": "catalog:",
"simple-git-hooks": "catalog:",
"std-env": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:",
"unocss": "catalog:",
"unocss-preset-onmax": "catalog:",
"vite-plugin-top-level-await": "catalog:",
"vite-plugin-wasm": "catalog:",
"vitest": "catalog:",
"vue-chrts": "catalog:",
"vue-tsc": "catalog:",
"wrangler": "catalog:"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
}
}