datagrok-tools 4.14.3 → 4.14.4
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 +5 -2
- package/package.json +1 -1
package/bin/commands/check.js
CHANGED
|
@@ -360,8 +360,11 @@ function checkPackageFile(packagePath, json, options) {
|
|
|
360
360
|
if (api) {
|
|
361
361
|
if (api === '../../js-api') {} else if (api === 'latest') warnings.push('File "package.json": you should specify Datagrok API version constraint (for example ^1.16.0, >=1.16.0).');else if (options?.isReleaseCandidateVersion === false && !/^(\^|>|<|~).+/.test(api)) warnings.push('File "package.json": Datagrok API version should starts with > | >= | ~ | ^ | < | <=');
|
|
362
362
|
}
|
|
363
|
-
|
|
364
|
-
|
|
363
|
+
|
|
364
|
+
// const dt = json.devDependencies?.['datagrok-tools'] ?? json.dependencies?.['datagrok-tools'];
|
|
365
|
+
// if (dt && dt !== 'latest')
|
|
366
|
+
// warnings.push('File "package.json": "datagrok-tools" dependency must be "latest" version.');
|
|
367
|
+
|
|
365
368
|
if (Array.isArray(json.sources) && json.sources.length > 0) {
|
|
366
369
|
for (const source of json.sources) {
|
|
367
370
|
if (typeof source !== 'string') warnings.push(`File "package.json": Only file paths and URLs are allowed in sources. Modify the source ${source}`);
|
package/package.json
CHANGED