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.
- package/bin/commands/check.js +1 -1
- package/bin/commands/publish.js +2 -1
- package/package.json +1 -1
package/bin/commands/check.js
CHANGED
|
@@ -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\/([^'"]+)['"]/;
|
package/bin/commands/publish.js
CHANGED
|
@@ -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