@powerlines/plugin-pulumi 0.5.19 → 0.5.20
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 +26 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +26 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/plugin.d.cts +18 -0
- package/dist/plugin.d.cts.map +1 -0
- package/dist/plugin.d.mts +18 -0
- package/dist/plugin.d.mts.map +1 -0
- package/dist/plugin.mjs +2 -1
- package/dist/plugin.mjs.map +1 -0
- package/dist/types/_internal.d.cts +9 -0
- package/dist/types/_internal.d.cts.map +1 -0
- package/dist/types/_internal.d.mts +9 -0
- package/dist/types/_internal.d.mts.map +1 -0
- package/dist/types/index.d.cts +3 -0
- package/dist/types/index.d.mts +3 -0
- package/dist/types/plugin.d.cts +36 -0
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +36 -0
- package/dist/types/plugin.d.mts.map +1 -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/package.json +4 -4
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig } from "./types/plugin.cjs";
|
|
2
|
+
import { DeployPulumiResult, PulumiOutputRecord, __ΩDeployPulumiResult, __ΩPulumiOutputRecord } from "./types/pulumi.cjs";
|
|
3
|
+
import "./types/index.cjs";
|
|
4
|
+
import { plugin } from "./plugin.cjs";
|
|
5
|
+
import { MaybePromise } from "@stryke/types";
|
|
6
|
+
import { PluginContext } from "powerlines";
|
|
7
|
+
|
|
8
|
+
//#region src/index.d.ts
|
|
9
|
+
declare module "powerlines" {
|
|
10
|
+
interface Config {
|
|
11
|
+
pulumi?: PulumiPluginOptions;
|
|
12
|
+
}
|
|
13
|
+
interface Hooks<TContext extends PluginContext> {
|
|
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>;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { DeployPulumiResult, PulumiOutputRecord, PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩDeployPulumiResult, __ΩPulumiOutputRecord, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig, plugin };
|
|
26
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig } from "./types/plugin.mjs";
|
|
2
|
+
import { DeployPulumiResult, PulumiOutputRecord, __ΩDeployPulumiResult, __ΩPulumiOutputRecord } from "./types/pulumi.mjs";
|
|
3
|
+
import "./types/index.mjs";
|
|
4
|
+
import { plugin } from "./plugin.mjs";
|
|
5
|
+
import { MaybePromise } from "@stryke/types";
|
|
6
|
+
import { PluginContext } from "powerlines";
|
|
7
|
+
|
|
8
|
+
//#region src/index.d.ts
|
|
9
|
+
declare module "powerlines" {
|
|
10
|
+
interface Config {
|
|
11
|
+
pulumi?: PulumiPluginOptions;
|
|
12
|
+
}
|
|
13
|
+
interface Hooks<TContext extends PluginContext> {
|
|
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>;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { DeployPulumiResult, PulumiOutputRecord, PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩDeployPulumiResult, __ΩPulumiOutputRecord, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig, plugin };
|
|
26
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PulumiPluginOptions } from "./types/plugin.cjs";
|
|
2
|
+
import { UNSAFE_PulumiPluginContext } from "./types/_internal.cjs";
|
|
3
|
+
import { Plugin } from "powerlines";
|
|
4
|
+
|
|
5
|
+
//#region src/plugin.d.ts
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A package containing a Powerlines plugin to configure infrastructure and deploy a project using Pulumi IaC.
|
|
9
|
+
*
|
|
10
|
+
* @see https://www.pulumi.com
|
|
11
|
+
*
|
|
12
|
+
* @param options - The Pulumi plugin user configuration options.
|
|
13
|
+
* @returns A Powerlines plugin to configure infrastructure and deploy a project using Pulumi.
|
|
14
|
+
*/
|
|
15
|
+
declare const plugin: <TContext extends UNSAFE_PulumiPluginContext = UNSAFE_PulumiPluginContext>(options?: PulumiPluginOptions) => Plugin<TContext>[];
|
|
16
|
+
//#endregion
|
|
17
|
+
export { plugin };
|
|
18
|
+
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../src/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAqCA;;;;;;AAIS,cAJI,MAIJ,EAAA,CAAA,iBAHU,0BAGV,GAHuC,0BAGvC,CAAA,CAAA,OAAA,CAAA,EADE,mBACF,EAAA,GAAN,MAAM,CAAC,QAAD,CAAA,EAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PulumiPluginOptions } from "./types/plugin.mjs";
|
|
2
|
+
import { UNSAFE_PulumiPluginContext } from "./types/_internal.mjs";
|
|
3
|
+
import { Plugin } from "powerlines";
|
|
4
|
+
|
|
5
|
+
//#region src/plugin.d.ts
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A package containing a Powerlines plugin to configure infrastructure and deploy a project using Pulumi IaC.
|
|
9
|
+
*
|
|
10
|
+
* @see https://www.pulumi.com
|
|
11
|
+
*
|
|
12
|
+
* @param options - The Pulumi plugin user configuration options.
|
|
13
|
+
* @returns A Powerlines plugin to configure infrastructure and deploy a project using Pulumi.
|
|
14
|
+
*/
|
|
15
|
+
declare const plugin: <TContext extends UNSAFE_PulumiPluginContext = UNSAFE_PulumiPluginContext>(options?: PulumiPluginOptions) => Plugin<TContext>[];
|
|
16
|
+
//#endregion
|
|
17
|
+
export { plugin };
|
|
18
|
+
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../src/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAqCA;;;;;;AAIS,cAJI,MAIJ,EAAA,CAAA,iBAHU,0BAGV,GAHuC,0BAGvC,CAAA,CAAA,OAAA,CAAA,EADE,mBACF,EAAA,GAAN,MAAM,CAAC,QAAD,CAAA,EAAA"}
|
package/dist/plugin.mjs
CHANGED
|
@@ -0,0 +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 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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PulumiPluginContext, PulumiPluginResolvedConfig } from "./plugin.cjs";
|
|
2
|
+
import { UNSAFE_PluginContext } from "@powerlines/core/types/_internal";
|
|
3
|
+
|
|
4
|
+
//#region src/types/_internal.d.ts
|
|
5
|
+
type UNSAFE_PulumiPluginContext<TResolvedConfig extends PulumiPluginResolvedConfig = PulumiPluginResolvedConfig> = PulumiPluginContext<TResolvedConfig> & UNSAFE_PluginContext<TResolvedConfig>;
|
|
6
|
+
declare type __ΩUNSAFE_PulumiPluginContext = any[];
|
|
7
|
+
//#endregion
|
|
8
|
+
export { UNSAFE_PulumiPluginContext, __ΩUNSAFE_PulumiPluginContext };
|
|
9
|
+
//# sourceMappingURL=_internal.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_internal.d.cts","names":[],"sources":["../../src/types/_internal.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,mDACc,6BACtB,8BACA,oBAAoB,mBACtB,qBAAqB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PulumiPluginContext, PulumiPluginResolvedConfig } from "./plugin.mjs";
|
|
2
|
+
import { UNSAFE_PluginContext } from "@powerlines/core/types/_internal";
|
|
3
|
+
|
|
4
|
+
//#region src/types/_internal.d.ts
|
|
5
|
+
type UNSAFE_PulumiPluginContext<TResolvedConfig extends PulumiPluginResolvedConfig = PulumiPluginResolvedConfig> = PulumiPluginContext<TResolvedConfig> & UNSAFE_PluginContext<TResolvedConfig>;
|
|
6
|
+
declare type __ΩUNSAFE_PulumiPluginContext = any[];
|
|
7
|
+
//#endregion
|
|
8
|
+
export { UNSAFE_PulumiPluginContext, __ΩUNSAFE_PulumiPluginContext };
|
|
9
|
+
//# sourceMappingURL=_internal.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_internal.d.mts","names":[],"sources":["../../src/types/_internal.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,mDACc,6BACtB,8BACA,oBAAoB,mBACtB,qBAAqB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig } from "./plugin.cjs";
|
|
2
|
+
import { DeployPulumiResult, PulumiOutputRecord, __ΩDeployPulumiResult, __ΩPulumiOutputRecord } from "./pulumi.cjs";
|
|
3
|
+
export { DeployPulumiResult, PulumiOutputRecord, PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩDeployPulumiResult, __ΩPulumiOutputRecord, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig } from "./plugin.mjs";
|
|
2
|
+
import { DeployPulumiResult, PulumiOutputRecord, __ΩDeployPulumiResult, __ΩPulumiOutputRecord } from "./pulumi.mjs";
|
|
3
|
+
export { DeployPulumiResult, PulumiOutputRecord, PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩDeployPulumiResult, __ΩPulumiOutputRecord, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
2
|
+
import { InlineProgramArgs, LocalWorkspaceOptions, Stack, StackSettings } from "@pulumi/pulumi/automation";
|
|
3
|
+
|
|
4
|
+
//#region src/types/plugin.d.ts
|
|
5
|
+
interface PulumiPluginOptions extends Partial<InlineProgramArgs> {
|
|
6
|
+
/**
|
|
7
|
+
* Additional options for the Pulumi Workspace.
|
|
8
|
+
*/
|
|
9
|
+
options?: LocalWorkspaceOptions;
|
|
10
|
+
/**
|
|
11
|
+
* Whether to destroy the stack during the `destroy` lifecycle phase.
|
|
12
|
+
*
|
|
13
|
+
* @defaultValue false
|
|
14
|
+
*/
|
|
15
|
+
destroy?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Additional stack settings.
|
|
18
|
+
*/
|
|
19
|
+
settings?: StackSettings;
|
|
20
|
+
}
|
|
21
|
+
interface PulumiPluginUserConfig extends UserConfig {
|
|
22
|
+
pulumi?: PulumiPluginOptions;
|
|
23
|
+
}
|
|
24
|
+
interface PulumiPluginResolvedConfig extends ResolvedConfig {
|
|
25
|
+
pulumi: PulumiPluginOptions;
|
|
26
|
+
}
|
|
27
|
+
type PulumiPluginContext<TResolvedConfig extends PulumiPluginResolvedConfig = PulumiPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
28
|
+
pulumi: Stack;
|
|
29
|
+
};
|
|
30
|
+
declare type __ΩPulumiPluginOptions = any[];
|
|
31
|
+
declare type __ΩPulumiPluginUserConfig = any[];
|
|
32
|
+
declare type __ΩPulumiPluginResolvedConfig = any[];
|
|
33
|
+
declare type __ΩPulumiPluginContext = any[];
|
|
34
|
+
//#endregion
|
|
35
|
+
export { PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig };
|
|
36
|
+
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;UA0BiB,mBAAA,SAA4B,QAAQ;;AAArD;;EAIY,OAAA,CAAA,EAAA,qBAAA;EAYC;;;AAGb;AAIA;EAIY,OAAA,CAAA,EAAA,OAAA;EACc;;;EAEtB,QAAA,CAAA,EAdS,aAcT;;AACW,UAZE,sBAAA,SAA+B,UAYjC,CAAA;WAXJ;;UAGM,0BAAA,SAAmC;UAC1C;;KAGE,4CACc,6BACtB,8BACA,cAAc;UACR"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { InlineProgramArgs, LocalWorkspaceOptions, Stack, StackSettings } from "@pulumi/pulumi/automation";
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
3
|
+
|
|
4
|
+
//#region src/types/plugin.d.ts
|
|
5
|
+
interface PulumiPluginOptions extends Partial<InlineProgramArgs> {
|
|
6
|
+
/**
|
|
7
|
+
* Additional options for the Pulumi Workspace.
|
|
8
|
+
*/
|
|
9
|
+
options?: LocalWorkspaceOptions;
|
|
10
|
+
/**
|
|
11
|
+
* Whether to destroy the stack during the `destroy` lifecycle phase.
|
|
12
|
+
*
|
|
13
|
+
* @defaultValue false
|
|
14
|
+
*/
|
|
15
|
+
destroy?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Additional stack settings.
|
|
18
|
+
*/
|
|
19
|
+
settings?: StackSettings;
|
|
20
|
+
}
|
|
21
|
+
interface PulumiPluginUserConfig extends UserConfig {
|
|
22
|
+
pulumi?: PulumiPluginOptions;
|
|
23
|
+
}
|
|
24
|
+
interface PulumiPluginResolvedConfig extends ResolvedConfig {
|
|
25
|
+
pulumi: PulumiPluginOptions;
|
|
26
|
+
}
|
|
27
|
+
type PulumiPluginContext<TResolvedConfig extends PulumiPluginResolvedConfig = PulumiPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
28
|
+
pulumi: Stack;
|
|
29
|
+
};
|
|
30
|
+
declare type __ΩPulumiPluginOptions = any[];
|
|
31
|
+
declare type __ΩPulumiPluginUserConfig = any[];
|
|
32
|
+
declare type __ΩPulumiPluginResolvedConfig = any[];
|
|
33
|
+
declare type __ΩPulumiPluginContext = any[];
|
|
34
|
+
//#endregion
|
|
35
|
+
export { PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig };
|
|
36
|
+
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;UA0BiB,mBAAA,SAA4B,QAAQ;;AAArD;;EAIY,OAAA,CAAA,EAAA,qBAAA;EAYC;;;AAGb;AAIA;EAIY,OAAA,CAAA,EAAA,OAAA;EACc;;;EAEtB,QAAA,CAAA,EAdS,aAcT;;AACW,UAZE,sBAAA,SAA+B,UAYjC,CAAA;WAXJ;;UAGM,0BAAA,SAAmC;UAC1C;;KAGE,4CACc,6BACtB,8BACA,cAAc;UACR"}
|
|
@@ -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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-pulumi",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to transform source code to be platform agnostic using pulumi.",
|
|
6
6
|
"repository": {
|
|
@@ -125,14 +125,14 @@
|
|
|
125
125
|
"@stryke/type-checks": "^0.5.38",
|
|
126
126
|
"@stryke/types": "^0.10.52",
|
|
127
127
|
"defu": "^6.1.4",
|
|
128
|
-
"powerlines": "^0.41.
|
|
128
|
+
"powerlines": "^0.41.4",
|
|
129
129
|
"typescript": "^5.9.3"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
132
|
+
"@powerlines/plugin-plugin": "^0.12.290",
|
|
133
133
|
"@types/node": "^25.4.0"
|
|
134
134
|
},
|
|
135
135
|
"publishConfig": { "access": "public" },
|
|
136
136
|
"types": "./dist/index.d.cts",
|
|
137
|
-
"gitHead": "
|
|
137
|
+
"gitHead": "387dd4f3e14b4e5a2580ffcf2951d7727aae15a3"
|
|
138
138
|
}
|