@powerlines/plugin-pulumi 0.6.21 → 0.6.23
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 +1 -1
- package/dist/plugin.d.cts +2 -2
- package/dist/plugin.d.cts.map +1 -1
- package/dist/plugin.d.mts +2 -2
- package/dist/plugin.d.mts.map +1 -1
- package/dist/plugin.mjs.map +1 -1
- package/dist/types/_internal.d.cts +4 -4
- package/dist/types/_internal.d.cts.map +1 -1
- package/dist/types/_internal.d.mts +4 -4
- package/dist/types/_internal.d.mts.map +1 -1
- package/package.json +4 -4
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
|
-
[](https://stormsoftware.com/projects/powerlines) [](http://commitizen.github.io/cz-cli/)  
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
package/dist/plugin.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PulumiPluginOptions } from "./types/plugin.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Unstable_PulumiPluginContext } from "./types/_internal.cjs";
|
|
3
3
|
import { Plugin } from "powerlines";
|
|
4
4
|
|
|
5
5
|
//#region src/plugin.d.ts
|
|
@@ -11,7 +11,7 @@ import { Plugin } from "powerlines";
|
|
|
11
11
|
* @param options - The Pulumi plugin user configuration options.
|
|
12
12
|
* @returns A Powerlines plugin to configure infrastructure and deploy a project using Pulumi.
|
|
13
13
|
*/
|
|
14
|
-
declare const plugin: <TContext extends
|
|
14
|
+
declare const plugin: <TContext extends Unstable_PulumiPluginContext = Unstable_PulumiPluginContext>(options?: PulumiPluginOptions) => Plugin<TContext>[];
|
|
15
15
|
//#endregion
|
|
16
16
|
export { plugin };
|
|
17
17
|
//# sourceMappingURL=plugin.d.cts.map
|
package/dist/plugin.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;;;;AAsCA;;;;;;cAAa,MAAA,oBACM,
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;;;;AAsCA;;;;;;cAAa,MAAA,oBACM,4BAAA,GAA+B,4BAAA,EAEhD,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/plugin.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PulumiPluginOptions } from "./types/plugin.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Unstable_PulumiPluginContext } from "./types/_internal.mjs";
|
|
3
3
|
import { Plugin } from "powerlines";
|
|
4
4
|
|
|
5
5
|
//#region src/plugin.d.ts
|
|
@@ -11,7 +11,7 @@ import { Plugin } from "powerlines";
|
|
|
11
11
|
* @param options - The Pulumi plugin user configuration options.
|
|
12
12
|
* @returns A Powerlines plugin to configure infrastructure and deploy a project using Pulumi.
|
|
13
13
|
*/
|
|
14
|
-
declare const plugin: <TContext extends
|
|
14
|
+
declare const plugin: <TContext extends Unstable_PulumiPluginContext = Unstable_PulumiPluginContext>(options?: PulumiPluginOptions) => Plugin<TContext>[];
|
|
15
15
|
//#endregion
|
|
16
16
|
export { plugin };
|
|
17
17
|
//# sourceMappingURL=plugin.d.mts.map
|
package/dist/plugin.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;;;;AAsCA;;;;;;cAAa,MAAA,oBACM,
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;;;;AAsCA;;;;;;cAAa,MAAA,oBACM,4BAAA,GAA+B,4BAAA,EAEhD,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
|
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 ProjectSettings\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 {
|
|
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 ProjectSettings\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 { Unstable_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 Unstable_PulumiPluginContext = Unstable_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.stackSettings &&\n Object.keys(this.config.pulumi.stackSettings).length > 0\n ) {\n await this.pulumi.workspace.saveStackSettings(\n this.pulumi.name,\n this.config.pulumi.stackSettings\n );\n }\n\n await this.pulumi.workspace.saveProjectSettings(\n defu(this.config.pulumi.projectSettings ?? {}, {\n name: this.config.name,\n runtime: { name: \"nodejs\" },\n description: this.config.description,\n author: this.config.organization\n }) as ProjectSettings\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":";;;;;;;;;;;;;;AAsCA,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,iBACnB,OAAO,KAAK,KAAK,OAAO,OAAO,cAAc,CAAC,SAAS,EAEvD,OAAM,KAAK,OAAO,UAAU,kBAC1B,KAAK,OAAO,MACZ,KAAK,OAAO,OAAO,cACpB;AAGH,SAAM,KAAK,OAAO,UAAU,oBAC1B,KAAK,KAAK,OAAO,OAAO,mBAAmB,EAAE,EAAE;IAC7C,MAAM,KAAK,OAAO;IAClB,SAAS,EAAE,MAAM,UAAU;IAC3B,aAAa,KAAK,OAAO;IACzB,QAAQ,KAAK,OAAO;IACrB,CAAC,CACH;AAED,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,9 +1,9 @@
|
|
|
1
1
|
import { PulumiPluginContext, PulumiPluginResolvedConfig } from "./plugin.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Unstable_PluginContext } from "@powerlines/core/types/_internal";
|
|
3
3
|
|
|
4
4
|
//#region src/types/_internal.d.ts
|
|
5
|
-
type
|
|
6
|
-
declare type __Ω
|
|
5
|
+
type Unstable_PulumiPluginContext<TResolvedConfig extends PulumiPluginResolvedConfig = PulumiPluginResolvedConfig> = PulumiPluginContext<TResolvedConfig> & Unstable_PluginContext<TResolvedConfig>;
|
|
6
|
+
declare type __ΩUnstable_PulumiPluginContext = any[];
|
|
7
7
|
//#endregion
|
|
8
|
-
export {
|
|
8
|
+
export { Unstable_PulumiPluginContext, __ΩUnstable_PulumiPluginContext };
|
|
9
9
|
//# sourceMappingURL=_internal.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_internal.d.cts","names":[],"sources":["../../src/types/_internal.ts"],"mappings":";;;;KAqBY,
|
|
1
|
+
{"version":3,"file":"_internal.d.cts","names":[],"sources":["../../src/types/_internal.ts"],"mappings":";;;;KAqBY,4BAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,mBAAA,CAAoB,eAAA,IACtB,sBAAA,CAAuB,eAAA;AAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PulumiPluginContext, PulumiPluginResolvedConfig } from "./plugin.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Unstable_PluginContext } from "@powerlines/core/types/_internal";
|
|
3
3
|
|
|
4
4
|
//#region src/types/_internal.d.ts
|
|
5
|
-
type
|
|
6
|
-
declare type __Ω
|
|
5
|
+
type Unstable_PulumiPluginContext<TResolvedConfig extends PulumiPluginResolvedConfig = PulumiPluginResolvedConfig> = PulumiPluginContext<TResolvedConfig> & Unstable_PluginContext<TResolvedConfig>;
|
|
6
|
+
declare type __ΩUnstable_PulumiPluginContext = any[];
|
|
7
7
|
//#endregion
|
|
8
|
-
export {
|
|
8
|
+
export { Unstable_PulumiPluginContext, __ΩUnstable_PulumiPluginContext };
|
|
9
9
|
//# sourceMappingURL=_internal.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_internal.d.mts","names":[],"sources":["../../src/types/_internal.ts"],"mappings":";;;;KAqBY,
|
|
1
|
+
{"version":3,"file":"_internal.d.mts","names":[],"sources":["../../src/types/_internal.ts"],"mappings":";;;;KAqBY,4BAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,mBAAA,CAAoB,eAAA,IACtB,sBAAA,CAAuB,eAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-pulumi",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.23",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Powerlines plugin to transform source code to be platform agnostic using pulumi.",
|
|
6
6
|
"keywords": ["pulumi", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -126,13 +126,13 @@
|
|
|
126
126
|
"@stryke/type-checks": "^0.6.0",
|
|
127
127
|
"@stryke/types": "^0.11.2",
|
|
128
128
|
"defu": "^6.1.4",
|
|
129
|
-
"powerlines": "^0.42.
|
|
129
|
+
"powerlines": "^0.42.23",
|
|
130
130
|
"typescript": "^5.9.3"
|
|
131
131
|
},
|
|
132
132
|
"devDependencies": {
|
|
133
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
133
|
+
"@powerlines/plugin-plugin": "^0.12.333",
|
|
134
134
|
"@types/node": "^25.5.0"
|
|
135
135
|
},
|
|
136
136
|
"publishConfig": { "access": "public" },
|
|
137
|
-
"gitHead": "
|
|
137
|
+
"gitHead": "4042ae8096ab1aae106c743a39ee41047307dce3"
|
|
138
138
|
}
|