config-loader: move transform logic into separate lib folder

This commit is contained in:
Patrik Oldsberg
2021-01-23 22:08:30 +01:00
parent 26a94cfac6
commit 011d736978
8 changed files with 20 additions and 3 deletions
+1 -2
View File
@@ -14,7 +14,6 @@
* limitations under the License.
*/
export { applyConfigTransforms } from './transform';
export { readEnvConfig } from './env';
export { createIncludeTransform } from './include';
export * from './transform';
export * from './schema';
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { applyConfigTransforms } from './transform';
import { applyConfigTransforms } from './apply';
describe('applyConfigTransforms', () => {
it('should apply not transforms to input', async () => {
@@ -0,0 +1,18 @@
/*
* Copyright 2020 Spotify AB
*
* 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';