We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1ad8dd4 + 3a38fdd commit 21eca8cCopy full SHA for 21eca8c
libs/ddd/src/schematics/utils/update-dep-const.ts
@@ -31,8 +31,8 @@ export function updateDepConst(
31
}
32
33
const text = host.read(filePath).toString();
34
- let rules = JSON.parse(text);
35
-
+ const json = JSON.parse(text);
+ let rules = json;
36
if (rules['overrides']) {
37
const overrides = rules['overrides'];
38
rules = overrides.find(
@@ -45,6 +45,6 @@ export function updateDepConst(
45
const depConst = rules['rules'][rule][1]['depConstraints'] as Array<object>;
46
update(depConst);
47
48
- const newText = JSON.stringify(rules, undefined, 2);
+ const newText = JSON.stringify(json, undefined, 2);
49
host.overwrite(filePath, newText);
50
0 commit comments