fix(pulumi): drop exports map so Pulumi can serialize the provider (v0.0.2) #80
@@ -92,5 +92,9 @@ of the project it is attached to (the project-scope guard only gates
|
|||||||
encrypted, in Pulumi state. Use an encrypted state backend.
|
encrypted, in Pulumi state. Use an encrypted state backend.
|
||||||
- **Serialization:** this package is CommonJS on purpose — Pulumi serializes the
|
- **Serialization:** this package is CommonJS on purpose — Pulumi serializes the
|
||||||
provider object, and the CJS build lets its module references (`./engine`,
|
provider object, and the CJS build lets its module references (`./engine`,
|
||||||
`./kinds`) be captured and re-required at runtime. Validate end-to-end with a
|
`./kinds`) be captured and re-required at runtime. For the same reason the
|
||||||
real `pulumi up` against a disposable mcpd before relying on it in production.
|
package intentionally has **no `exports` map**: Pulumi's closure serializer
|
||||||
|
reaches the internal `dist/*.js` submodules by subpath, which an `exports`
|
||||||
|
allowlist would block ("package.json export path ... not found"). Validate
|
||||||
|
end-to-end with a real `pulumi up` against a disposable mcpd before relying on
|
||||||
|
it in production.
|
||||||
|
|||||||
@@ -1,18 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@mcpctl/pulumi",
|
"name": "@mcpctl/pulumi",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"description": "Pulumi dynamic provider for mcpctl resources (llms, servers, projects, ...). Manage mcpctl declaratively from any TypeScript Pulumi program.",
|
"description": "Pulumi dynamic provider for mcpctl resources (llms, servers, projects, ...). Manage mcpctl declaratively from any TypeScript Pulumi program.",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"exports": {
|
|
||||||
".": {
|
|
||||||
"require": "./dist/index.js",
|
|
||||||
"types": "./dist/index.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build",
|
"build": "tsc --build",
|
||||||
"clean": "rimraf dist",
|
"clean": "rimraf dist",
|
||||||
|
|||||||
Reference in New Issue
Block a user