forked from vltpkg/vltpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
74 lines (74 loc) · 3.78 KB
/
package.json
File metadata and controls
74 lines (74 loc) · 3.78 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
{
"name": "@vltpkg/vsr",
"version": "1.0.0-rc.18",
"repository": {
"type": "git",
"url": "git+https://github.com/vltpkg/vltpkg.git",
"directory": "src/vsr"
},
"author": "vlt technology inc. <support@vlt.sh> (http://vlt.sh)",
"bin": "./dist/bin/vsr.js",
"dependencies": {
"@hono/sentry": "^1.2.2",
"@hono/zod-openapi": "^0.19.10",
"@libsql/client": "^0.15.15",
"@scalar/hono-api-reference": "^0.9.28",
"@vltpkg/vlt-json": "workspace:*",
"drizzle-orm": "^0.44.7",
"hono": "^4.10.8",
"minargs": "^2.1.0",
"semver": "catalog:",
"validate-npm-package-name": "6.0.2",
"wrangler": "^4.53.0",
"zod": "^3.25.76"
},
"devDependencies": {
"@cloudflare/vitest-pool-workers": "^0.8.71",
"@cloudflare/workers-types": "^4.20251209.0",
"@types/node": "catalog:",
"@types/validate-npm-package-name": "^4.0.2",
"@vltpkg/gui": "workspace:*",
"chokidar-cli": "^3.0.0",
"drizzle-kit": "^0.31.8",
"esbuild": "^0.25.12",
"eslint": "catalog:",
"typedoc": "catalog:",
"typescript": "catalog:",
"typescript-eslint": "catalog:",
"vitest": "^3.2.4"
},
"license": "FSL-1.1-MIT",
"engines": {
"node": ">=22.9.0"
},
"scripts": {
"build": "vlr build:dist && vlr build:assets && vlr build:worker && vlr build:bin",
"build:assets": "node scripts/build-assets.js",
"build:bin": "node scripts/build-bin.js",
"build:dist": "node -e \"const fs=require('fs'); fs.rmSync('./dist', {recursive: true, force: true}); fs.mkdirSync('./dist/assets/public', {recursive: true});\"",
"build:worker": "npx wrangler deploy --dry-run --outdir dist",
"db:drop": "npx wrangler d1 execute vsr-local-database --file=src/db/migrations/drop.sql --local --persist-to=local-store --no-remote && node -e \"const fs=require('fs'); fs.rmSync('local-store',{recursive:true,force:true}); fs.rmSync('.wrangler',{recursive:true,force:true});\"",
"db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate",
"db:push": "drizzle-kit push",
"db:setup": "npx wrangler d1 execute vsr-local-database --file=src/db/migrations/0000_initial.sql --local --persist-to=local-store --no-remote && npx wrangler d1 execute vsr-local-database --file=src/db/migrations/0001_wealthy_magdalene.sql --local --persist-to=local-store --no-remote",
"db:studio": "drizzle-kit studio --port 4985",
"deploy": "vlr build && npx wrangler deploy",
"format": "prettier --write . --log-level warn --ignore-path ../../.prettierignore --cache",
"format:check": "prettier --check . --ignore-path ../../.prettierignore --cache",
"postinstall": "node -e \"const fs=require('fs'); process.exit(fs.existsSync('local-store') || process.env.VERCEL ? 0 : 1);\" || (npx wrangler d1 execute vsr-local-database --file=src/db/migrations/0000_initial.sql --local --persist-to=local-store --no-remote && npx wrangler d1 execute vsr-local-database --file=src/db/migrations/0001_wealthy_magdalene.sql --local --persist-to=local-store --no-remote)",
"lint": "eslint . --fix",
"lint:check": "eslint .",
"prepack": "vlr build",
"serve:build": "vlr build && node ./dist/bin/vsr.js --debug",
"serve:death": "echo \"Killing wrangler dev processes...\" && (pkill -f 'wrangler.*dev' || true) && sleep 1 && (pids=$(lsof -ti :1337 2>/dev/null; lsof -ti :3000 2>/dev/null) && [ -n \"$pids\" ] && echo \"Force killing remaining processes: $pids\" && kill -9 $pids || echo \"No remaining processes found\") && echo \"Done.\"",
"serve:watch": "chokidar './src/**/*' -c 'vlr serve:death && vlr serve:build'",
"snap": "vitest --no-watch -u",
"pretest": "vlr build",
"test": "vitest --no-watch",
"posttest": "tsc --noEmit",
"typecheck": "tsc --noEmit",
"typecheck:worker": "tsc -p tsconfig.worker.json --noEmit"
},
"type": "module"
}