You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(`Packaging complete, total size is ${result.byteLength} bytes!`);
224
-
console.log(`Uploading ${chalk.bold(`${pkg.stdlib.name}@${environment===RELEASE_ENV ? version||pkg.stdlib.version : environment}`)} to Autocode at ${host}:${port}...`);
console.log(`Packaging complete, total size is ${result.byteLength} bytes!`);
226
+
console.log(`Uploading ${chalk.bold(`${pkg.stdlib.name}@${environment===RELEASE_ENV ? version||pkg.stdlib.version : environment}`)} to Autocode at ${host}:${port}...`);
227
+
228
+
letregistryParams={channel: '1234'};
229
+
if(environment===RELEASE_ENV){
230
+
registryParams.release='t';
231
+
if(version){
232
+
registryParams.version=version;
233
+
}
234
+
}else{
235
+
registryParams.environment=environment;
236
+
}
237
+
238
+
if(force){
239
+
registryParams.force='t';
240
+
}
241
+
242
+
returnregistry.request(
243
+
'up/verify',
244
+
registryParams,
245
+
result,
246
+
(err,response)=>{
247
+
248
+
if(err){
249
+
console.log();
250
+
returncallback(err);
251
+
}else{
252
+
lett=newDate().valueOf()-start;
253
+
console.log()
254
+
console.log(`${chalk.bold(`${response.name}@${response.environment||response.version}`)} uploaded successfully in ${t} ms!`);
0 commit comments