@powerlines/plugin-pulumi 0.4.0 → 0.5.1
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.d.cts +11 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +11 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/plugin.cjs +4 -1
- package/dist/plugin.mjs +4 -1
- package/dist/plugin.mjs.map +1 -1
- package/dist/types/index.d.cts +2 -1
- package/dist/types/index.d.mts +2 -1
- package/dist/types/pulumi.cjs +0 -0
- package/dist/types/pulumi.d.cts +12 -0
- package/dist/types/pulumi.d.cts.map +1 -0
- package/dist/types/pulumi.d.mts +12 -0
- package/dist/types/pulumi.d.mts.map +1 -0
- package/dist/types/pulumi.mjs +1 -0
- package/package.json +18 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig } from "./types/plugin.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { DeployPulumiResult, PulumiOutputRecord, __ΩDeployPulumiResult, __ΩPulumiOutputRecord } from "./types/pulumi.cjs";
|
|
3
3
|
import "./types/index.cjs";
|
|
4
|
+
import { plugin } from "./plugin.cjs";
|
|
4
5
|
import { MaybePromise } from "@stryke/types";
|
|
5
6
|
import { PluginContext } from "powerlines";
|
|
6
7
|
|
|
@@ -10,9 +11,16 @@ declare module "powerlines" {
|
|
|
10
11
|
pulumi?: PulumiPluginOptions;
|
|
11
12
|
}
|
|
12
13
|
interface Hooks<TContext extends PluginContext> {
|
|
13
|
-
|
|
14
|
+
/**
|
|
15
|
+
* A hook that can be implemented to deploy Pulumi resources after the main build process. This allows you to define and manage your infrastructure as code using Pulumi, directly from your Powerlines plugin.
|
|
16
|
+
*
|
|
17
|
+
* @param this - The plugin context.
|
|
18
|
+
* @param resources - An object containing the Pulumi resources' outputs that were added in earlier hook invocations.
|
|
19
|
+
* @returns Optionally, the resources' outputs that were added during the Pulumi deployment that will be passed to the next hook invocation.
|
|
20
|
+
*/
|
|
21
|
+
deployPulumi?: (this: TContext, resources?: PulumiOutputRecord) => MaybePromise<DeployPulumiResult>;
|
|
14
22
|
}
|
|
15
23
|
}
|
|
16
24
|
//#endregion
|
|
17
|
-
export { PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig, plugin };
|
|
25
|
+
export { DeployPulumiResult, PulumiOutputRecord, PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩDeployPulumiResult, __ΩPulumiOutputRecord, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig, plugin };
|
|
18
26
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;aAyBa;;EAJwC,UAAA,KAAA,CAAA,iBAOlB,aAPkB,CAAA,CAAA;IAAA;;;;;;;IAkB5C,YAAA,CAAA,EAAA,CAAA,IAAA,EAFG,QAEH,EAAA,SAAA,CAAA,EADS,kBACT,EAAA,GAAA,YAAA,CAAa,kBAAb,CAAA;EAAY"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig } from "./types/plugin.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { DeployPulumiResult, PulumiOutputRecord, __ΩDeployPulumiResult, __ΩPulumiOutputRecord } from "./types/pulumi.mjs";
|
|
3
3
|
import "./types/index.mjs";
|
|
4
|
+
import { plugin } from "./plugin.mjs";
|
|
4
5
|
import { MaybePromise } from "@stryke/types";
|
|
5
6
|
import { PluginContext } from "powerlines";
|
|
6
7
|
|
|
@@ -10,9 +11,16 @@ declare module "powerlines" {
|
|
|
10
11
|
pulumi?: PulumiPluginOptions;
|
|
11
12
|
}
|
|
12
13
|
interface Hooks<TContext extends PluginContext> {
|
|
13
|
-
|
|
14
|
+
/**
|
|
15
|
+
* A hook that can be implemented to deploy Pulumi resources after the main build process. This allows you to define and manage your infrastructure as code using Pulumi, directly from your Powerlines plugin.
|
|
16
|
+
*
|
|
17
|
+
* @param this - The plugin context.
|
|
18
|
+
* @param resources - An object containing the Pulumi resources' outputs that were added in earlier hook invocations.
|
|
19
|
+
* @returns Optionally, the resources' outputs that were added during the Pulumi deployment that will be passed to the next hook invocation.
|
|
20
|
+
*/
|
|
21
|
+
deployPulumi?: (this: TContext, resources?: PulumiOutputRecord) => MaybePromise<DeployPulumiResult>;
|
|
14
22
|
}
|
|
15
23
|
}
|
|
16
24
|
//#endregion
|
|
17
|
-
export { PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig, plugin };
|
|
25
|
+
export { DeployPulumiResult, PulumiOutputRecord, PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩDeployPulumiResult, __ΩPulumiOutputRecord, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig, plugin };
|
|
18
26
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;aAyBa;;EAJwC,UAAA,KAAA,CAAA,iBAOlB,aAPkB,CAAA,CAAA;IAAA;;;;;;;IAkB5C,YAAA,CAAA,EAAA,CAAA,IAAA,EAFG,QAEH,EAAA,SAAA,CAAA,EADS,kBACT,EAAA,GAAA,YAAA,CAAa,kBAAb,CAAA;EAAY"}
|
package/dist/plugin.cjs
CHANGED
|
@@ -35,7 +35,10 @@ const plugin = (options = {}) => {
|
|
|
35
35
|
...this.config.pulumi,
|
|
36
36
|
program: async () => {
|
|
37
37
|
this.debug("Executing Pulumi program to define infrastructure resources.");
|
|
38
|
-
await this.$$internal.callHook("deployPulumi", {
|
|
38
|
+
await this.$$internal.callHook("deployPulumi", {
|
|
39
|
+
sequential: true,
|
|
40
|
+
result: "merge"
|
|
41
|
+
});
|
|
39
42
|
this.debug("Pulumi program execution completed. Resources have been defined.");
|
|
40
43
|
}
|
|
41
44
|
});
|
package/dist/plugin.mjs
CHANGED
|
@@ -33,7 +33,10 @@ const plugin = (options = {}) => {
|
|
|
33
33
|
...this.config.pulumi,
|
|
34
34
|
program: async () => {
|
|
35
35
|
this.debug("Executing Pulumi program to define infrastructure resources.");
|
|
36
|
-
await this.$$internal.callHook("deployPulumi", {
|
|
36
|
+
await this.$$internal.callHook("deployPulumi", {
|
|
37
|
+
sequential: true,
|
|
38
|
+
result: "merge"
|
|
39
|
+
});
|
|
37
40
|
this.debug("Pulumi program execution completed. Resources have been defined.");
|
|
38
41
|
}
|
|
39
42
|
});
|
package/dist/plugin.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.mjs","names":[],"sources":["../src/plugin.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n fullyQualifiedStackName,\n LocalWorkspace\n} from \"@pulumi/pulumi/automation\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport { getOrganizationName, getWorkspaceName } from \"powerlines/plugin-utils\";\nimport { UNSAFE_PulumiPluginContext } from \"./types/_internal\";\nimport { PulumiPluginOptions } from \"./types/plugin\";\n\n/**\n * A package containing a Powerlines plugin to configure infrastructure and deploy a project using Pulumi IaC.\n *\n * @see https://www.pulumi.com\n *\n * @param options - The Pulumi plugin user configuration options.\n * @returns A Powerlines plugin to configure infrastructure and deploy a project using Pulumi.\n */\nexport const plugin = <\n TContext extends UNSAFE_PulumiPluginContext = UNSAFE_PulumiPluginContext\n>(\n options: PulumiPluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n {\n name: \"pulumi\",\n async config() {\n return {\n deploy: {\n pulumi: defu(options, {\n projectName: this.config.name,\n settings: {}\n })\n }\n };\n },\n async configResolved() {\n const organizationName = kebabCase(getOrganizationName(this));\n const workspaceName = kebabCase(getWorkspaceName(this));\n const projectName = kebabCase(this.config.name);\n\n this.config.pulumi.stackName ??= fullyQualifiedStackName(\n organizationName || workspaceName || projectName,\n `${\n workspaceName &&\n workspaceName !== organizationName &&\n workspaceName !== projectName\n ? `${workspaceName}-`\n : \"\"\n }${projectName}`,\n this.config.mode\n );\n },\n async deploy() {\n this.info(\n `Creating resources for Pulumi stack: ${this.config.pulumi.stackName}`\n );\n\n this.pulumi ??= await LocalWorkspace.createOrSelectStack({\n ...(this.config.pulumi as Parameters<\n typeof LocalWorkspace.createOrSelectStack\n >[0]),\n program: async () => {\n this.debug(\n \"Executing Pulumi program to define infrastructure resources.\"\n );\n\n await this.$$internal.callHook(\"deployPulumi\", {\n sequential: true\n });\n\n this.debug(\n \"Pulumi program execution completed. Resources have been defined.\"\n );\n }\n });\n await this.pulumi.workspace.installPlugin(\n \"terraform-provider\",\n \"v1.0.2\"\n );\n\n if (\n this.config.pulumi.settings &&\n Object.keys(this.config.pulumi.settings).length > 0\n ) {\n await this.pulumi.workspace.saveStackSettings(\n this.pulumi.name,\n this.config.pulumi.settings\n );\n }\n\n this.info(`Deploying Pulumi stack: ${this.config.pulumi.stackName}`);\n\n await this.pulumi.refresh({ onOutput: this.debug.bind(this) });\n\n if (this.config.pulumi.destroy) {\n await this.pulumi.destroy({\n onOutput: this.debug.bind(this)\n });\n }\n\n const result = await this.pulumi.up({\n onOutput: this.debug.bind(this)\n });\n\n this.info(\n `Successfully deployed ${this.pulumi.name} (v${\n result.summary.version\n }): ${result.summary.message}`\n );\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;AAqCA,MAAa,UAGX,UAA+B,EAAE,KACV;AACvB,QAAO,CACL;EACE,MAAM;EACN,MAAM,SAAS;AACb,UAAO,EACL,QAAQ,EACN,QAAQ,KAAK,SAAS;IACpB,aAAa,KAAK,OAAO;IACzB,UAAU,EAAE;IACb,CAAC,EACH,EACF;;EAEH,MAAM,iBAAiB;GACrB,MAAM,mBAAmB,UAAU,oBAAoB,KAAK,CAAC;GAC7D,MAAM,gBAAgB,UAAU,iBAAiB,KAAK,CAAC;GACvD,MAAM,cAAc,UAAU,KAAK,OAAO,KAAK;AAE/C,QAAK,OAAO,OAAO,cAAc,wBAC/B,oBAAoB,iBAAiB,aACrC,GACE,iBACA,kBAAkB,oBAClB,kBAAkB,cACd,GAAG,cAAc,KACjB,KACH,eACH,KAAK,OAAO,KACb;;EAEH,MAAM,SAAS;AACb,QAAK,KACH,wCAAwC,KAAK,OAAO,OAAO,YAC5D;AAED,QAAK,WAAW,MAAM,eAAe,oBAAoB;IACvD,GAAI,KAAK,OAAO;IAGhB,SAAS,YAAY;AACnB,UAAK,MACH,+DACD;AAED,WAAM,KAAK,WAAW,SAAS,gBAAgB,
|
|
1
|
+
{"version":3,"file":"plugin.mjs","names":[],"sources":["../src/plugin.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n fullyQualifiedStackName,\n LocalWorkspace\n} from \"@pulumi/pulumi/automation\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport { getOrganizationName, getWorkspaceName } from \"powerlines/plugin-utils\";\nimport { UNSAFE_PulumiPluginContext } from \"./types/_internal\";\nimport { PulumiPluginOptions } from \"./types/plugin\";\n\n/**\n * A package containing a Powerlines plugin to configure infrastructure and deploy a project using Pulumi IaC.\n *\n * @see https://www.pulumi.com\n *\n * @param options - The Pulumi plugin user configuration options.\n * @returns A Powerlines plugin to configure infrastructure and deploy a project using Pulumi.\n */\nexport const plugin = <\n TContext extends UNSAFE_PulumiPluginContext = UNSAFE_PulumiPluginContext\n>(\n options: PulumiPluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n {\n name: \"pulumi\",\n async config() {\n return {\n deploy: {\n pulumi: defu(options, {\n projectName: this.config.name,\n settings: {}\n })\n }\n };\n },\n async configResolved() {\n const organizationName = kebabCase(getOrganizationName(this));\n const workspaceName = kebabCase(getWorkspaceName(this));\n const projectName = kebabCase(this.config.name);\n\n this.config.pulumi.stackName ??= fullyQualifiedStackName(\n organizationName || workspaceName || projectName,\n `${\n workspaceName &&\n workspaceName !== organizationName &&\n workspaceName !== projectName\n ? `${workspaceName}-`\n : \"\"\n }${projectName}`,\n this.config.mode\n );\n },\n async deploy() {\n this.info(\n `Creating resources for Pulumi stack: ${this.config.pulumi.stackName}`\n );\n\n this.pulumi ??= await LocalWorkspace.createOrSelectStack({\n ...(this.config.pulumi as Parameters<\n typeof LocalWorkspace.createOrSelectStack\n >[0]),\n program: async () => {\n this.debug(\n \"Executing Pulumi program to define infrastructure resources.\"\n );\n\n await this.$$internal.callHook(\"deployPulumi\", {\n sequential: true,\n result: \"merge\"\n });\n\n this.debug(\n \"Pulumi program execution completed. Resources have been defined.\"\n );\n }\n });\n await this.pulumi.workspace.installPlugin(\n \"terraform-provider\",\n \"v1.0.2\"\n );\n\n if (\n this.config.pulumi.settings &&\n Object.keys(this.config.pulumi.settings).length > 0\n ) {\n await this.pulumi.workspace.saveStackSettings(\n this.pulumi.name,\n this.config.pulumi.settings\n );\n }\n\n this.info(`Deploying Pulumi stack: ${this.config.pulumi.stackName}`);\n\n await this.pulumi.refresh({ onOutput: this.debug.bind(this) });\n\n if (this.config.pulumi.destroy) {\n await this.pulumi.destroy({\n onOutput: this.debug.bind(this)\n });\n }\n\n const result = await this.pulumi.up({\n onOutput: this.debug.bind(this)\n });\n\n this.info(\n `Successfully deployed ${this.pulumi.name} (v${\n result.summary.version\n }): ${result.summary.message}`\n );\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;AAqCA,MAAa,UAGX,UAA+B,EAAE,KACV;AACvB,QAAO,CACL;EACE,MAAM;EACN,MAAM,SAAS;AACb,UAAO,EACL,QAAQ,EACN,QAAQ,KAAK,SAAS;IACpB,aAAa,KAAK,OAAO;IACzB,UAAU,EAAE;IACb,CAAC,EACH,EACF;;EAEH,MAAM,iBAAiB;GACrB,MAAM,mBAAmB,UAAU,oBAAoB,KAAK,CAAC;GAC7D,MAAM,gBAAgB,UAAU,iBAAiB,KAAK,CAAC;GACvD,MAAM,cAAc,UAAU,KAAK,OAAO,KAAK;AAE/C,QAAK,OAAO,OAAO,cAAc,wBAC/B,oBAAoB,iBAAiB,aACrC,GACE,iBACA,kBAAkB,oBAClB,kBAAkB,cACd,GAAG,cAAc,KACjB,KACH,eACH,KAAK,OAAO,KACb;;EAEH,MAAM,SAAS;AACb,QAAK,KACH,wCAAwC,KAAK,OAAO,OAAO,YAC5D;AAED,QAAK,WAAW,MAAM,eAAe,oBAAoB;IACvD,GAAI,KAAK,OAAO;IAGhB,SAAS,YAAY;AACnB,UAAK,MACH,+DACD;AAED,WAAM,KAAK,WAAW,SAAS,gBAAgB;MAC7C,YAAY;MACZ,QAAQ;MACT,CAAC;AAEF,UAAK,MACH,mEACD;;IAEJ,CAAC;AACF,SAAM,KAAK,OAAO,UAAU,cAC1B,sBACA,SACD;AAED,OACE,KAAK,OAAO,OAAO,YACnB,OAAO,KAAK,KAAK,OAAO,OAAO,SAAS,CAAC,SAAS,EAElD,OAAM,KAAK,OAAO,UAAU,kBAC1B,KAAK,OAAO,MACZ,KAAK,OAAO,OAAO,SACpB;AAGH,QAAK,KAAK,2BAA2B,KAAK,OAAO,OAAO,YAAY;AAEpE,SAAM,KAAK,OAAO,QAAQ,EAAE,UAAU,KAAK,MAAM,KAAK,KAAK,EAAE,CAAC;AAE9D,OAAI,KAAK,OAAO,OAAO,QACrB,OAAM,KAAK,OAAO,QAAQ,EACxB,UAAU,KAAK,MAAM,KAAK,KAAK,EAChC,CAAC;GAGJ,MAAM,SAAS,MAAM,KAAK,OAAO,GAAG,EAClC,UAAU,KAAK,MAAM,KAAK,KAAK,EAChC,CAAC;AAEF,QAAK,KACH,yBAAyB,KAAK,OAAO,KAAK,KACxC,OAAO,QAAQ,QAChB,KAAK,OAAO,QAAQ,UACtB;;EAEJ,CACF"}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig } from "./plugin.cjs";
|
|
2
|
-
|
|
2
|
+
import { DeployPulumiResult, PulumiOutputRecord, __ΩDeployPulumiResult, __ΩPulumiOutputRecord } from "./pulumi.cjs";
|
|
3
|
+
export { DeployPulumiResult, PulumiOutputRecord, PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩDeployPulumiResult, __ΩPulumiOutputRecord, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig } from "./plugin.mjs";
|
|
2
|
-
|
|
2
|
+
import { DeployPulumiResult, PulumiOutputRecord, __ΩDeployPulumiResult, __ΩPulumiOutputRecord } from "./pulumi.mjs";
|
|
3
|
+
export { DeployPulumiResult, PulumiOutputRecord, PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩDeployPulumiResult, __ΩPulumiOutputRecord, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig };
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Output } from "@pulumi/pulumi";
|
|
2
|
+
|
|
3
|
+
//#region src/types/pulumi.d.ts
|
|
4
|
+
interface PulumiOutputRecord<T = any> {
|
|
5
|
+
[key: string]: Output<T> | PulumiOutputRecord<T> | PulumiOutputRecord<T>[];
|
|
6
|
+
}
|
|
7
|
+
type DeployPulumiResult = PulumiOutputRecord | undefined | null | void;
|
|
8
|
+
declare type __ΩPulumiOutputRecord = any[];
|
|
9
|
+
declare type __ΩDeployPulumiResult = any[];
|
|
10
|
+
//#endregion
|
|
11
|
+
export { DeployPulumiResult, PulumiOutputRecord, __ΩDeployPulumiResult, __ΩPulumiOutputRecord };
|
|
12
|
+
//# sourceMappingURL=pulumi.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pulumi.d.cts","names":[],"sources":["../../src/types/pulumi.ts"],"sourcesContent":[],"mappings":";;;UAoBiB;iBACA,OAAO,KAAK,mBAAmB,KAAK,mBAAmB;AADxE;AACwB,KAGZ,kBAAA,GAAqB,kBAHT,GAAA,SAAA,GAAA,IAAA,GAAA,IAAA;AAAP,qCAAA,GAAA,EAAA;AAA+B,qCAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Output } from "@pulumi/pulumi";
|
|
2
|
+
|
|
3
|
+
//#region src/types/pulumi.d.ts
|
|
4
|
+
interface PulumiOutputRecord<T = any> {
|
|
5
|
+
[key: string]: Output<T> | PulumiOutputRecord<T> | PulumiOutputRecord<T>[];
|
|
6
|
+
}
|
|
7
|
+
type DeployPulumiResult = PulumiOutputRecord | undefined | null | void;
|
|
8
|
+
declare type __ΩPulumiOutputRecord = any[];
|
|
9
|
+
declare type __ΩDeployPulumiResult = any[];
|
|
10
|
+
//#endregion
|
|
11
|
+
export { DeployPulumiResult, PulumiOutputRecord, __ΩDeployPulumiResult, __ΩPulumiOutputRecord };
|
|
12
|
+
//# sourceMappingURL=pulumi.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pulumi.d.mts","names":[],"sources":["../../src/types/pulumi.ts"],"sourcesContent":[],"mappings":";;;UAoBiB;iBACA,OAAO,KAAK,mBAAmB,KAAK,mBAAmB;AADxE;AACwB,KAGZ,kBAAA,GAAqB,kBAHT,GAAA,SAAA,GAAA,IAAA,GAAA,IAAA;AAAP,qCAAA,GAAA,EAAA;AAA+B,qCAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-pulumi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to transform source code to be platform agnostic using pulumi.",
|
|
6
6
|
"repository": {
|
|
@@ -97,6 +97,20 @@
|
|
|
97
97
|
"types": "./dist/types/plugin.d.mts",
|
|
98
98
|
"default": "./dist/types/plugin.mjs"
|
|
99
99
|
}
|
|
100
|
+
},
|
|
101
|
+
"./types/pulumi": {
|
|
102
|
+
"require": {
|
|
103
|
+
"types": "./dist/types/pulumi.d.cts",
|
|
104
|
+
"default": "./dist/types/pulumi.cjs"
|
|
105
|
+
},
|
|
106
|
+
"import": {
|
|
107
|
+
"types": "./dist/types/pulumi.d.mts",
|
|
108
|
+
"default": "./dist/types/pulumi.mjs"
|
|
109
|
+
},
|
|
110
|
+
"default": {
|
|
111
|
+
"types": "./dist/types/pulumi.d.mts",
|
|
112
|
+
"default": "./dist/types/pulumi.mjs"
|
|
113
|
+
}
|
|
100
114
|
}
|
|
101
115
|
},
|
|
102
116
|
"typings": "dist/index.d.mts",
|
|
@@ -111,14 +125,14 @@
|
|
|
111
125
|
"@stryke/type-checks": "^0.5.34",
|
|
112
126
|
"@stryke/types": "^0.10.48",
|
|
113
127
|
"defu": "^6.1.4",
|
|
114
|
-
"powerlines": "^0.40.
|
|
128
|
+
"powerlines": "^0.40.7",
|
|
115
129
|
"typescript": "^5.9.3"
|
|
116
130
|
},
|
|
117
131
|
"devDependencies": {
|
|
118
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
132
|
+
"@powerlines/plugin-plugin": "^0.12.271",
|
|
119
133
|
"@types/node": "^25.3.5"
|
|
120
134
|
},
|
|
121
135
|
"publishConfig": { "access": "public" },
|
|
122
136
|
"types": "./dist/index.d.cts",
|
|
123
|
-
"gitHead": "
|
|
137
|
+
"gitHead": "943a105cc17b0a264efa829df02fc89898746492"
|
|
124
138
|
}
|