fix: streamline deployment commands in configuration files

This commit is contained in:
shuaiplus
2026-05-31 01:15:00 +08:00
parent fd9707c396
commit 85bd2fa4bf
3 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -15,8 +15,8 @@
"domains:sync": "node scripts/sync-global-domains.mjs", "domains:sync": "node scripts/sync-global-domains.mjs",
"i18n": "node scripts/i18n-validate.cjs", "i18n": "node scripts/i18n-validate.cjs",
"i18n:validate": "node scripts/i18n-validate.cjs", "i18n:validate": "node scripts/i18n-validate.cjs",
"deploy": "npm run build && wrangler deploy", "deploy": "wrangler deploy",
"deploy:kv": "npm run build && wrangler deploy -c wrangler.kv.toml", "deploy:kv": "wrangler deploy -c wrangler.kv.toml",
"deploy:demo": "npm run build:demo && wrangler pages deploy dist --project-name nw-demo" "deploy:demo": "npm run build:demo && wrangler pages deploy dist --project-name nw-demo"
}, },
"keywords": [ "keywords": [
+3
View File
@@ -2,6 +2,9 @@ name = "nodewarden"
main = "src/index.ts" main = "src/index.ts"
compatibility_date = "2024-01-01" compatibility_date = "2024-01-01"
[build]
command = "npm run build"
[assets] [assets]
binding = "ASSETS" binding = "ASSETS"
directory = "./dist" directory = "./dist"
+3
View File
@@ -2,6 +2,9 @@ name = "nodewarden"
main = "src/index.ts" main = "src/index.ts"
compatibility_date = "2024-01-01" compatibility_date = "2024-01-01"
[build]
command = "npm run build"
[assets] [assets]
binding = "ASSETS" binding = "ASSETS"
directory = "./dist" directory = "./dist"