@tahminator/pipeline 1.0.31 → 1.0.33

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.
@@ -1,10 +1,10 @@
1
1
  import { type PreviewResult, type UpResult } from "@pulumi/pulumi/automation";
2
- import type { PulumiClientAzureStrategyArgs as PulumiClientAzureStrategyConfig } from "../types";
2
+ import type { PulumiClientAzureStrategyArgs } from "../types";
3
3
  import type { IPulumiClientStrategy } from "./types";
4
4
  export declare class AzurePulumiClientStrategy implements IPulumiClientStrategy {
5
5
  private readonly stack;
6
6
  private constructor();
7
- static create(args: PulumiClientAzureStrategyConfig): Promise<AzurePulumiClientStrategy>;
7
+ static create(args: PulumiClientAzureStrategyArgs): Promise<AzurePulumiClientStrategy>;
8
8
  up(): Promise<UpResult>;
9
9
  preview(): Promise<PreviewResult>;
10
10
  }
@@ -10,7 +10,7 @@ export class AzurePulumiClientStrategy {
10
10
  workDir: args.workDir,
11
11
  }, {
12
12
  envVars: {
13
- ...args.envs,
13
+ ...Object.fromEntries(Object.entries(args.envs).filter((entry) => entry[1] !== undefined)),
14
14
  },
15
15
  });
16
16
  return new AzurePulumiClientStrategy(stack);
@@ -1,21 +1,21 @@
1
1
  import type { LocalProgramArgs } from "@pulumi/pulumi/automation";
2
+ import type { LiteralUnion } from "../types";
2
3
  export declare enum PulumiClientStrategy {
3
4
  AZURE = 0
4
5
  }
5
6
  export interface IPulumiClientStrategyArgs {
6
7
  strategy: PulumiClientStrategy;
7
- auth: Record<string, unknown>;
8
- envs: Record<string, string>;
8
+ envs: Record<string, string | undefined>;
9
9
  }
10
10
  export interface PulumiClientAzureStrategyArgs extends IPulumiClientStrategyArgs, LocalProgramArgs {
11
11
  strategy: PulumiClientStrategy.AZURE;
12
12
  envs: {
13
- ARM_CLIENT_ID: string;
14
- ARM_CLIENT_SECRET: string;
15
- ARM_TENANT_ID: string;
16
- ARM_SUBSCRIPTION_ID: string;
17
- PULUMI_BACKEND_URL: `azblob://${string}?storage_account=${string}`;
18
- [_: string]: string;
13
+ ARM_CLIENT_ID?: string;
14
+ ARM_CLIENT_SECRET?: string;
15
+ ARM_TENANT_ID?: string;
16
+ ARM_SUBSCRIPTION_ID?: string;
17
+ PULUMI_BACKEND_URL: LiteralUnion<`azblob://${string}?storage_account=${string}`>;
18
+ [_: string]: string | undefined;
19
19
  };
20
20
  }
21
21
  export type PulumiClientStrategiesArgs = PulumiClientAzureStrategyArgs;
package/dist/types.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export type Environment = "staging" | "production";
2
2
  export type OwnerString = string;
3
3
  export type RepoString = string;
4
+ export type LiteralUnion<T extends string> = T | (string & {});
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "author": "Tahmid Ahmed",
5
5
  "description": "A collection of Bun shell scripts that can be re-used in various CICD pipelines.",
6
- "version": "1.0.31",
6
+ "version": "1.0.33",
7
7
  "repository": {
8
8
  "url": "git+https://github.com/tahminator/pipeline.git"
9
9
  },