fix(pulumi): drop exports map so Pulumi can serialize the provider (v0.0.2) #80

Merged
michal merged 1 commits from fix/pulumi-provider-exports into main 2026-07-17 21:32:50 +00:00
Owner

Removes the exports map from @mcpctl/pulumi's package.json (keeps main/types) and bumps to 0.0.2.

Pulumi's closure serializer reaches the dynamic provider's internal submodules (dist/engine.js, dist/kinds.js) by subpath. An exports allowlist with only . blocks that — pulumi preview threw package.json export path for .../dist/kinds.js not found. Removing exports fixes it.

Verified end-to-end: published 0.0.2 to the Gitea npm registry, consumed it from kubernetes-deployment, and a real targeted pulumi up updated mcpd's qwen3-thinking llm to the active served model (glm-4.5-air); live infer probe returns HTTP 200. 18 unit tests still green.

🤖 Generated with Claude Code

Removes the `exports` map from `@mcpctl/pulumi`'s package.json (keeps `main`/`types`) and bumps to 0.0.2. Pulumi's closure serializer reaches the dynamic provider's internal submodules (`dist/engine.js`, `dist/kinds.js`) by subpath. An `exports` allowlist with only `.` blocks that — `pulumi preview` threw `package.json export path for .../dist/kinds.js not found`. Removing `exports` fixes it. Verified end-to-end: published 0.0.2 to the Gitea npm registry, consumed it from kubernetes-deployment, and a real targeted `pulumi up` updated mcpd's `qwen3-thinking` llm to the active served model (`glm-4.5-air`); live infer probe returns HTTP 200. 18 unit tests still green. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
michal added 1 commit 2026-07-17 21:32:42 +00:00
fix(pulumi): drop exports map so Pulumi can serialize the provider (v0.0.2)
Some checks failed
CI/CD / lint (pull_request) Successful in 1m1s
CI/CD / typecheck (pull_request) Successful in 2m6s
CI/CD / test (pull_request) Successful in 1m19s
CI/CD / build (pull_request) Successful in 2m24s
CI/CD / smoke (pull_request) Failing after 3m9s
CI/CD / publish (pull_request) Has been skipped
a517443828
Pulumi's closure serializer reaches the dynamic provider's internal submodules
(dist/engine.js, dist/kinds.js) by subpath. An `exports` allowlist with only
"." blocks that: `pulumi preview` failed with "package.json export path for
.../dist/kinds.js not found". Removing `exports` (keeping main/types) lets the
serializer resolve them. Verified end-to-end: a real `pulumi up` from
kubernetes-deployment updated mcpd's qwen3-thinking llm and it probes 200.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
michal merged commit ae66ad8430 into main 2026-07-17 21:32:50 +00:00
michal deleted branch fix/pulumi-provider-exports 2026-07-17 21:32:51 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: michal/mcpctl#80