datagrok-tools 6.0.0 → 6.0.1

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.
@@ -191,7 +191,7 @@ function checkDatagrokApiImports(packagePath, files) {
191
191
  const datagrokApiImportRegex = /^\s*(import|export)\s+.*['"]datagrok-api\/[^'"]+['"]/gm;
192
192
 
193
193
  // Regex to validate if import/export is allowed (only dg, grok, ui)
194
- const allowedImportRegex = /^\s*(import|export)\s+.*['"]datagrok-api\/(dg|grok|ui)['"]/;
194
+ const allowedImportRegex = /^\s*(import|export)\s+.*['"]datagrok-api\/(dg|grok|ui|datagrok)['"]/;
195
195
 
196
196
  // Regex to extract the import path for error messages
197
197
  const importPathRegex = /['"]datagrok-api\/([^'"]+)['"]/;
@@ -219,8 +219,9 @@ async function publish(args) {
219
219
  await utils.runScript(`grok link`, curDir);
220
220
  await utils.runScript(`npm run build`, curDir);
221
221
  }
222
- await publishPackage(args);
222
+ return await publishPackage(args);
223
223
  }
224
+ return true;
224
225
  }
225
226
  async function publishPackage(args) {
226
227
  const nArgs = args['_'].length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datagrok-tools",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
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": {