@powerlines/plugin-pulumi 0.2.270 → 0.2.271
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.cjs +7 -7
- package/dist/index.d.cts +8 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +8 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/plugin.d.cts +4 -10
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +4 -10
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
3
|
let __pulumi_pulumi_automation = require("@pulumi/pulumi/automation");
|
|
4
|
-
let
|
|
4
|
+
let __stryke_helpers = require("@stryke/helpers");
|
|
5
5
|
let __stryke_path_join = require("@stryke/path/join");
|
|
6
6
|
let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
|
|
7
7
|
let defu = require("defu");
|
|
8
8
|
defu = require_rolldown_runtime.__toESM(defu);
|
|
9
|
-
let
|
|
9
|
+
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
|
10
10
|
|
|
11
11
|
//#region src/index.ts
|
|
12
12
|
/**
|
|
@@ -28,18 +28,18 @@ const plugin = (options = {}) => {
|
|
|
28
28
|
}) } };
|
|
29
29
|
},
|
|
30
30
|
async configResolved() {
|
|
31
|
-
if (!options.stack) this.config.
|
|
31
|
+
if (!options.stack) this.config.pulumi.stackName ??= (0, __pulumi_pulumi_automation.fullyQualifiedStackName)((0, __stryke_string_format_kebab_case.kebabCase)((0, powerlines_plugin_utils.getOrganizationName)(this) || "default"), `${(0, powerlines_plugin_utils.getWorkspaceName)(this) ? `${(0, __stryke_string_format_kebab_case.kebabCase)((0, powerlines_plugin_utils.getWorkspaceName)(this))}-` : ""}${(0, __stryke_string_format_kebab_case.kebabCase)(this.config.name)}`, this.config.mode);
|
|
32
32
|
},
|
|
33
33
|
deploy: {
|
|
34
34
|
order: "post",
|
|
35
35
|
async handler() {
|
|
36
|
-
this.info(`Deploying Pulumi stack: ${this.config.
|
|
36
|
+
this.info(`Deploying Pulumi stack: ${this.config.pulumi.stack?.name || this.config.pulumi.stackName}`);
|
|
37
37
|
if (!options.stack && !options.program && !options.projectName || !options.workDir) throw new Error(`Pulumi plugin requires either an inline program or a working directory to be specified.`);
|
|
38
38
|
let stack = options.stack;
|
|
39
|
-
stack ??= await __pulumi_pulumi_automation.LocalWorkspace.createOrSelectStack((0,
|
|
40
|
-
if (this.config.
|
|
39
|
+
stack ??= await __pulumi_pulumi_automation.LocalWorkspace.createOrSelectStack((0, __stryke_helpers.omit)(this.config.pulumi, ["options", "settings"]));
|
|
40
|
+
if (this.config.pulumi.settings && Object.keys(this.config.pulumi.settings).length > 0) await stack.workspace.saveStackSettings(stack.name, this.config.pulumi.settings);
|
|
41
41
|
await stack.refresh({ onOutput: this.debug.bind(this) });
|
|
42
|
-
if (this.config.
|
|
42
|
+
if (this.config.pulumi.destroy) await stack.destroy({ onOutput: this.debug.bind(this) });
|
|
43
43
|
const result = await stack.up({ onOutput: this.debug.bind(this) });
|
|
44
44
|
this.info(`Successfully deployed ${stack.name} (v${result.summary.version}): ${result.summary.message}`);
|
|
45
45
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions,
|
|
1
|
+
import { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions, PulumiPluginExistingStackOptions, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginResolvedOptions, PulumiPluginUserConfig, __ΩPulumiPluginBaseOptions, __ΩPulumiPluginContext, __ΩPulumiPluginCreateStackInlineOptions, __ΩPulumiPluginCreateStackLocalOptions, __ΩPulumiPluginCreateStackOptions, __ΩPulumiPluginExistingStackOptions, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginResolvedOptions, __ΩPulumiPluginUserConfig } from "./types/plugin.cjs";
|
|
2
2
|
import "./types/index.cjs";
|
|
3
|
-
import { Plugin } from "powerlines
|
|
3
|
+
import { Plugin } from "powerlines";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
|
-
|
|
6
|
+
declare module "powerlines" {
|
|
7
|
+
interface UserConfig {
|
|
8
|
+
pulumi?: PulumiPluginOptions;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
7
11
|
/**
|
|
8
12
|
* A package containing a Powerlines plugin to configure infrastructure and deploy a project using Pulumi IaC.
|
|
9
13
|
*
|
|
@@ -14,5 +18,5 @@ import { Plugin } from "powerlines/types/plugin";
|
|
|
14
18
|
*/
|
|
15
19
|
declare const plugin: <TContext extends PulumiPluginContext = PulumiPluginContext>(options?: PulumiPluginOptions) => Plugin<TContext>;
|
|
16
20
|
//#endregion
|
|
17
|
-
export { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions,
|
|
21
|
+
export { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions, PulumiPluginExistingStackOptions, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginResolvedOptions, PulumiPluginUserConfig, __ΩPulumiPluginBaseOptions, __ΩPulumiPluginContext, __ΩPulumiPluginCreateStackInlineOptions, __ΩPulumiPluginCreateStackLocalOptions, __ΩPulumiPluginCreateStackOptions, __ΩPulumiPluginExistingStackOptions, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginResolvedOptions, __ΩPulumiPluginUserConfig, plugin as default, plugin };
|
|
18
22
|
//# 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":";;;;;;;IAqCwB,MAAA,CAAA,EAIX,mBAJW;EAAA;;;;AAgBxB;;;;;;AAIS,cAJI,MAIJ,EAAA,CAAA,iBAHU,mBAGV,GAHgC,mBAGhC,CAAA,CAAA,OAAA,CAAA,EADE,mBACF,EAAA,GAAN,MAAM,CAAC,QAAD,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions,
|
|
1
|
+
import { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions, PulumiPluginExistingStackOptions, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginResolvedOptions, PulumiPluginUserConfig, __ΩPulumiPluginBaseOptions, __ΩPulumiPluginContext, __ΩPulumiPluginCreateStackInlineOptions, __ΩPulumiPluginCreateStackLocalOptions, __ΩPulumiPluginCreateStackOptions, __ΩPulumiPluginExistingStackOptions, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginResolvedOptions, __ΩPulumiPluginUserConfig } from "./types/plugin.mjs";
|
|
2
2
|
import "./types/index.mjs";
|
|
3
|
-
import { Plugin } from "powerlines
|
|
3
|
+
import { Plugin } from "powerlines";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
|
-
|
|
6
|
+
declare module "powerlines" {
|
|
7
|
+
interface UserConfig {
|
|
8
|
+
pulumi?: PulumiPluginOptions;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
7
11
|
/**
|
|
8
12
|
* A package containing a Powerlines plugin to configure infrastructure and deploy a project using Pulumi IaC.
|
|
9
13
|
*
|
|
@@ -14,5 +18,5 @@ import { Plugin } from "powerlines/types/plugin";
|
|
|
14
18
|
*/
|
|
15
19
|
declare const plugin: <TContext extends PulumiPluginContext = PulumiPluginContext>(options?: PulumiPluginOptions) => Plugin<TContext>;
|
|
16
20
|
//#endregion
|
|
17
|
-
export { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions,
|
|
21
|
+
export { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions, PulumiPluginExistingStackOptions, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginResolvedOptions, PulumiPluginUserConfig, __ΩPulumiPluginBaseOptions, __ΩPulumiPluginContext, __ΩPulumiPluginCreateStackInlineOptions, __ΩPulumiPluginCreateStackLocalOptions, __ΩPulumiPluginCreateStackOptions, __ΩPulumiPluginExistingStackOptions, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginResolvedOptions, __ΩPulumiPluginUserConfig, plugin as default, plugin };
|
|
18
22
|
//# 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":";;;;;;;IAqCwB,MAAA,CAAA,EAIX,mBAJW;EAAA;;;;AAgBxB;;;;;;AAIS,cAJI,MAIJ,EAAA,CAAA,iBAHU,mBAGV,GAHgC,mBAGhC,CAAA,CAAA,OAAA,CAAA,EADE,mBACF,EAAA,GAAN,MAAM,CAAC,QAAD,CAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LocalWorkspace, fullyQualifiedStackName } from "@pulumi/pulumi/automation";
|
|
2
|
-
import { omit } from "@stryke/helpers
|
|
2
|
+
import { omit } from "@stryke/helpers";
|
|
3
3
|
import { joinPaths } from "@stryke/path/join";
|
|
4
4
|
import { kebabCase } from "@stryke/string-format/kebab-case";
|
|
5
5
|
import defu from "defu";
|
|
6
|
-
import { getOrganizationName, getWorkspaceName } from "powerlines/plugin-utils
|
|
6
|
+
import { getOrganizationName, getWorkspaceName } from "powerlines/plugin-utils";
|
|
7
7
|
|
|
8
8
|
//#region src/index.ts
|
|
9
9
|
/**
|
|
@@ -25,18 +25,18 @@ const plugin = (options = {}) => {
|
|
|
25
25
|
}) } };
|
|
26
26
|
},
|
|
27
27
|
async configResolved() {
|
|
28
|
-
if (!options.stack) this.config.
|
|
28
|
+
if (!options.stack) this.config.pulumi.stackName ??= fullyQualifiedStackName(kebabCase(getOrganizationName(this) || "default"), `${getWorkspaceName(this) ? `${kebabCase(getWorkspaceName(this))}-` : ""}${kebabCase(this.config.name)}`, this.config.mode);
|
|
29
29
|
},
|
|
30
30
|
deploy: {
|
|
31
31
|
order: "post",
|
|
32
32
|
async handler() {
|
|
33
|
-
this.info(`Deploying Pulumi stack: ${this.config.
|
|
33
|
+
this.info(`Deploying Pulumi stack: ${this.config.pulumi.stack?.name || this.config.pulumi.stackName}`);
|
|
34
34
|
if (!options.stack && !options.program && !options.projectName || !options.workDir) throw new Error(`Pulumi plugin requires either an inline program or a working directory to be specified.`);
|
|
35
35
|
let stack = options.stack;
|
|
36
|
-
stack ??= await LocalWorkspace.createOrSelectStack(omit(this.config.
|
|
37
|
-
if (this.config.
|
|
36
|
+
stack ??= await LocalWorkspace.createOrSelectStack(omit(this.config.pulumi, ["options", "settings"]));
|
|
37
|
+
if (this.config.pulumi.settings && Object.keys(this.config.pulumi.settings).length > 0) await stack.workspace.saveStackSettings(stack.name, this.config.pulumi.settings);
|
|
38
38
|
await stack.refresh({ onOutput: this.debug.bind(this) });
|
|
39
|
-
if (this.config.
|
|
39
|
+
if (this.config.pulumi.destroy) await stack.destroy({ onOutput: this.debug.bind(this) });
|
|
40
40
|
const result = await stack.up({ onOutput: this.debug.bind(this) });
|
|
41
41
|
this.info(`Successfully deployed ${stack.name} (v${result.summary.version}): ${result.summary.message}`);
|
|
42
42
|
}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.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 { omit } from \"@stryke/helpers
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.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 { omit } from \"@stryke/helpers\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport { getOrganizationName, getWorkspaceName } from \"powerlines/plugin-utils\";\nimport {\n PulumiPluginContext,\n PulumiPluginCreateStackInlineOptions,\n PulumiPluginCreateStackLocalOptions,\n PulumiPluginCreateStackOptions,\n PulumiPluginExistingStackOptions,\n PulumiPluginOptions\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n export interface UserConfig {\n pulumi?: PulumiPluginOptions;\n }\n}\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 PulumiPluginContext = PulumiPluginContext\n>(\n options: PulumiPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"pulumi\",\n async config() {\n return {\n deploy: {\n pulumi: defu(options, {\n projectName: this.config.name,\n workDir: joinPaths(this.artifactsPath, \"infrastructure\"),\n settings: {}\n })\n }\n };\n },\n async configResolved() {\n if (!(options as PulumiPluginExistingStackOptions).stack) {\n (this.config.pulumi as PulumiPluginCreateStackOptions).stackName ??=\n fullyQualifiedStackName(\n kebabCase(getOrganizationName(this) || \"default\"),\n `${\n getWorkspaceName(this)\n ? `${kebabCase(getWorkspaceName(this))}-`\n : \"\"\n }${kebabCase(this.config.name)}`,\n this.config.mode\n );\n }\n },\n deploy: {\n order: \"post\",\n async handler() {\n this.info(\n `Deploying Pulumi stack: ${\n (this.config.pulumi as PulumiPluginExistingStackOptions).stack\n ?.name ||\n (this.config.pulumi as PulumiPluginCreateStackOptions).stackName\n }`\n );\n\n if (\n (!(options as PulumiPluginExistingStackOptions).stack &&\n !(options as PulumiPluginCreateStackInlineOptions).program &&\n !(options as PulumiPluginCreateStackInlineOptions).projectName) ||\n !(options as PulumiPluginCreateStackLocalOptions).workDir\n ) {\n throw new Error(\n `Pulumi plugin requires either an inline program or a working directory to be specified.`\n );\n }\n\n let stack = (options as PulumiPluginExistingStackOptions).stack;\n stack ??= await LocalWorkspace.createOrSelectStack(\n omit(this.config.pulumi as PulumiPluginCreateStackOptions, [\n \"options\",\n \"settings\"\n ]) as Parameters<typeof LocalWorkspace.createOrSelectStack>[0]\n );\n\n if (\n this.config.pulumi.settings &&\n Object.keys(this.config.pulumi.settings).length > 0\n ) {\n await stack.workspace.saveStackSettings(\n stack.name,\n this.config.pulumi.settings\n );\n }\n\n await stack.refresh({ onOutput: this.debug.bind(this) });\n\n if (this.config.pulumi.destroy) {\n await stack.destroy({ onOutput: this.debug.bind(this) });\n }\n\n const result = await stack.up({\n onOutput: this.debug.bind(this)\n });\n\n this.info(\n `Successfully deployed ${stack.name} (v${result.summary.version}): ${result.summary.message}`\n );\n }\n }\n } as Plugin<TContext>;\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;AAqDA,MAAa,UAGX,UAA+B,EAAE,KACZ;AACrB,QAAO;EACL,MAAM;EACN,MAAM,SAAS;AACb,UAAO,EACL,QAAQ,EACN,QAAQ,KAAK,SAAS;IACpB,aAAa,KAAK,OAAO;IACzB,SAAS,UAAU,KAAK,eAAe,iBAAiB;IACxD,UAAU,EAAE;IACb,CAAC,EACH,EACF;;EAEH,MAAM,iBAAiB;AACrB,OAAI,CAAE,QAA6C,MACjD,CAAC,KAAK,OAAO,OAA0C,cACrD,wBACE,UAAU,oBAAoB,KAAK,IAAI,UAAU,EACjD,GACE,iBAAiB,KAAK,GAClB,GAAG,UAAU,iBAAiB,KAAK,CAAC,CAAC,KACrC,KACH,UAAU,KAAK,OAAO,KAAK,IAC9B,KAAK,OAAO,KACb;;EAGP,QAAQ;GACN,OAAO;GACP,MAAM,UAAU;AACd,SAAK,KACH,2BACG,KAAK,OAAO,OAA4C,OACrD,QACH,KAAK,OAAO,OAA0C,YAE1D;AAED,QACG,CAAE,QAA6C,SAC9C,CAAE,QAAiD,WACnD,CAAE,QAAiD,eACrD,CAAE,QAAgD,QAElD,OAAM,IAAI,MACR,0FACD;IAGH,IAAI,QAAS,QAA6C;AAC1D,cAAU,MAAM,eAAe,oBAC7B,KAAK,KAAK,OAAO,QAA0C,CACzD,WACA,WACD,CAAC,CACH;AAED,QACE,KAAK,OAAO,OAAO,YACnB,OAAO,KAAK,KAAK,OAAO,OAAO,SAAS,CAAC,SAAS,EAElD,OAAM,MAAM,UAAU,kBACpB,MAAM,MACN,KAAK,OAAO,OAAO,SACpB;AAGH,UAAM,MAAM,QAAQ,EAAE,UAAU,KAAK,MAAM,KAAK,KAAK,EAAE,CAAC;AAExD,QAAI,KAAK,OAAO,OAAO,QACrB,OAAM,MAAM,QAAQ,EAAE,UAAU,KAAK,MAAM,KAAK,KAAK,EAAE,CAAC;IAG1D,MAAM,SAAS,MAAM,MAAM,GAAG,EAC5B,UAAU,KAAK,MAAM,KAAK,KAAK,EAChC,CAAC;AAEF,SAAK,KACH,yBAAyB,MAAM,KAAK,KAAK,OAAO,QAAQ,QAAQ,KAAK,OAAO,QAAQ,UACrF;;GAEJ;EACF;;AAGH,kBAAe"}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions,
|
|
2
|
-
export { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions,
|
|
1
|
+
import { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions, PulumiPluginExistingStackOptions, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginResolvedOptions, PulumiPluginUserConfig, __ΩPulumiPluginBaseOptions, __ΩPulumiPluginContext, __ΩPulumiPluginCreateStackInlineOptions, __ΩPulumiPluginCreateStackLocalOptions, __ΩPulumiPluginCreateStackOptions, __ΩPulumiPluginExistingStackOptions, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginResolvedOptions, __ΩPulumiPluginUserConfig } from "./plugin.cjs";
|
|
2
|
+
export { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions, PulumiPluginExistingStackOptions, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginResolvedOptions, PulumiPluginUserConfig, __ΩPulumiPluginBaseOptions, __ΩPulumiPluginContext, __ΩPulumiPluginCreateStackInlineOptions, __ΩPulumiPluginCreateStackLocalOptions, __ΩPulumiPluginCreateStackOptions, __ΩPulumiPluginExistingStackOptions, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginResolvedOptions, __ΩPulumiPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions,
|
|
2
|
-
export { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions,
|
|
1
|
+
import { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions, PulumiPluginExistingStackOptions, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginResolvedOptions, PulumiPluginUserConfig, __ΩPulumiPluginBaseOptions, __ΩPulumiPluginContext, __ΩPulumiPluginCreateStackInlineOptions, __ΩPulumiPluginCreateStackLocalOptions, __ΩPulumiPluginCreateStackOptions, __ΩPulumiPluginExistingStackOptions, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginResolvedOptions, __ΩPulumiPluginUserConfig } from "./plugin.mjs";
|
|
2
|
+
export { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions, PulumiPluginExistingStackOptions, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginResolvedOptions, PulumiPluginUserConfig, __ΩPulumiPluginBaseOptions, __ΩPulumiPluginContext, __ΩPulumiPluginCreateStackInlineOptions, __ΩPulumiPluginCreateStackLocalOptions, __ΩPulumiPluginCreateStackOptions, __ΩPulumiPluginExistingStackOptions, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginResolvedOptions, __ΩPulumiPluginUserConfig };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
1
2
|
import { LocalWorkspaceOptions, PulumiFn, Stack, StackSettings } from "@pulumi/pulumi/automation";
|
|
2
|
-
import { DeployConfig, UserConfig } from "powerlines/types/config";
|
|
3
|
-
import { PluginContext } from "powerlines/types/context";
|
|
4
|
-
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
5
3
|
|
|
6
4
|
//#region src/types/plugin.d.ts
|
|
7
5
|
interface PulumiPluginBaseOptions {
|
|
@@ -58,14 +56,11 @@ interface PulumiPluginCreateStackLocalOptions extends PulumiPluginCreateStackOpt
|
|
|
58
56
|
}
|
|
59
57
|
type PulumiPluginOptions = PulumiPluginExistingStackOptions | PulumiPluginCreateStackInlineOptions | PulumiPluginCreateStackLocalOptions;
|
|
60
58
|
type PulumiPluginResolvedOptions = (Omit<PulumiPluginExistingStackOptions, "stack"> & Required<Pick<PulumiPluginExistingStackOptions, "stack">>) | (Omit<PulumiPluginCreateStackInlineOptions, "stackName" | "projectName" | "program"> & Required<Pick<PulumiPluginCreateStackInlineOptions, "stackName" | "projectName" | "program">>) | (Omit<PulumiPluginCreateStackLocalOptions, "stackName" | "workDir"> & Required<Pick<PulumiPluginCreateStackLocalOptions, "stackName" | "workDir">>);
|
|
61
|
-
interface PulumiPluginDeployConfig extends DeployConfig {
|
|
62
|
-
pulumi: PulumiPluginOptions;
|
|
63
|
-
}
|
|
64
59
|
interface PulumiPluginUserConfig extends UserConfig {
|
|
65
|
-
|
|
60
|
+
pulumi?: PulumiPluginOptions;
|
|
66
61
|
}
|
|
67
62
|
interface PulumiPluginResolvedConfig extends ResolvedConfig {
|
|
68
|
-
|
|
63
|
+
pulumi: PulumiPluginOptions;
|
|
69
64
|
}
|
|
70
65
|
type PulumiPluginContext<TResolvedConfig extends PulumiPluginResolvedConfig = PulumiPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
71
66
|
declare type __ΩPulumiPluginBaseOptions = any[];
|
|
@@ -75,10 +70,9 @@ declare type __ΩPulumiPluginCreateStackInlineOptions = any[];
|
|
|
75
70
|
declare type __ΩPulumiPluginCreateStackLocalOptions = any[];
|
|
76
71
|
declare type __ΩPulumiPluginOptions = any[];
|
|
77
72
|
declare type __ΩPulumiPluginResolvedOptions = any[];
|
|
78
|
-
declare type __ΩPulumiPluginDeployConfig = any[];
|
|
79
73
|
declare type __ΩPulumiPluginUserConfig = any[];
|
|
80
74
|
declare type __ΩPulumiPluginResolvedConfig = any[];
|
|
81
75
|
declare type __ΩPulumiPluginContext = any[];
|
|
82
76
|
//#endregion
|
|
83
|
-
export { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions,
|
|
77
|
+
export { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions, PulumiPluginExistingStackOptions, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginResolvedOptions, PulumiPluginUserConfig, __ΩPulumiPluginBaseOptions, __ΩPulumiPluginContext, __ΩPulumiPluginCreateStackInlineOptions, __ΩPulumiPluginCreateStackLocalOptions, __ΩPulumiPluginCreateStackOptions, __ΩPulumiPluginExistingStackOptions, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginResolvedOptions, __ΩPulumiPluginUserConfig };
|
|
84
78
|
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;UA0BiB,uBAAA;;AAAjB;AAcA;AAOA;AAYA;EAOiB,OAAA,CAAA,EAAA,OAAA;EAYA;AASjB;;EAEI,QAAA,CAAA,EApDS,aAoDT;;AACmC,UAlDtB,gCAAA,SAAyC,uBAkDnB,CAAA;EAE3B;;;EAEQ,KAAA,CAAA,EAlDV,KAkDU;;AAAd,UA/CW,8BAAA,SAAuC,uBA+ClD,CAAA;EAEA;;;EAIE,SAAA,CAAA,EAAA,MAAA;EADF;;;EAQO,OAAA,CAAA,EAnDD,qBAmDC;;AADP,UA/CW,gCAAA,CA+CX;EAAQ;AAId;AAIA;EAIY,KAAA,CAAA,EAvDF,KAuDE;;AAER,UAtDa,oCAAA,SAA6C,8BAsD1D,CAAA;EACc;;;;;;;YA9CN;;UAGK,mCAAA,SAA4C;;;;;;;;KASjD,mBAAA,GACR,mCACA,uCACA;KAEQ,2BAAA,IACP,KAAK,6CACJ,SAAS,KAAK,gDACf,KACC,iFAGA,SACE,KACE,oFAIL,KAAK,gEACJ,SACE,KAAK;UAGI,sBAAA,SAA+B;WACrC;;UAGM,0BAAA,SAAmC;UAC1C;;KAGE,4CACc,6BACtB,8BACA,cAAc"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { LocalWorkspaceOptions, PulumiFn, Stack, StackSettings } from "@pulumi/pulumi/automation";
|
|
2
|
-
import {
|
|
3
|
-
import { PluginContext } from "powerlines/types/context";
|
|
4
|
-
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
5
3
|
|
|
6
4
|
//#region src/types/plugin.d.ts
|
|
7
5
|
interface PulumiPluginBaseOptions {
|
|
@@ -58,14 +56,11 @@ interface PulumiPluginCreateStackLocalOptions extends PulumiPluginCreateStackOpt
|
|
|
58
56
|
}
|
|
59
57
|
type PulumiPluginOptions = PulumiPluginExistingStackOptions | PulumiPluginCreateStackInlineOptions | PulumiPluginCreateStackLocalOptions;
|
|
60
58
|
type PulumiPluginResolvedOptions = (Omit<PulumiPluginExistingStackOptions, "stack"> & Required<Pick<PulumiPluginExistingStackOptions, "stack">>) | (Omit<PulumiPluginCreateStackInlineOptions, "stackName" | "projectName" | "program"> & Required<Pick<PulumiPluginCreateStackInlineOptions, "stackName" | "projectName" | "program">>) | (Omit<PulumiPluginCreateStackLocalOptions, "stackName" | "workDir"> & Required<Pick<PulumiPluginCreateStackLocalOptions, "stackName" | "workDir">>);
|
|
61
|
-
interface PulumiPluginDeployConfig extends DeployConfig {
|
|
62
|
-
pulumi: PulumiPluginOptions;
|
|
63
|
-
}
|
|
64
59
|
interface PulumiPluginUserConfig extends UserConfig {
|
|
65
|
-
|
|
60
|
+
pulumi?: PulumiPluginOptions;
|
|
66
61
|
}
|
|
67
62
|
interface PulumiPluginResolvedConfig extends ResolvedConfig {
|
|
68
|
-
|
|
63
|
+
pulumi: PulumiPluginOptions;
|
|
69
64
|
}
|
|
70
65
|
type PulumiPluginContext<TResolvedConfig extends PulumiPluginResolvedConfig = PulumiPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
71
66
|
declare type __ΩPulumiPluginBaseOptions = any[];
|
|
@@ -75,10 +70,9 @@ declare type __ΩPulumiPluginCreateStackInlineOptions = any[];
|
|
|
75
70
|
declare type __ΩPulumiPluginCreateStackLocalOptions = any[];
|
|
76
71
|
declare type __ΩPulumiPluginOptions = any[];
|
|
77
72
|
declare type __ΩPulumiPluginResolvedOptions = any[];
|
|
78
|
-
declare type __ΩPulumiPluginDeployConfig = any[];
|
|
79
73
|
declare type __ΩPulumiPluginUserConfig = any[];
|
|
80
74
|
declare type __ΩPulumiPluginResolvedConfig = any[];
|
|
81
75
|
declare type __ΩPulumiPluginContext = any[];
|
|
82
76
|
//#endregion
|
|
83
|
-
export { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions,
|
|
77
|
+
export { PulumiPluginBaseOptions, PulumiPluginContext, PulumiPluginCreateStackInlineOptions, PulumiPluginCreateStackLocalOptions, PulumiPluginCreateStackOptions, PulumiPluginExistingStackOptions, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginResolvedOptions, PulumiPluginUserConfig, __ΩPulumiPluginBaseOptions, __ΩPulumiPluginContext, __ΩPulumiPluginCreateStackInlineOptions, __ΩPulumiPluginCreateStackLocalOptions, __ΩPulumiPluginCreateStackOptions, __ΩPulumiPluginExistingStackOptions, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginResolvedOptions, __ΩPulumiPluginUserConfig };
|
|
84
78
|
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;UA0BiB,uBAAA;;AAAjB;AAcA;AAOA;AAYA;EAOiB,OAAA,CAAA,EAAA,OAAA;EAYA;AASjB;;EAEI,QAAA,CAAA,EApDS,aAoDT;;AACmC,UAlDtB,gCAAA,SAAyC,uBAkDnB,CAAA;EAE3B;;;EAEQ,KAAA,CAAA,EAlDV,KAkDU;;AAAd,UA/CW,8BAAA,SAAuC,uBA+ClD,CAAA;EAEA;;;EAIE,SAAA,CAAA,EAAA,MAAA;EADF;;;EAQO,OAAA,CAAA,EAnDD,qBAmDC;;AADP,UA/CW,gCAAA,CA+CX;EAAQ;AAId;AAIA;EAIY,KAAA,CAAA,EAvDF,KAuDE;;AAER,UAtDa,oCAAA,SAA6C,8BAsD1D,CAAA;EACc;;;;;;;YA9CN;;UAGK,mCAAA,SAA4C;;;;;;;;KASjD,mBAAA,GACR,mCACA,uCACA;KAEQ,2BAAA,IACP,KAAK,6CACJ,SAAS,KAAK,gDACf,KACC,iFAGA,SACE,KACE,oFAIL,KAAK,gEACJ,SACE,KAAK;UAGI,sBAAA,SAA+B;WACrC;;UAGM,0BAAA,SAAmC;UAC1C;;KAGE,4CACc,6BACtB,8BACA,cAAc"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-pulumi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.271",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to transform source code to be platform agnostic using pulumi.",
|
|
6
6
|
"repository": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"default": "./dist/index.mjs"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
"
|
|
58
|
+
"./*": "./*",
|
|
59
59
|
"./types": {
|
|
60
60
|
"require": {
|
|
61
61
|
"types": "./dist/types/index.d.cts",
|
|
@@ -97,14 +97,14 @@
|
|
|
97
97
|
"@stryke/type-checks": "^0.5.25",
|
|
98
98
|
"@stryke/types": "^0.10.39",
|
|
99
99
|
"defu": "^6.1.4",
|
|
100
|
-
"powerlines": "^0.
|
|
100
|
+
"powerlines": "^0.39.0",
|
|
101
101
|
"typescript": "^5.9.3"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
105
|
-
"@types/node": "^25.3.
|
|
104
|
+
"@powerlines/plugin-plugin": "^0.12.242",
|
|
105
|
+
"@types/node": "^25.3.2"
|
|
106
106
|
},
|
|
107
107
|
"publishConfig": { "access": "public" },
|
|
108
108
|
"types": "./dist/index.d.cts",
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "0dcb16f054b8a69915b074578e6d4dfa3ecc1529"
|
|
110
110
|
}
|