datagrok-tools 4.13.64 → 4.13.65

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 CHANGED
@@ -1,6 +1,12 @@
1
1
  # Datagrok-tools changelog
2
2
 
3
- ## 4.13.63 (2025-02-27)
3
+ ## 4.13.65 (2025-03-18)
4
+
5
+ ### Features
6
+
7
+ * fixed func-gen-plugin for js packages
8
+
9
+ ## 4.13.64 (2025-02-27)
4
10
 
5
11
  ### Features
6
12
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "datagrok-tools",
3
- "version": "4.13.64",
3
+ "version": "4.13.65",
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": {
7
- "@babel/parser": "^7.23.6",
7
+ "@babel/parser": "^7.26.10",
8
8
  "@babel/runtime": "^7.23.8",
9
9
  "@babel/traverse": "^7.23.7",
10
10
  "archiver": "^4.0.2",
@@ -12,7 +12,9 @@ class FuncGeneratorPlugin {
12
12
 
13
13
  apply(compiler) {
14
14
  const srcDirPath = path.join(compiler.context, 'src');
15
- const packageFilePath = path.join(srcDirPath, 'package.ts');
15
+ let packageFilePath = path.join(srcDirPath, 'package.ts');
16
+ if(!fs.existsSync(packageFilePath))
17
+ packageFilePath = path.join(srcDirPath, 'package.js');
16
18
  const tsFiles = this._getTsFiles(srcDirPath);
17
19
  const genImports = [];
18
20
  const genExports = [];