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 CHANGED
@@ -1,7 +1,13 @@
1
1
  # Datagrok-tools changelog
2
2
 
3
3
 
4
- ## 4.13.41 (2024-11-29)
4
+ ## 4.13.43 (2024-12-02)
5
+
6
+ ### Features
7
+
8
+ * Publish visual updates
9
+
10
+ ## 4.13.42 (2024-11-29)
5
11
 
6
12
  ### Features
7
13
 
@@ -310,7 +310,7 @@ function _publish() {
310
310
  encoding: 'utf-8'
311
311
  }));
312
312
  if (!(args.refresh || args.all)) {
313
- _context3.next = 28;
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 = 23;
332
+ _context3.next = 22;
334
333
  break;
335
334
  }
336
- _context3.next = 20;
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 20:
344
- _context3.next = 22;
342
+ case 19:
343
+ _context3.next = 21;
345
344
  return _context3.sent.json();
346
- case 22:
345
+ case 21:
347
346
  packagesToLoad = _context3.sent.map(function (item) {
348
347
  return item.name;
349
348
  });
350
- case 23:
349
+ case 22:
351
350
  console.log('Loading packages:');
352
- _context3.next = 26;
351
+ _context3.next = 25;
353
352
  return (0, _testUtils.loadPackages)(curDir, packagesToLoad.join(' '), host, false, false, args.link, args.release);
354
- case 26:
355
- _context3.next = 37;
353
+ case 25:
354
+ _context3.next = 36;
356
355
  break;
357
- case 28:
356
+ case 27:
358
357
  if (!args.link) {
359
- _context3.next = 35;
358
+ _context3.next = 34;
360
359
  break;
361
360
  }
362
- _context3.next = 31;
361
+ _context3.next = 30;
363
362
  return utils.runScript("npm install", curDir);
364
- case 31:
365
- _context3.next = 33;
363
+ case 30:
364
+ _context3.next = 32;
366
365
  return utils.runScript("grok link", curDir);
367
- case 33:
368
- _context3.next = 35;
366
+ case 32:
367
+ _context3.next = 34;
369
368
  return utils.runScript("npm run build", curDir);
370
- case 35:
371
- _context3.next = 37;
369
+ case 34:
370
+ _context3.next = 36;
372
371
  return publishPackage(args);
373
- case 37:
372
+ case 36:
374
373
  case "end":
375
374
  return _context3.stop();
376
375
  }
@@ -368,7 +368,7 @@ function _loadPackages() {
368
368
  break;
369
369
  }
370
370
  _context6.prev = 14;
371
- console.log("Loading package ".concat(dirName));
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
- console.log("Package published ".concat(dirName));
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
- console.log("Package wasn't published ".concat(dirName));
403
+ process.stdout.write(" fail!\n");
404
404
  case 34:
405
405
  _context6.next = 39;
406
406
  break;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datagrok-tools",
3
- "version": "4.13.41",
3
+ "version": "4.13.43",
4
4
  "description": "Utility to upload and publish packages to Datagrok",
5
5
  "homepage": "https://github.com/datagrok-ai/public/tree/master/tools#readme",
6
6
  "dependencies": {