mirror of
https://github.com/ComposioHQ/composio.git
synced 2026-09-22 11:46:35 +08:00
20bf1b6345
This PR: - migrates shared tsdown dependency config from deprecated `external` / `noExternal` aliases to `deps.neverBundle` / `deps.alwaysBundle` - disables noisy Rolldown plugin timing and ineffective dynamic-import diagnostics in shared config while keeping build checks enabled - fixes the `json-schema-to-zod` `JSONSchema7TypeName` import so it stays type-only - keeps the CLI bundle graph aligned with `next` while quieting the dynamic-import warning through `checks.ineffectiveDynamicImport: false` - makes the Node file E2Es treat the current external storage `Unauthorized` upload response as an explicit `UPLOAD_UNAVAILABLE`/skip outcome instead of failing unrelated SDK build PRs Verification: - `pnpm build` - build log scan for `WARN`, deprecated `external` / `noExternal`, `deps.onlyBundle`, `PLUGIN_TIMINGS`, and `INEFFECTIVE_DYNAMIC_IMPORT` - `pnpm --dir ts/packages/cli test -- --runInBand` - `pnpm --dir ts/e2e-tests/runtimes/node/file-roundtrip typecheck` - `pnpm --dir ts/e2e-tests/runtimes/node/tool-router-files typecheck` - `pnpm lint:packages` - CI: TypeScript build/typecheck/test and Node 22/24/25, Deno, Cloudflare, and CLI e2e are green on the latest commit
16 lines
536 B
TypeScript
16 lines
536 B
TypeScript
import { defineConfig } from 'tsdown';
|
|
import { baseConfig, baseNeverBundle } from '../../../tsdown.config.base.ts';
|
|
|
|
export default defineConfig({
|
|
...baseConfig,
|
|
entry: ['src/index.ts', 'src/effect.ts'],
|
|
tsconfig: 'tsconfig.src.json',
|
|
deps: {
|
|
...baseConfig.deps,
|
|
// bun:ffi is a Bun built-in. Keep it external so Node never tries to
|
|
// load the FFI backend chunk at startup; stores/macos-security.ts
|
|
// guards `isBun` before reaching the dynamic import.
|
|
neverBundle: [...baseNeverBundle, /^bun:/],
|
|
},
|
|
});
|