datagrok-tools 6.7.4 → 6.7.5

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > datagrok-tools@6.7.4 build /home/runner/work/public/public/tools
2
+ > datagrok-tools@6.7.5 build /home/runner/work/public/public/tools
3
3
  > node build.js
4
4
 
5
5
  Successfully compiled 51 files with Babel.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Datagrok-tools changelog
2
2
 
3
+ ## 6.7.5 (2026-09-17)
4
+
5
+ * `grok create` works outside the pnpm workspace and new packages use `@datagrok/build-config` 1.x
6
+
3
7
  ## 6.7.4 (2026-09-17)
4
8
 
5
9
  * `grok create`, `grok publish`, `grok test` and `grok run` work inside the pnpm workspace
@@ -26,6 +26,11 @@ const confTemplate = _jsYaml.default.load(_fs.default.readFileSync(confTemplateD
26
26
  encoding: 'utf-8'
27
27
  }));
28
28
  const dependencies = [];
29
+ function apiVersion() {
30
+ let dir = _path.default.dirname(require.resolve('datagrok-api/dg'));
31
+ while (!_fs.default.existsSync(_path.default.join(dir, 'package.json'))) dir = _path.default.dirname(dir);
32
+ return JSON.parse(_fs.default.readFileSync(_path.default.join(dir, 'package.json'), 'utf8')).version;
33
+ }
29
34
  function createDirectoryContents(name, friendlyName, config, templateDir, packageDir, ide = '', ts = true, eslint = false, test = false) {
30
35
  const filesToCreate = _fs.default.readdirSync(templateDir);
31
36
  filesToCreate.forEach(file => {
@@ -58,7 +63,7 @@ function createDirectoryContents(name, friendlyName, config, templateDir, packag
58
63
  // nothing to npm: pin published ranges and bring the toolchain in as a devDependency.
59
64
  if (!utils.isPnpmWorkspace(packageDir)) {
60
65
  const published = {
61
- 'datagrok-api': `^${require('datagrok-api/package.json').version}`,
66
+ 'datagrok-api': `^${apiVersion()}`,
62
67
  '@datagrok-libraries/test': '^1.4.0',
63
68
  'rxjs': '^6.5.5',
64
69
  'cash-dom': '^8.1.5',
@@ -72,7 +77,7 @@ function createDirectoryContents(name, friendlyName, config, templateDir, packag
72
77
  }
73
78
  }
74
79
  Object.assign(_package.devDependencies, {
75
- '@datagrok/build-config': '^0.1.0',
80
+ '@datagrok/build-config': '^1.0.0',
76
81
  'eslint': '^8.57.1',
77
82
  '@typescript-eslint/parser': '^8.39.0',
78
83
  '@typescript-eslint/eslint-plugin': '^8.39.0',
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/datagrok-ai/public.git"
6
6
  },
7
- "version": "6.7.4",
7
+ "version": "6.7.5",
8
8
  "description": "Utility to upload and publish packages to Datagrok",
9
9
  "homepage": "https://github.com/datagrok-ai/public/tree/master/tools#readme",
10
10
  "dependencies": {