From 5168283108c68e7f34063d9e9e7d492b2e8587db Mon Sep 17 00:00:00 2001 From: JackLian Date: Thu, 14 Dec 2023 10:48:59 +0800 Subject: [PATCH] chore: use tnpm as oss-syncing source --- scripts/sync-oss.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/sync-oss.js b/scripts/sync-oss.js index 9518a8e..89c7a1c 100644 --- a/scripts/sync-oss.js +++ b/scripts/sync-oss.js @@ -19,7 +19,7 @@ const onResponse = function (res) { chunks.push(chunk); }); - res.on('end', (chunk) => { + res.on('end', () => { const body = Buffer.concat(chunks); console.table(JSON.stringify(JSON.parse(body.toString()), null, 2)); }); @@ -39,7 +39,7 @@ const postData = JSON.stringify({ }, ], // 可以发布指定源的 npm 包,默认公网 npm - useTnpm: false, + useTnpm: true, }); req.write(postData);