datagrok-tools 4.13.41 → 4.13.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1
- package/bin/commands/publish.js +20 -21
- package/bin/utils/test-utils.js +3 -3
- package/bin/utils/utils.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/bin/commands/publish.js
CHANGED
|
@@ -310,7 +310,7 @@ function _publish() {
|
|
|
310
310
|
encoding: 'utf-8'
|
|
311
311
|
}));
|
|
312
312
|
if (!(args.refresh || args.all)) {
|
|
313
|
-
_context3.next =
|
|
313
|
+
_context3.next = 27;
|
|
314
314
|
break;
|
|
315
315
|
}
|
|
316
316
|
if (_path["default"].basename(curDir) !== 'packages') curDir = _path["default"].dirname(curDir);
|
|
@@ -328,49 +328,48 @@ function _publish() {
|
|
|
328
328
|
token = _context3.sent;
|
|
329
329
|
url = "".concat(baseUrl, "/packages/published/current");
|
|
330
330
|
packagesToLoad = ['all'];
|
|
331
|
-
console.log(url);
|
|
332
331
|
if (!args.refresh) {
|
|
333
|
-
_context3.next =
|
|
332
|
+
_context3.next = 22;
|
|
334
333
|
break;
|
|
335
334
|
}
|
|
336
|
-
_context3.next =
|
|
335
|
+
_context3.next = 19;
|
|
337
336
|
return (0, _nodeFetch["default"])(url, {
|
|
338
337
|
method: 'GET',
|
|
339
338
|
headers: {
|
|
340
339
|
'Authorization': token // Attach cookies here
|
|
341
340
|
}
|
|
342
341
|
});
|
|
343
|
-
case
|
|
344
|
-
_context3.next =
|
|
342
|
+
case 19:
|
|
343
|
+
_context3.next = 21;
|
|
345
344
|
return _context3.sent.json();
|
|
346
|
-
case
|
|
345
|
+
case 21:
|
|
347
346
|
packagesToLoad = _context3.sent.map(function (item) {
|
|
348
347
|
return item.name;
|
|
349
348
|
});
|
|
350
|
-
case
|
|
349
|
+
case 22:
|
|
351
350
|
console.log('Loading packages:');
|
|
352
|
-
_context3.next =
|
|
351
|
+
_context3.next = 25;
|
|
353
352
|
return (0, _testUtils.loadPackages)(curDir, packagesToLoad.join(' '), host, false, false, args.link, args.release);
|
|
354
|
-
case
|
|
355
|
-
_context3.next =
|
|
353
|
+
case 25:
|
|
354
|
+
_context3.next = 36;
|
|
356
355
|
break;
|
|
357
|
-
case
|
|
356
|
+
case 27:
|
|
358
357
|
if (!args.link) {
|
|
359
|
-
_context3.next =
|
|
358
|
+
_context3.next = 34;
|
|
360
359
|
break;
|
|
361
360
|
}
|
|
362
|
-
_context3.next =
|
|
361
|
+
_context3.next = 30;
|
|
363
362
|
return utils.runScript("npm install", curDir);
|
|
364
|
-
case
|
|
365
|
-
_context3.next =
|
|
363
|
+
case 30:
|
|
364
|
+
_context3.next = 32;
|
|
366
365
|
return utils.runScript("grok link", curDir);
|
|
367
|
-
case
|
|
368
|
-
_context3.next =
|
|
366
|
+
case 32:
|
|
367
|
+
_context3.next = 34;
|
|
369
368
|
return utils.runScript("npm run build", curDir);
|
|
370
|
-
case
|
|
371
|
-
_context3.next =
|
|
369
|
+
case 34:
|
|
370
|
+
_context3.next = 36;
|
|
372
371
|
return publishPackage(args);
|
|
373
|
-
case
|
|
372
|
+
case 36:
|
|
374
373
|
case "end":
|
|
375
374
|
return _context3.stop();
|
|
376
375
|
}
|
package/bin/utils/test-utils.js
CHANGED
|
@@ -368,7 +368,7 @@ function _loadPackages() {
|
|
|
368
368
|
break;
|
|
369
369
|
}
|
|
370
370
|
_context6.prev = 14;
|
|
371
|
-
|
|
371
|
+
process.stdout.write("Building and publishing ".concat(dirName, "..."));
|
|
372
372
|
if (!(skipPublish != true)) {
|
|
373
373
|
_context6.next = 27;
|
|
374
374
|
break;
|
|
@@ -394,13 +394,13 @@ function _loadPackages() {
|
|
|
394
394
|
return utils.runScript("grok publish ".concat(hostString).concat(release ? ' --release' : ''), packageDir);
|
|
395
395
|
case 27:
|
|
396
396
|
packagesToRun.set(dirName, true);
|
|
397
|
-
|
|
397
|
+
process.stdout.write(" success!\n");
|
|
398
398
|
_context6.next = 34;
|
|
399
399
|
break;
|
|
400
400
|
case 31:
|
|
401
401
|
_context6.prev = 31;
|
|
402
402
|
_context6.t0 = _context6["catch"](14);
|
|
403
|
-
|
|
403
|
+
process.stdout.write(" fail!\n");
|
|
404
404
|
case 34:
|
|
405
405
|
_context6.next = 39;
|
|
406
406
|
break;
|
package/bin/utils/utils.js
CHANGED
|
@@ -334,7 +334,7 @@ function _runScript() {
|
|
|
334
334
|
_context2.prev = 11;
|
|
335
335
|
_context2.t0 = _context2["catch"](1);
|
|
336
336
|
console.error("Execution failed: ".concat(_context2.t0.message));
|
|
337
|
-
throw new Error("Cant run script");
|
|
337
|
+
throw new Error("Cant run script ".concat(script));
|
|
338
338
|
case 15:
|
|
339
339
|
case "end":
|
|
340
340
|
return _context2.stop();
|
package/package.json
CHANGED