@powerlines/plugin-pulumi 0.1.2 → 0.1.3
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 +2 -2
- package/dist/index.js +2 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var automation=require('@pulumi/pulumi/automation'),index=require('@stryke/helpers/index'),join=require('@stryke/path/join'),kebabCase=require('@stryke/string-format/kebab-case'),
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var automation=require('@pulumi/pulumi/automation'),index=require('@stryke/helpers/index'),join=require('@stryke/path/join'),kebabCase=require('@stryke/string-format/kebab-case'),a=require('defu'),contextHelpers=require('powerlines/plugin-utils/context-helpers'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var a__default=/*#__PURE__*/_interopDefault(a);/*****************************************
|
|
2
2
|
*
|
|
3
3
|
* ⚡ Built by Storm Software
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var s=Object.defineProperty;var u=(t,i)=>s(t,"name",{value:i,configurable:true});const f=u((t={})=>({name:"pulumi",async config(){return {deploy:{pulumi:a__default.default(t,{workDir:join.joinPaths(this.artifactsPath,"infrastructure")})}}},async configResolved(){this.config.deploy.pulumi.stackName??=automation.fullyQualifiedStackName(kebabCase.kebabCase(contextHelpers.getOrganizationName(this)||"default"),`${contextHelpers.getWorkspaceName(this)?`${kebabCase.kebabCase(contextHelpers.getWorkspaceName(this))}-`:""}${kebabCase.kebabCase(this.config.name)}`,this.config.mode),this.pulumi=await automation.LocalWorkspace.createOrSelectStack(index.omit(this.config.deploy.pulumi,["options"]),this.config.deploy.pulumi.options);},deploy:{order:"post",async handler(){await this.pulumi.refresh({onOutput:this.debug.bind(this)}),this.config.deploy.pulumi.destroy&&await this.pulumi.destroy({onOutput:this.debug.bind(this)});const i=await this.pulumi.up({onOutput:this.debug.bind(this)});this.info(`Successfully deployed ${this.config.deploy.pulumi.stackName} (v${i.summary.version}): ${i.summary.message}`);}}}),"plugin");var N=f;exports.default=N;exports.plugin=f;Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {fullyQualifiedStackName,LocalWorkspace}from'@pulumi/pulumi/automation';import {omit}from'@stryke/helpers/index';import {joinPaths}from'@stryke/path/join';import {kebabCase}from'@stryke/string-format/kebab-case';import
|
|
1
|
+
import {fullyQualifiedStackName,LocalWorkspace}from'@pulumi/pulumi/automation';import {omit}from'@stryke/helpers/index';import {joinPaths}from'@stryke/path/join';import {kebabCase}from'@stryke/string-format/kebab-case';import a from'defu';import {getOrganizationName,getWorkspaceName}from'powerlines/plugin-utils/context-helpers';export*from'./types';/*****************************************
|
|
2
2
|
*
|
|
3
3
|
* ⚡ Built by Storm Software
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var s=Object.defineProperty;var u=(t,i)=>s(t,"name",{value:i,configurable:true});const f=u((t={})=>({name:"pulumi",async config(){return {deploy:{pulumi:a(t,{workDir:joinPaths(this.artifactsPath,"infrastructure")})}}},async configResolved(){this.config.deploy.pulumi.stackName??=fullyQualifiedStackName(kebabCase(getOrganizationName(this)||"default"),`${getWorkspaceName(this)?`${kebabCase(getWorkspaceName(this))}-`:""}${kebabCase(this.config.name)}`,this.config.mode),this.pulumi=await LocalWorkspace.createOrSelectStack(omit(this.config.deploy.pulumi,["options"]),this.config.deploy.pulumi.options);},deploy:{order:"post",async handler(){await this.pulumi.refresh({onOutput:this.debug.bind(this)}),this.config.deploy.pulumi.destroy&&await this.pulumi.destroy({onOutput:this.debug.bind(this)});const i=await this.pulumi.up({onOutput:this.debug.bind(this)});this.info(`Successfully deployed ${this.config.deploy.pulumi.stackName} (v${i.summary.version}): ${i.summary.message}`);}}}),"plugin");var S=f;export{S as default,f as plugin};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-pulumi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to transform source code to be platform agnostic using pulumi.",
|
|
6
6
|
"repository": {
|
|
@@ -106,13 +106,13 @@
|
|
|
106
106
|
"@stryke/string-format": "^0.12.2",
|
|
107
107
|
"@pulumi/pulumi": "^3.207.0",
|
|
108
108
|
"defu": "^6.1.4",
|
|
109
|
-
"powerlines": "^0.22.
|
|
109
|
+
"powerlines": "^0.22.1",
|
|
110
110
|
"typescript": "^5.9.3"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
|
-
"@powerlines/nx": "^0.10.
|
|
113
|
+
"@powerlines/nx": "^0.10.15",
|
|
114
114
|
"@types/node": "^22.19.1"
|
|
115
115
|
},
|
|
116
116
|
"publishConfig": { "access": "public" },
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "79514f9dda337550c9e4064a7a6e3938bd9aca08"
|
|
118
118
|
}
|