@powerlines/plugin-pulumi 0.5.22 → 0.5.24

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/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>🔌 Powerlines</b> monorepo. Powerlines is the "
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.5.15-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/powerlines)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.5.22-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/powerlines)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -58,21 +58,19 @@ A package containing a Powerlines plugin to configure infrastructure and deploy
58
58
 
59
59
  ## Table of Contents
60
60
 
61
- - [Powerlines - Pulumi Plugin](#powerlines---pulumi-plugin)
62
- - [Table of Contents](#table-of-contents)
63
- - [Installing](#installing)
64
- - [Reduced Package Size](#reduced-package-size)
65
- - [Development](#development)
66
- - [Building](#building)
67
- - [Running unit tests](#running-unit-tests)
68
- - [Linting](#linting)
69
- - [Storm Workspaces](#storm-workspaces)
70
- - [Roadmap](#roadmap)
71
- - [Support](#support)
72
- - [License](#license)
73
- - [Changelog](#changelog)
74
- - [Contributing](#contributing)
75
- - [Contributors](#contributors)
61
+ - [Installing](#installing)
62
+ - [Reduced Package Size](#reduced-package-size)
63
+ - [Development](#development)
64
+ - [Building](#building)
65
+ - [Running unit tests](#running-unit-tests)
66
+ - [Linting](#linting)
67
+ - [Storm Workspaces](#storm-workspaces)
68
+ - [Roadmap](#roadmap)
69
+ - [Support](#support)
70
+ - [License](#license)
71
+ - [Changelog](#changelog)
72
+ - [Contributing](#contributing)
73
+ - [Contributors](#contributors)
76
74
 
77
75
  <!-- END doctoc -->
78
76
 
@@ -1,4 +1,4 @@
1
- //#region rolldown:runtime
1
+ //#region \0rolldown/runtime.js
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -0,0 +1,3 @@
1
+ import "node:module";
2
+
3
+ export { };
package/dist/index.cjs CHANGED
@@ -1,3 +1,4 @@
1
- const require_plugin = require('./plugin.cjs');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_plugin = require('./src/plugin.cjs');
2
3
 
3
- exports.plugin = require_plugin.plugin;
4
+ exports.plugin = require_plugin;
package/dist/index.d.cts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig } from "./types/plugin.cjs";
2
2
  import { DeployPulumiResult, PulumiOutputRecord, __ΩDeployPulumiResult, __ΩPulumiOutputRecord } from "./types/pulumi.cjs";
3
- import "./types/index.cjs";
4
- import { plugin } from "./plugin.cjs";
3
+ import { plugin } from "./src/plugin.cjs";
5
4
  import { MaybePromise } from "@stryke/types";
6
5
  import { PluginContext } from "powerlines";
7
6
 
@@ -1 +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"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;YAwBY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;EAAA,UAGD,KAAA,kBAAuB,aAAA;IAPkB;;;;;;;IAejD,YAAA,IACE,IAAA,EAAM,QAAA,EACN,SAAA,GAAY,kBAAA,KACT,YAAA,CAAa,kBAAA;EAAA;AAAA"}
package/dist/index.d.mts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { PulumiPluginContext, PulumiPluginOptions, PulumiPluginResolvedConfig, PulumiPluginUserConfig, __ΩPulumiPluginContext, __ΩPulumiPluginOptions, __ΩPulumiPluginResolvedConfig, __ΩPulumiPluginUserConfig } from "./types/plugin.mjs";
2
2
  import { DeployPulumiResult, PulumiOutputRecord, __ΩDeployPulumiResult, __ΩPulumiOutputRecord } from "./types/pulumi.mjs";
3
- import "./types/index.mjs";
4
- import { plugin } from "./plugin.mjs";
3
+ import { plugin } from "./src/plugin.mjs";
5
4
  import { MaybePromise } from "@stryke/types";
6
5
  import { PluginContext } from "powerlines";
7
6
 
@@ -1 +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"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;YAwBY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;EAAA,UAGD,KAAA,kBAAuB,aAAA;IAPkB;;;;;;;IAejD,YAAA,IACE,IAAA,EAAM,QAAA,EACN,SAAA,GAAY,kBAAA,KACT,YAAA,CAAa,kBAAA;EAAA;AAAA"}
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { plugin } from "./plugin.mjs";
1
+ import plugin from "./src/plugin.mjs";
2
2
 
3
3
  export { plugin };
@@ -1,8 +1,8 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
- let __pulumi_pulumi_automation = require("@pulumi/pulumi/automation");
3
- let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
1
+ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
2
+ let _pulumi_pulumi_automation = require("@pulumi/pulumi/automation");
3
+ let _stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
4
4
  let defu = require("defu");
5
- defu = require_rolldown_runtime.__toESM(defu);
5
+ defu = require_runtime.__toESM(defu);
6
6
  let powerlines_plugin_utils = require("powerlines/plugin-utils");
7
7
 
8
8
  //#region src/plugin.ts
@@ -24,14 +24,14 @@ const plugin = (options = {}) => {
24
24
  }) } };
25
25
  },
26
26
  async configResolved() {
27
- const organizationName = (0, __stryke_string_format_kebab_case.kebabCase)((0, powerlines_plugin_utils.getOrganizationName)(this));
28
- const workspaceName = (0, __stryke_string_format_kebab_case.kebabCase)((0, powerlines_plugin_utils.getWorkspaceName)(this));
29
- const projectName = (0, __stryke_string_format_kebab_case.kebabCase)(this.config.name);
30
- this.config.pulumi.stackName ??= (0, __pulumi_pulumi_automation.fullyQualifiedStackName)(organizationName || workspaceName || projectName, `${workspaceName && workspaceName !== organizationName && workspaceName !== projectName ? `${workspaceName}-` : ""}${projectName}`, this.config.mode);
27
+ const organizationName = (0, _stryke_string_format_kebab_case.kebabCase)((0, powerlines_plugin_utils.getOrganizationName)(this));
28
+ const workspaceName = (0, _stryke_string_format_kebab_case.kebabCase)((0, powerlines_plugin_utils.getWorkspaceName)(this));
29
+ const projectName = (0, _stryke_string_format_kebab_case.kebabCase)(this.config.name);
30
+ this.config.pulumi.stackName ??= (0, _pulumi_pulumi_automation.fullyQualifiedStackName)(organizationName || workspaceName || projectName, `${workspaceName && workspaceName !== organizationName && workspaceName !== projectName ? `${workspaceName}-` : ""}${projectName}`, this.config.mode);
31
31
  },
32
32
  async deploy() {
33
33
  this.info(`Creating resources for Pulumi stack: ${this.config.pulumi.stackName}`);
34
- this.pulumi ??= await __pulumi_pulumi_automation.LocalWorkspace.createOrSelectStack({
34
+ this.pulumi ??= await _pulumi_pulumi_automation.LocalWorkspace.createOrSelectStack({
35
35
  ...this.config.pulumi,
36
36
  program: async () => {
37
37
  this.debug("Executing Pulumi program to define infrastructure resources.");
@@ -54,4 +54,4 @@ const plugin = (options = {}) => {
54
54
  };
55
55
 
56
56
  //#endregion
57
- exports.plugin = plugin;
57
+ exports.default = plugin;
@@ -1,9 +1,8 @@
1
- import { PulumiPluginOptions } from "./types/plugin.cjs";
2
- import { UNSAFE_PulumiPluginContext } from "./types/_internal.cjs";
1
+ import { PulumiPluginOptions } from "../types/plugin.cjs";
2
+ import { UNSAFE_PulumiPluginContext } from "../types/_internal.cjs";
3
3
  import { Plugin } from "powerlines";
4
4
 
5
5
  //#region src/plugin.d.ts
6
-
7
6
  /**
8
7
  * A package containing a Powerlines plugin to configure infrastructure and deploy a project using Pulumi IaC.
9
8
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/plugin.ts"],"mappings":";;;;;;;AAqCA;;;;;;cAAa,MAAA,oBACM,0BAAA,GAA6B,0BAAA,EAE9C,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
@@ -1,9 +1,8 @@
1
- import { PulumiPluginOptions } from "./types/plugin.mjs";
2
- import { UNSAFE_PulumiPluginContext } from "./types/_internal.mjs";
1
+ import { PulumiPluginOptions } from "../types/plugin.mjs";
2
+ import { UNSAFE_PulumiPluginContext } from "../types/_internal.mjs";
3
3
  import { Plugin } from "powerlines";
4
4
 
5
5
  //#region src/plugin.d.ts
6
-
7
6
  /**
8
7
  * A package containing a Powerlines plugin to configure infrastructure and deploy a project using Pulumi IaC.
9
8
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/plugin.ts"],"mappings":";;;;;;;AAqCA;;;;;;cAAa,MAAA,oBACM,0BAAA,GAA6B,0BAAA,EAE9C,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
@@ -52,5 +52,5 @@ const plugin = (options = {}) => {
52
52
  };
53
53
 
54
54
  //#endregion
55
- export { plugin };
55
+ export { plugin as default };
56
56
  //# sourceMappingURL=plugin.mjs.map
@@ -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"}
@@ -1 +1 @@
1
- {"version":3,"file":"_internal.d.cts","names":[],"sources":["../../src/types/_internal.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,mDACc,6BACtB,8BACA,oBAAoB,mBACtB,qBAAqB"}
1
+ {"version":3,"file":"_internal.d.cts","names":[],"sources":["../../src/types/_internal.ts"],"mappings":";;;;KAqBY,0BAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,mBAAA,CAAoB,eAAA,IACtB,oBAAA,CAAqB,eAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"_internal.d.mts","names":[],"sources":["../../src/types/_internal.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,mDACc,6BACtB,8BACA,oBAAoB,mBACtB,qBAAqB"}
1
+ {"version":3,"file":"_internal.d.mts","names":[],"sources":["../../src/types/_internal.ts"],"mappings":";;;;KAqBY,0BAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,mBAAA,CAAoB,eAAA,IACtB,oBAAA,CAAqB,eAAA;AAAA"}
@@ -1 +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"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;UA0BiB,mBAAA,SAA4B,OAAA,CAAQ,iBAAA;;AAArD;;EAIE,OAAA,GAAU,qBAAA;EAJyC;;;;;EAWnD,OAAA;EAX2C;;;EAgB3C,QAAA,GAAW,aAAA;AAAA;AAAA,UAGI,sBAAA,SAA+B,UAAA;EAC9C,MAAA,GAAS,mBAAA;AAAA;AAAA,UAGM,0BAAA,SAAmC,cAAA;EAClD,MAAA,EAAQ,mBAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA;EAChB,MAAA,EAAQ,KAAA;AAAA;AAAA"}
@@ -1 +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"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;UA0BiB,mBAAA,SAA4B,OAAA,CAAQ,iBAAA;;AAArD;;EAIE,OAAA,GAAU,qBAAA;EAJyC;;;;;EAWnD,OAAA;EAX2C;;;EAgB3C,QAAA,GAAW,aAAA;AAAA;AAAA,UAGI,sBAAA,SAA+B,UAAA;EAC9C,MAAA,GAAS,mBAAA;AAAA;AAAA,UAGM,0BAAA,SAAmC,cAAA;EAClD,MAAA,EAAQ,mBAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA;EAChB,MAAA,EAAQ,KAAA;AAAA;AAAA"}
@@ -1 +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"}
1
+ {"version":3,"file":"pulumi.d.cts","names":[],"sources":["../../src/types/pulumi.ts"],"mappings":";;;UAoBiB,kBAAA;EAAA,CACd,GAAA,WAAc,MAAA,CAAO,CAAA,IAAK,kBAAA,CAAmB,CAAA,IAAK,kBAAA,CAAmB,CAAA;AAAA;AAAA,KAG5D,kBAAA,GAAqB,kBAAA;AAAA"}
@@ -1 +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"}
1
+ {"version":3,"file":"pulumi.d.mts","names":[],"sources":["../../src/types/pulumi.ts"],"mappings":";;;UAoBiB,kBAAA;EAAA,CACd,GAAA,WAAc,MAAA,CAAO,CAAA,IAAK,kBAAA,CAAmB,CAAA,IAAK,kBAAA,CAAmB,CAAA;AAAA;AAAA,KAG5D,kBAAA,GAAqB,kBAAA;AAAA"}
package/package.json CHANGED
@@ -1,18 +1,24 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-pulumi",
3
- "version": "0.5.22",
4
- "type": "module",
3
+ "version": "0.5.24",
4
+ "private": false,
5
5
  "description": "A Powerlines plugin to transform source code to be platform agnostic using pulumi.",
6
+ "keywords": ["pulumi", "powerlines", "storm-software", "powerlines-plugin"],
7
+ "homepage": "https://stormsoftware.com",
8
+ "bugs": {
9
+ "url": "https://stormsoftware.com/support",
10
+ "email": "support@stormsoftware.com"
11
+ },
6
12
  "repository": {
7
13
  "type": "github",
8
14
  "url": "https://github.com/storm-software/powerlines.git",
9
15
  "directory": "packages/plugin-pulumi"
10
16
  },
11
- "homepage": "https://stormsoftware.com",
12
- "bugs": {
13
- "url": "https://stormsoftware.com/support",
14
- "email": "support@stormsoftware.com"
17
+ "funding": {
18
+ "type": "github",
19
+ "url": "https://github.com/sponsors/storm-software"
15
20
  },
21
+ "license": "Apache-2.0",
16
22
  "author": {
17
23
  "name": "Storm Software",
18
24
  "email": "contact@stormsoftware.com",
@@ -32,14 +38,7 @@
32
38
  "url": "https://stormsoftware.com"
33
39
  }
34
40
  ],
35
- "funding": {
36
- "type": "github",
37
- "url": "https://github.com/sponsors/storm-software"
38
- },
39
- "license": "Apache-2.0",
40
- "private": false,
41
- "main": "./dist/index.cjs",
42
- "module": "./dist/index.mjs",
41
+ "type": "module",
43
42
  "exports": {
44
43
  ".": {
45
44
  "require": {
@@ -55,7 +54,7 @@
55
54
  "default": "./dist/index.mjs"
56
55
  }
57
56
  },
58
- "./*": "./*",
57
+ "./package.json": "./package.json",
59
58
  "./types": {
60
59
  "require": {
61
60
  "types": "./dist/types/index.d.cts",
@@ -113,9 +112,11 @@
113
112
  }
114
113
  }
115
114
  },
115
+ "main": "./dist/index.cjs",
116
+ "module": "./dist/index.mjs",
117
+ "types": "./dist/index.d.cts",
116
118
  "typings": "dist/index.d.mts",
117
119
  "files": ["dist/**/*"],
118
- "keywords": ["pulumi", "powerlines", "storm-software", "powerlines-plugin"],
119
120
  "dependencies": {
120
121
  "@pulumi/pulumi": "^3.225.1",
121
122
  "@stryke/fs": "^0.33.57",
@@ -125,14 +126,13 @@
125
126
  "@stryke/type-checks": "^0.5.38",
126
127
  "@stryke/types": "^0.10.52",
127
128
  "defu": "^6.1.4",
128
- "powerlines": "^0.41.6",
129
+ "powerlines": "^0.41.8",
129
130
  "typescript": "^5.9.3"
130
131
  },
131
132
  "devDependencies": {
132
- "@powerlines/plugin-plugin": "^0.12.292",
133
+ "@powerlines/plugin-plugin": "^0.12.294",
133
134
  "@types/node": "^25.4.0"
134
135
  },
135
136
  "publishConfig": { "access": "public" },
136
- "types": "./dist/index.d.cts",
137
- "gitHead": "86bbe64da57a38d472b37261ca9d113171841a6c"
137
+ "gitHead": "40d1f94407720be23c3801f9145fdad1fe27dfb2"
138
138
  }
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}