@cenk1cenk2/oclif-common 3.0.3 → 3.0.4
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.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -204,7 +204,7 @@ declare class ConfigService implements GlobalConfig {
|
|
|
204
204
|
constructor(oclif: Command['config'], command: Command['ctor'], config: Omit<GlobalConfig, 'isVerbose' | 'isDebug' | 'isSilent'>);
|
|
205
205
|
read<T extends LockableData = LockableData>(path: string): Promise<T>;
|
|
206
206
|
extend<T extends LockableData = LockableData>(paths: string[], strategy?: MergeStrategy): Promise<T>;
|
|
207
|
-
merge<T extends LockableData = LockableData>(configs: Partial<T>[], strategy?: MergeStrategy):
|
|
207
|
+
merge<T extends LockableData = LockableData>(configs: Partial<T>[], strategy?: MergeStrategy): T;
|
|
208
208
|
env<T extends LockableData = LockableData>(definition: string, config: T): Promise<T>;
|
|
209
209
|
write<T extends LockableData = LockableData>(path: string, data: T): Promise<void>;
|
|
210
210
|
private recalculate;
|
package/dist/index.js
CHANGED
|
@@ -631,7 +631,7 @@ var ConfigService = class {
|
|
|
631
631
|
)).filter(Boolean);
|
|
632
632
|
return this.merge(configs, strategy);
|
|
633
633
|
}
|
|
634
|
-
|
|
634
|
+
merge(configs, strategy = "OVERWRITE" /* OVERWRITE */) {
|
|
635
635
|
if (configs.length === 0) {
|
|
636
636
|
throw new Error("Nothing to merge, configuration files are empty.");
|
|
637
637
|
}
|