qcobjects-cli 2.5.131-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.131-beta
1
+ 2.5.133-beta
package/build-esbuild.js CHANGED
@@ -101,10 +101,31 @@ const copyDir = async (source, dest, exclude) => {
101
101
  const ignorePlugin = {
102
102
  name: 'ignore-packages',
103
103
  setup(build) {
104
- // Tell esbuild to ignore these packages
105
- build.onResolve({ filter: /^(qcobjects-sdk|qcobjects)$/ }, args => {
106
- return { external: true }
107
- })
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
+
109
+ return {
110
+ external: true,
111
+ path: args.path,
112
+ namespace: 'external-module'
113
+ }
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
+ });
108
129
  }
109
130
  }
110
131
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qcobjects-cli",
3
- "version": "2.5.131-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",