fileflows 1.0.2 → 1.0.3

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.
@@ -53,10 +53,32 @@ function getDependencies() {
53
53
  fs: require(`fs`),
54
54
  path: require(`path`),
55
55
  childProcess: require(`child_process`),
56
- os: require(`os`),
57
-
58
- // Testing dependencies (from qtests.config.js)
59
- qtests: require(`qtests`)
56
+ os: require(`os`)
57
+ };
58
+ }
59
+
60
+ // === DEVELOPMENT DEPENDENCIES ===
61
+ // Async loading for ES module dependencies (qtests is an ES module)
62
+ async function getDevDependencies() {
63
+ // Check if this is a development environment and qtests is available
64
+ if (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test') {
65
+ try {
66
+ // Use dynamic import for ES modules
67
+ const qtests = await import('qtests');
68
+ return {
69
+ qtests: qtests
70
+ };
71
+ } catch (error) {
72
+ // qtests not available
73
+ return {
74
+ qtests: null
75
+ };
76
+ }
77
+ }
78
+
79
+ // Production environment - don't load qtests at all
80
+ return {
81
+ qtests: null
60
82
  };
61
83
  }
62
84
 
@@ -82,5 +104,6 @@ module.exports = {
82
104
  MAX_SHELL_COMMANDS,
83
105
  MAX_HTML_TAGS,
84
106
  getDependencies,
107
+ getDevDependencies,
85
108
  getEnvironmentConfig
86
109
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fileflows",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "CLI tool for deploying data workflow analysis documentation",
5
5
  "main": "cli.js",
6
6
  "bin": {
@@ -54,7 +54,6 @@
54
54
  "dependencies": {
55
55
  "@babel/parser": "^7.28.3",
56
56
  "@babel/traverse": "^7.28.3",
57
- "globby": "^14.1.0",
58
57
  "qerrors": "^1.2.6",
59
58
  "winston": "^3.17.0",
60
59
  "winston-daily-rotate-file": "^5.0.0"
@@ -71,4 +70,4 @@
71
70
  "repomix": "^1.2.0",
72
71
  "unqommented": "^1.1.0"
73
72
  }
74
- }
73
+ }