forked from Yu9191/sub-store-workers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
32 lines (32 loc) · 1.19 KB
/
Copy pathpackage.json
File metadata and controls
32 lines (32 loc) · 1.19 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
{
"name": "sub-store-workers",
"version": "1.1.0",
"description": "Sub-Store on Cloudflare Workers",
"private": true,
"scripts": {
"build": "node esbuild.js",
"dev": "wrangler dev",
"deploy": "npm run build && wrangler deploy",
"deploy:pages": "npm run build && node -e \"require('fs').copyFileSync('dist/worker.js','pages-dist/_worker.js')\" && wrangler pages deploy pages-dist --project-name sub-store --branch main --no-bundle",
"rotate-secret": "powershell -ExecutionPolicy Bypass -File scripts/rotate-secret.ps1",
"rotate-secret:sh": "bash scripts/rotate-secret.sh",
"prepush": "node -e \"let f=require('fs'),t=f.readFileSync('wrangler.toml','utf8');if(!t.includes('你的KV命名空间ID')){console.error('\\x1b[31m请先清除 wrangler.toml 中的 KV ID!\\x1b[0m');process.exit(1)}\""
},
"dependencies": {
"buffer": "^6.0.3",
"ip-address": "^9.0.5",
"js-base64": "^3.7.2",
"json5": "^2.2.3",
"jsrsasign": "^11.1.0",
"lodash": "^4.17.21",
"ms": "^2.1.3",
"nanoid": "^3.3.3",
"peggy": "^2.0.1",
"semver": "^7.6.3",
"static-js-yaml": "^1.0.0"
},
"devDependencies": {
"esbuild": "^0.19.8",
"wrangler": "^4.84.1"
}
}