config-loader: move transform/ into sources/
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
/*
|
||||
* Copyright 2020 The Backstage Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { applyConfigTransforms } from './apply';
|
||||
export { createIncludeTransform } from './include';
|
||||
export { createSubstitutionTransform } from './substitution';
|
||||
@@ -25,7 +25,7 @@ import { RemoteConfigSource } from './RemoteConfigSource';
|
||||
import { ConfigSource } from './types';
|
||||
import { ObservableConfigProxy } from './ObservableConfigProxy';
|
||||
import { LoadConfigOptionsRemote } from '../loader';
|
||||
import { EnvFunc } from '../lib/transform/types';
|
||||
import { EnvFunc } from './transform';
|
||||
|
||||
export class ConfigSources {
|
||||
static parseArgs(
|
||||
|
||||
@@ -24,8 +24,8 @@ import {
|
||||
ConfigSourceData,
|
||||
ReadConfigDataOptions,
|
||||
} from './types';
|
||||
import { createConfigTransformer } from '../lib/transform/apply';
|
||||
import { EnvFunc } from '../lib/transform/types';
|
||||
import { createConfigTransformer } from './transform';
|
||||
import { EnvFunc } from './transform';
|
||||
|
||||
export interface FileConfigSourceOptions {
|
||||
/**
|
||||
|
||||
@@ -19,11 +19,8 @@ import { JsonObject } from '@backstage/types';
|
||||
import isEqual from 'lodash/isEqual';
|
||||
import fetch from 'node-fetch';
|
||||
import yaml from 'yaml';
|
||||
import {
|
||||
ConfigTransformer,
|
||||
createConfigTransformer,
|
||||
} from '../lib/transform/apply';
|
||||
import { EnvFunc } from '../lib/transform/types';
|
||||
import { ConfigTransformer, createConfigTransformer } from './transform';
|
||||
import { EnvFunc } from './transform/types';
|
||||
import {
|
||||
AsyncConfigSourceIterator,
|
||||
ConfigSource,
|
||||
|
||||
+8
-3
@@ -14,6 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { readEnvConfig } from './env';
|
||||
export * from './transform';
|
||||
export * from './schema';
|
||||
export { createConfigTransformer } from './apply';
|
||||
export type { ConfigTransformer } from './apply';
|
||||
export type {
|
||||
EnvFunc,
|
||||
ReadFileFunc,
|
||||
TransformContext,
|
||||
TransformFunc,
|
||||
} from './types';
|
||||
Reference in New Issue
Block a user