Skip to content

Commit 9a5c2a8

Browse files
committed
bugfix: eslint was modified worngly
1 parent 945ba61 commit 9a5c2a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libs/ddd/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular-architects/ddd",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"license": "MIT",
55
"author": "Manfred Steyer",
66
"description": "Nx plugin for structuring a monorepo with domains and layers",

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export function updateDepConst(
2525
}
2626

2727
const text = host.read(filePath).toString();
28-
let rules = JSON.parse(text);
29-
28+
const json = JSON.parse(text);
29+
let rules = json;
3030
if (rules['overrides']) {
3131
const overrides = rules['overrides'];
3232
rules = overrides.find(e => e.rules && e.rules['@nrwl/nx/enforce-module-boundaries']);
@@ -37,6 +37,6 @@ export function updateDepConst(
3737
const depConst = rules['rules'][rule][1]['depConstraints'] as Array<object>;
3838
update(depConst);
3939

40-
const newText = JSON.stringify(rules, undefined, 2);
40+
const newText = JSON.stringify(json, undefined, 2);
4141
host.overwrite(filePath, newText);
4242
}

0 commit comments

Comments
 (0)