Patch#all option to patch duplicate modules (#99)
This commit is contained in:
parent
bf49acd535
commit
87b6d6ab12
@ -12,8 +12,9 @@ export interface PatchReplacement {
|
||||
|
||||
export interface Patch {
|
||||
plugin: string;
|
||||
find: string,
|
||||
find: string;
|
||||
replacement: PatchReplacement | PatchReplacement[];
|
||||
all?: boolean;
|
||||
}
|
||||
|
||||
export interface PluginAuthor {
|
||||
|
@ -127,7 +127,7 @@ function patchPush() {
|
||||
patchedBy.delete(patch.plugin);
|
||||
}
|
||||
}
|
||||
patches.splice(i--, 1);
|
||||
if (!patch.all) patches.splice(i--, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user