datagrok-tools 4.14.13 → 4.14.15
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 +2 -2
- package/bin/commands/api.js +0 -3
- package/bin/commands/help.js +10 -8
- package/bin/commands/link.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Datagrok-tools changelog
|
|
2
2
|
|
|
3
|
-
## 4.14.
|
|
3
|
+
## 4.14.14 (2025-06-16)
|
|
4
4
|
|
|
5
5
|
### Features
|
|
6
6
|
|
|
7
7
|
* Grok Link added ability to link packages from root directory
|
|
8
|
-
* Grok Link added
|
|
8
|
+
* Grok Link added repo-only option
|
|
9
9
|
|
|
10
10
|
## 4.14.10 (2025-06-08)
|
|
11
11
|
|
package/bin/commands/api.js
CHANGED
|
@@ -68,15 +68,12 @@ function generateScriptWrappers() {
|
|
|
68
68
|
path: dir,
|
|
69
69
|
ignoreFiles: ['.npmignore', '.gitignore']
|
|
70
70
|
});
|
|
71
|
-
console.log(files);
|
|
72
71
|
for (const file of files) {
|
|
73
72
|
let extension;
|
|
74
73
|
if (!utils.scriptExtensions.some(ext => (extension = ext, file.endsWith(ext)))) continue;
|
|
75
74
|
const filepath = _path.default.join(dir, file);
|
|
76
75
|
const script = _fs.default.readFileSync(filepath, 'utf8');
|
|
77
76
|
if (!script) continue;
|
|
78
|
-
console.log(filepath);
|
|
79
|
-
console.log(script);
|
|
80
77
|
const name = utils.getScriptName(script, utils.commentMap[extension]);
|
|
81
78
|
if (!name) continue;
|
|
82
79
|
const description = utils.getScriptDescription(script);
|
package/bin/commands/help.js
CHANGED
|
@@ -175,13 +175,13 @@ Options:
|
|
|
175
175
|
--link-package Link the packages to local utils
|
|
176
176
|
--record Records the test execution process in mp4 format
|
|
177
177
|
--verbose Prints detailed information about passed and skipped tests in the console
|
|
178
|
-
--core Runs packages & core tests (applicable
|
|
178
|
+
--core Runs packages & core tests (applicable for DevTools packages only)
|
|
179
179
|
--benchmark Runs tests in benchmark mode
|
|
180
180
|
--stress-test Runs shuffled stress-test only
|
|
181
181
|
--order Specify order for tests invocation
|
|
182
182
|
--tags Filter tests by tag name for run
|
|
183
183
|
--testRepeat Set amount of tests repeats
|
|
184
|
-
--browsers-count
|
|
184
|
+
--browsers-count Set amount of browsers for tests run
|
|
185
185
|
|
|
186
186
|
Run tests of all or specified packages
|
|
187
187
|
|
|
@@ -191,14 +191,16 @@ https://datagrok.ai/help/develop/how-to/test-packages#local-testing
|
|
|
191
191
|
const HELP_LINK = `
|
|
192
192
|
Usage: grok link
|
|
193
193
|
|
|
194
|
-
|
|
194
|
+
Links \`datagrok-api\`, all necessary libraries and packages for local development.
|
|
195
|
+
Uses \`npm link\` unless the --path option specified.
|
|
196
|
+
By default, it links packages from the parent directory of the repository's root.
|
|
195
197
|
|
|
196
198
|
Options:
|
|
197
|
-
--dev
|
|
198
|
-
--path
|
|
199
|
-
--
|
|
200
|
-
--unlink
|
|
201
|
-
--verbose
|
|
199
|
+
--dev Links also dev dependencies
|
|
200
|
+
--path Instead of npm link, sets dependencies in package.json to local
|
|
201
|
+
--repo-only Links packages only from the current repository
|
|
202
|
+
--unlink Unlinks packages and sets last versions instead of local path in package.json dependencies
|
|
203
|
+
--verbose Prints detailed information about linked packages
|
|
202
204
|
`;
|
|
203
205
|
|
|
204
206
|
// const HELP_MIGRATE = `
|
package/bin/commands/link.js
CHANGED
|
@@ -39,7 +39,7 @@ async function link(args) {
|
|
|
39
39
|
devMode = args.dev ?? false;
|
|
40
40
|
pathMode = args.path ?? false;
|
|
41
41
|
unlink = args.unlink ?? false;
|
|
42
|
-
let collectedPackages = collectAvaliablePackages(args['
|
|
42
|
+
let collectedPackages = collectAvaliablePackages(args['repo-only']);
|
|
43
43
|
packagesInRepo = collectedPackages.packagesInRepo;
|
|
44
44
|
packagesOutOfRepo = collectedPackages.packagesOutOfRepo;
|
|
45
45
|
localPackageDependencies = [];
|
package/package.json
CHANGED