Skip to content

Commit 27bf7ba

Browse files
committed
chore: use tnpm as oss-syncing source
1 parent c0ddba5 commit 27bf7ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/sync-oss.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const onResponse = function (res) {
1919
chunks.push(chunk);
2020
});
2121

22-
res.on('end', (chunk) => {
22+
res.on('end', () => {
2323
const body = Buffer.concat(chunks);
2424
console.table(JSON.stringify(JSON.parse(body.toString()), null, 2));
2525
});
@@ -39,9 +39,9 @@ const postData = JSON.stringify({
3939
},
4040
],
4141
// 可以发布指定源的 npm 包,默认公网 npm
42-
useTnpm: false,
42+
useTnpm: true,
4343
});
4444

4545
req.write(postData);
4646

47-
req.end();
47+
req.end();

0 commit comments

Comments
 (0)