mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 10:34:02 +00:00
chore: use tnpm as oss-syncing source
This commit is contained in:
parent
c0ddba5543
commit
27bf7babe5
@ -19,7 +19,7 @@ const onResponse = function (res) {
|
|||||||
chunks.push(chunk);
|
chunks.push(chunk);
|
||||||
});
|
});
|
||||||
|
|
||||||
res.on('end', (chunk) => {
|
res.on('end', () => {
|
||||||
const body = Buffer.concat(chunks);
|
const body = Buffer.concat(chunks);
|
||||||
console.table(JSON.stringify(JSON.parse(body.toString()), null, 2));
|
console.table(JSON.stringify(JSON.parse(body.toString()), null, 2));
|
||||||
});
|
});
|
||||||
@ -39,9 +39,9 @@ const postData = JSON.stringify({
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
// 可以发布指定源的 npm 包,默认公网 npm
|
// 可以发布指定源的 npm 包,默认公网 npm
|
||||||
useTnpm: false,
|
useTnpm: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
req.write(postData);
|
req.write(postData);
|
||||||
|
|
||||||
req.end();
|
req.end();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user