Skip to content

Commit 21eca8c

Browse files
Merge branch 'master' into feature/add-directory-support
2 parents 1ad8dd4 + 3a38fdd commit 21eca8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libs/ddd/src/schematics/utils/update-dep-const.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export function updateDepConst(
3131
}
3232

3333
const text = host.read(filePath).toString();
34-
let rules = JSON.parse(text);
35-
34+
const json = JSON.parse(text);
35+
let rules = json;
3636
if (rules['overrides']) {
3737
const overrides = rules['overrides'];
3838
rules = overrides.find(
@@ -45,6 +45,6 @@ export function updateDepConst(
4545
const depConst = rules['rules'][rule][1]['depConstraints'] as Array<object>;
4646
update(depConst);
4747

48-
const newText = JSON.stringify(rules, undefined, 2);
48+
const newText = JSON.stringify(json, undefined, 2);
4949
host.overwrite(filePath, newText);
5050
}

0 commit comments

Comments
 (0)