qcobjects-cli 2.5.132-beta → 2.5.133-beta

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/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.132-beta
1
+ 2.5.133-beta
package/build-esbuild.js CHANGED
@@ -101,14 +101,31 @@ const copyDir = async (source, dest, exclude) => {
101
101
  const ignorePlugin = {
102
102
  name: 'ignore-packages',
103
103
  setup(build) {
104
- // Handle both static and dynamic imports of these packages
105
- build.onResolve({ filter: /^(qcobjects-sdk|qcobjects)$/ }, args => {
104
+ // More specific handling of qcobjects imports
105
+ build.onResolve({ filter: /^qcobjects$/ }, args => {
106
+ // Log for debugging
107
+ console.log('Resolving qcobjects import:', args);
108
+
106
109
  return {
107
110
  external: true,
108
- // Preserve the path for dynamic imports
109
- path: args.path
111
+ path: args.path,
112
+ namespace: 'external-module'
110
113
  }
111
- })
114
+ });
115
+
116
+ // Handle qcobjects-sdk similarly
117
+ build.onResolve({ filter: /^qcobjects-sdk$/ }, args => {
118
+ return {
119
+ external: true,
120
+ path: args.path,
121
+ namespace: 'external-module'
122
+ }
123
+ });
124
+
125
+ // Optional: Add load handler for better control
126
+ build.onLoad({ filter: /.*/, namespace: 'external-module' }, args => {
127
+ return { contents: `export * from '${args.path}'` }
128
+ });
112
129
  }
113
130
  }
114
131
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qcobjects-cli",
3
- "version": "2.5.132-beta",
3
+ "version": "2.5.133-beta",
4
4
  "description": "qcobjects cli command line tool",
5
5
  "main": "public/cjs/index.cjs",
6
6
  "module": "public/esm/index.mjs",