From 99d69282ebd434f1cf84a43e98ab489e436b27a6 Mon Sep 17 00:00:00 2001 From: Harjot Singh Date: Sat, 30 Sep 2023 20:16:56 +0100 Subject: [PATCH] refactor(environment): flatten structure --- environment/{cluster/index.ts => cluster.ts} | 6 +++--- environment/{github-secrets/index.ts => github-secrets.ts} | 2 +- environment/{identity/index.ts => identity.ts} | 0 environment/{logging/index.ts => logging.ts} | 2 +- environment/{network/index.ts => network.ts} | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename environment/{cluster/index.ts => cluster.ts} (94%) rename environment/{github-secrets/index.ts => github-secrets.ts} (92%) rename environment/{identity/index.ts => identity.ts} (100%) rename environment/{logging/index.ts => logging.ts} (92%) rename environment/{network/index.ts => network.ts} (97%) diff --git a/environment/cluster/index.ts b/environment/cluster.ts similarity index 94% rename from environment/cluster/index.ts rename to environment/cluster.ts index 2dab637..6f47b59 100644 --- a/environment/cluster/index.ts +++ b/environment/cluster.ts @@ -1,9 +1,9 @@ import { listManagedClusterUserCredentialsOutput, ManagedCluster } from '@pulumi/azure-native/containerservice' import { Provider } from '@pulumi/kubernetes' -import identity from '../identity' -import logging from '../logging' -import network from '../network' +import identity from './identity' +import logging from './logging' +import network from './network' type Options = { identity: Awaited>, diff --git a/environment/github-secrets/index.ts b/environment/github-secrets.ts similarity index 92% rename from environment/github-secrets/index.ts rename to environment/github-secrets.ts index 9f4f6bd..5ffe341 100644 --- a/environment/github-secrets/index.ts +++ b/environment/github-secrets.ts @@ -2,7 +2,7 @@ import { ActionsOrganizationSecret } from '@pulumi/github' import * as environment from '~/helpers/environment' -import cluster from '../cluster' +import cluster from './cluster' type Options = { cluster: Awaited>, diff --git a/environment/identity/index.ts b/environment/identity.ts similarity index 100% rename from environment/identity/index.ts rename to environment/identity.ts diff --git a/environment/logging/index.ts b/environment/logging.ts similarity index 92% rename from environment/logging/index.ts rename to environment/logging.ts index 98b8531..8a7bd15 100644 --- a/environment/logging/index.ts +++ b/environment/logging.ts @@ -1,6 +1,6 @@ import { Workspace } from '@pulumi/azure-native/operationalinsights' -import identity from '../identity' +import identity from './identity' type Options = { identity: Awaited>, diff --git a/environment/network/index.ts b/environment/network.ts similarity index 97% rename from environment/network/index.ts rename to environment/network.ts index d53d466..0482bd9 100644 --- a/environment/network/index.ts +++ b/environment/network.ts @@ -3,7 +3,7 @@ import { Subnet, VirtualNetwork } from '@pulumi/azure-native/network' import azure from '~/helpers/azure' -import identity from '../identity' +import identity from './identity' type Options = { azure: Awaited>,