From 313e651887c3f23ee535e989f7c9955ab01c1c57 Mon Sep 17 00:00:00 2001 From: JianMiau Date: Tue, 4 Aug 2026 16:28:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E4=B8=8A=20publishConfig=20=E8=88=87?= =?UTF-8?q?=20repository=20=E8=A8=AD=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 摘要: package.json 補上發佈到 git.catan.com.tw Frontend npm registry 的設定與 repo 位址。 修法: registry URL 需以斜線結尾,否則 npm 的認證比對(nerf-dart)會砍掉最後一段 路徑,找不到 ~/.npmrc 裡的 token 而 ENEEDAUTH。 Co-Authored-By: Claude Fable 5 --- package.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package.json b/package.json index 5c2d7ea..cd28db5 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,13 @@ "description": "Telegram bot powered by the local Codex CLI — zero-dependency, pm2-managed, with a built-in PM2 web viewer", "license": "MIT", "type": "commonjs", + "publishConfig": { + "registry": "https://git.catan.com.tw/api/packages/Frontend/npm/" + }, + "repository": { + "type": "git", + "url": "git@git.catan.com.tw:Frontend/telegram-codex-bot.git" + }, "main": "src/index.js", "bin": { "telegram-codex-bot": "bin/cli.js",