datagrok-tools 4.7.8 → 4.7.9
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/bin/commands/check.js +1 -0
- package/bin/commands/publish.js +18 -16
- package/package.json +1 -1
package/bin/commands/check.js
CHANGED
|
@@ -10,6 +10,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
10
10
|
exports.check = check;
|
|
11
11
|
exports.checkFuncSignatures = checkFuncSignatures;
|
|
12
12
|
exports.checkImportStatements = checkImportStatements;
|
|
13
|
+
exports.checkPackageFile = checkPackageFile;
|
|
13
14
|
exports.extractExternals = extractExternals;
|
|
14
15
|
|
|
15
16
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
package/bin/commands/publish.js
CHANGED
|
@@ -62,7 +62,7 @@ function processPackage(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
|
62
62
|
|
|
63
63
|
function _processPackage() {
|
|
64
64
|
_processPackage = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(debug, rebuild, host, devKey, packageName, suffix) {
|
|
65
|
-
var timestamps, url, zip, localTimestamps, files, isWebpack, distFiles, contentValidationLog, checkStart, jsTsFiles, webpackConfigPath, content, externals, importWarnings, funcFiles, funcWarnings, uploadPromise, log;
|
|
65
|
+
var timestamps, url, zip, localTimestamps, files, isWebpack, distFiles, contentValidationLog, checkStart, jsTsFiles, webpackConfigPath, content, externals, importWarnings, funcFiles, funcWarnings, packageWarnings, uploadPromise, log;
|
|
66
66
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
67
67
|
while (1) {
|
|
68
68
|
switch (_context3.prev = _context3.next) {
|
|
@@ -179,6 +179,8 @@ function _processPackage() {
|
|
|
179
179
|
});
|
|
180
180
|
funcWarnings = (0, _check.checkFuncSignatures)(curDir, funcFiles);
|
|
181
181
|
contentValidationLog += funcWarnings.join('\n') + (funcWarnings.length ? '\n' : '');
|
|
182
|
+
packageWarnings = (0, _check.checkPackageFile)(curDir);
|
|
183
|
+
contentValidationLog += packageWarnings.join('\n') + (packageWarnings.length ? '\n' : '');
|
|
182
184
|
console.log("Checks finished in ".concat(Date.now() - checkStart, " ms"));
|
|
183
185
|
files.forEach(function (file) {
|
|
184
186
|
var fullPath = file;
|
|
@@ -265,21 +267,21 @@ function _processPackage() {
|
|
|
265
267
|
})["catch"](function (error) {
|
|
266
268
|
console.error(error);
|
|
267
269
|
});
|
|
268
|
-
_context3.next =
|
|
270
|
+
_context3.next = 52;
|
|
269
271
|
return zip.finalize();
|
|
270
272
|
|
|
271
|
-
case
|
|
272
|
-
_context3.prev =
|
|
273
|
-
_context3.next =
|
|
273
|
+
case 52:
|
|
274
|
+
_context3.prev = 52;
|
|
275
|
+
_context3.next = 55;
|
|
274
276
|
return uploadPromise;
|
|
275
277
|
|
|
276
|
-
case
|
|
278
|
+
case 55:
|
|
277
279
|
log = _context3.sent;
|
|
278
280
|
|
|
279
281
|
_fs["default"].unlinkSync('zip');
|
|
280
282
|
|
|
281
283
|
if (!(log['#type'] === 'ApiError')) {
|
|
282
|
-
_context3.next =
|
|
284
|
+
_context3.next = 63;
|
|
283
285
|
break;
|
|
284
286
|
}
|
|
285
287
|
|
|
@@ -287,29 +289,29 @@ function _processPackage() {
|
|
|
287
289
|
console.error(log['innerMessage']);
|
|
288
290
|
return _context3.abrupt("return", 1);
|
|
289
291
|
|
|
290
|
-
case
|
|
292
|
+
case 63:
|
|
291
293
|
console.log(log);
|
|
292
294
|
color.warn(contentValidationLog);
|
|
293
295
|
|
|
294
|
-
case
|
|
295
|
-
_context3.next =
|
|
296
|
+
case 65:
|
|
297
|
+
_context3.next = 71;
|
|
296
298
|
break;
|
|
297
299
|
|
|
298
|
-
case
|
|
299
|
-
_context3.prev =
|
|
300
|
-
_context3.t1 = _context3["catch"](
|
|
300
|
+
case 67:
|
|
301
|
+
_context3.prev = 67;
|
|
302
|
+
_context3.t1 = _context3["catch"](52);
|
|
301
303
|
console.error(_context3.t1);
|
|
302
304
|
return _context3.abrupt("return", 1);
|
|
303
305
|
|
|
304
|
-
case
|
|
306
|
+
case 71:
|
|
305
307
|
return _context3.abrupt("return", 0);
|
|
306
308
|
|
|
307
|
-
case
|
|
309
|
+
case 72:
|
|
308
310
|
case "end":
|
|
309
311
|
return _context3.stop();
|
|
310
312
|
}
|
|
311
313
|
}
|
|
312
|
-
}, _callee3, null, [[3, 14], [
|
|
314
|
+
}, _callee3, null, [[3, 14], [52, 67]]);
|
|
313
315
|
}));
|
|
314
316
|
return _processPackage.apply(this, arguments);
|
|
315
317
|
}
|
package/package.json
CHANGED