@standardagents/builder 0.12.3 → 0.12.5
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/dist/index.js +18 -0
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +18 -0
- package/dist/plugin.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -12885,6 +12885,14 @@ function agentbuilder(options = {}) {
|
|
|
12885
12885
|
return {
|
|
12886
12886
|
// Set publicDir to builder's client assets so Cloudflare plugin preserves assets config
|
|
12887
12887
|
publicDir: fs2__default.existsSync(builderClientDir) ? builderClientDir : void 0,
|
|
12888
|
+
build: {
|
|
12889
|
+
rollupOptions: {
|
|
12890
|
+
// fsevents is a macOS-only native module dynamically imported by rollup's
|
|
12891
|
+
// file watcher. Rollup is pulled in by the packing system but fsevents is
|
|
12892
|
+
// never needed at runtime. Must be externalized for Linux CI builds.
|
|
12893
|
+
external: ["fsevents"]
|
|
12894
|
+
}
|
|
12895
|
+
},
|
|
12888
12896
|
optimizeDeps: {
|
|
12889
12897
|
// Exclude our packages from pre-bundling - they contain cloudflare:workers imports
|
|
12890
12898
|
// that cannot be resolved during dependency optimization
|
|
@@ -12950,6 +12958,16 @@ function agentbuilder(options = {}) {
|
|
|
12950
12958
|
...config.optimizeDeps.include || [],
|
|
12951
12959
|
...depsToInclude.filter((dep) => !config.optimizeDeps?.include?.includes(dep))
|
|
12952
12960
|
];
|
|
12961
|
+
config.build = config.build || {};
|
|
12962
|
+
config.build.rollupOptions = config.build.rollupOptions || {};
|
|
12963
|
+
const existing = config.build.rollupOptions.external;
|
|
12964
|
+
if (Array.isArray(existing)) {
|
|
12965
|
+
if (!existing.includes("fsevents")) existing.push("fsevents");
|
|
12966
|
+
} else if (typeof existing === "string") {
|
|
12967
|
+
config.build.rollupOptions.external = [existing, "fsevents"];
|
|
12968
|
+
} else if (!existing) {
|
|
12969
|
+
config.build.rollupOptions.external = ["fsevents"];
|
|
12970
|
+
}
|
|
12953
12971
|
},
|
|
12954
12972
|
resolveId(id) {
|
|
12955
12973
|
if (id === VIRTUAL_TOOLS_ID) {
|