-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpackage.json
57 lines (57 loc) · 2.46 KB
/
package.json
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
{
"name": "vsr",
"version": "0.1.1",
"license": "FSL-1.1-MIT",
"author": "vlt technology inc. <support@vlt.sh> (http://vlt.sh)",
"repository": {
"type": "git",
"url": "git+https://github.com/vltpkg/vsr.git"
},
"bin": {
"vsr": "./bin/vsr"
},
"scripts": {
"setup": "wrangler d1 execute vsr_local_database --command \"CREATE TABLE IF NOT EXISTS packages ('name' TEXT PRIMARY KEY, tags JSON); CREATE TABLE IF NOT EXISTS tokens (token TEXT PRIMARY KEY, uuid TEXT, scope JSON); CREATE TABLE IF NOT EXISTS versions (spec TEXT PRIMARY KEY, manifest JSON, published_at TEXT); INSERT OR REPLACE INTO tokens (token, uuid, scope) VALUES ('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', 'admin', '[ { \\\"values\\\": [\\\"*\\\"], \\\"types\\\": { \\\"pkg\\\": { \\\"read\\\": true, \\\"write\\\": true } } }, { \\\"values\\\": [\\\"*\\\"], \\\"types\\\": { \\\"user\\\": { \\\"read\\\": true, \\\"write\\\": true } } } ]');\" --local --persist-to local-store --experimental-json-config",
"drop": "wrangler d1 execute vsr_local_database --command 'DROP TABLE IF EXISTS packages;DROP TABLE IF EXISTS tokens;DROP TABLE IF EXISTS versions;' --local --persist-to local-store --experimental-json-config && rm -rf local-store && rm -rf .wrangler",
"migrate": "wrangler d1 migrations apply vsr_local_database --local --persist-to local-store --experimental-json-config",
"dist": "wrangler dev ./dist/index.js --local --persist-to local-store --experimental-json-config",
"dev": "wrangler dev --local --persist-to local-store --experimental-json-config",
"bundle": "wrangler deploy --dry-run --outdir dist",
"deploy": "wrangler deploy",
"build": "NODE_NO_WARNINGS=1 node ./scripts/build.mjs",
"lint": "prettier ."
},
"devDependencies": {
"libnpmpack": "^7.0.4",
"npm-registry-fetch": "^17.1.0",
"prettier": "^3.3.3",
"ssri": "^10.0.6",
"@hono-rate-limiter/cloudflare": "^0.2.1",
"@scalar/hono-api-reference": "^0.5.158",
"get-npm-tarball-url": "^2.1.0",
"hono": "^4.5.5",
"hono-rate-limiter": "^0.4.0",
"js-yaml": "^4.1.0",
"semver": "^7.6.3",
"streaming-tarball": "^1.0.3",
"uuid": "^10.0.0",
"validate-npm-package-name": "5.0.0"
},
"peerDependencies": {
"wrangler": "^3.84.1"
},
"devEngines": {
"runtime": {
"name": "node",
"onFail": "warn"
},
"packageManager": {
"name": "npm",
"onFail": "warn"
}
},
"engines": {
"node": ">=22.11.0",
"npm": ">=10.9.0"
}
}