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 +1 -1
- package/build-esbuild.js +25 -4
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.5.
|
|
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
|
-
//
|
|
105
|
-
build.onResolve({ filter: /^
|
|
106
|
-
|
|
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
|
|