@ossy/deployment-tools 0.0.26 → 0.0.27

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.js CHANGED
@@ -60865,7 +60865,11 @@ class DeploymentPlatformClient {
60865
60865
  ])
60866
60866
  .then(([platforms, deploymentTemplates]) => {
60867
60867
  deploymentTemplates.map(deploymentTemplate => {
60868
- const deploymentPlatform = platforms.find(platform => platform.name === deploymentTemplate.targetDeploymentPlatform);
60868
+ log({
60869
+ type: 'info',
60870
+ message: `[DeploymentPlatformClient]: Found deployment platforms [${platforms.join(', ')}]`
60871
+ });
60872
+ const deploymentPlatform = platforms.find(platform => platform.platformName === deploymentTemplate.targetDeploymentPlatform);
60869
60873
  if (!deploymentPlatform) {
60870
60874
  log({ type: 'error', message: `[DeploymentPlatformClient] Could not find a deployment platform with the name ${deploymentTemplate.targetDeploymentPlatform}` });
60871
60875
  return Promise.reject();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/deployment-tools",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "Collection of scripts and tools to aid deployment of containers and static files",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -54,7 +54,13 @@ export class DeploymentPlatformClient {
54
54
  ])
55
55
  .then(([platforms, deploymentTemplates]) => {
56
56
  deploymentTemplates.map(deploymentTemplate => {
57
- const deploymentPlatform = platforms.find(platform => platform.name === deploymentTemplate.targetDeploymentPlatform)
57
+
58
+ log({
59
+ type: 'info',
60
+ message: `[DeploymentPlatformClient]: Found deployment platforms [${platforms.join(', ')}]`
61
+ })
62
+
63
+ const deploymentPlatform = platforms.find(platform => platform.platformName === deploymentTemplate.targetDeploymentPlatform)
58
64
 
59
65
  if (!deploymentPlatform) {
60
66
  log({ type: 'error', message: `[DeploymentPlatformClient] Could not find a deployment platform with the name ${deploymentTemplate.targetDeploymentPlatform}` })
@@ -87,7 +93,7 @@ export class DeploymentPlatformClient {
87
93
  return Promise.resolve(ossyfile.deployments || [])
88
94
  }
89
95
 
90
- static getDeploymentPlatforms(pathToDeploymentPlatforms: string) {
96
+ static getDeploymentPlatforms(pathToDeploymentPlatforms: string): Promise<DeploymentPlatform[]> {
91
97
  let deploymentPlatforms = JSON.parse(readFileSync(resolve(pathToDeploymentPlatforms), 'utf8'))
92
98
 
93
99
  if (!Array.isArray(deploymentPlatforms)) {