diff --git a/src/library-split/index.spec.ts b/src/library-split/index.spec.ts index e86ee49..89a4211 100644 --- a/src/library-split/index.spec.ts +++ b/src/library-split/index.spec.ts @@ -309,7 +309,12 @@ describe('split', () => { describe('tsconfig', () => { function deletePathsFromTsconfig() { - const tsconfigContent = JSON.parse(appTree.readContent('tsconfig.json')); + const tsconfigContent = JSON.parse( + appTree + .read('tsconfig.json') + .toString() + .replace(/\/\*[\s\S]*?\*\/|([^:]|^)\/\/.*$/gm, '') + ); delete tsconfigContent.compilerOptions.paths; appTree.overwrite('tsconfig.json', JSON.stringify(tsconfigContent)); } diff --git a/src/subentry/index.ts b/src/subentry/index.ts index 104d5dd..c855801 100755 --- a/src/subentry/index.ts +++ b/src/subentry/index.ts @@ -15,7 +15,6 @@ import { strings } from '@angular-devkit/core'; import { parseName } from '@schematics/angular/utility/parse-name'; import { Schema as SubentryOptions } from './schema.model'; -import { ModuleOptions } from '@schematics/angular/utility/find-module'; export function generateSubentry(_options: SubentryOptions): Rule { return (tree: Tree, _context: SchematicContext) => {