fix(schematics): fix tslint rules for ngadd
This commit is contained in:
parent
67c4bdf4af
commit
47d99d49ba
@ -233,6 +233,15 @@ describe('Nrwl Convert to Nx Workspace', () => {
|
||||
'@projscope/*': ['libs/*']
|
||||
});
|
||||
|
||||
const updatedTslint = readJson('tslint.json');
|
||||
expect(updatedTslint.rules['nx-enforce-module-boundaries']).toEqual([
|
||||
true,
|
||||
{
|
||||
allow: [],
|
||||
depConstraints: [{ sourceTag: '*', onlyDependOnLibsWithTags: ['*'] }]
|
||||
}
|
||||
]);
|
||||
|
||||
runCLI('build --prod --outputHashing none');
|
||||
checkFilesExist('dist/apps/proj/main.js');
|
||||
});
|
||||
|
||||
@ -410,7 +410,7 @@ function updateTsLint() {
|
||||
});
|
||||
tslintJson.rulesDirectory = tslintJson.rulesDirectory || [];
|
||||
tslintJson.rulesDirectory.push('node_modules/@nrwl/schematics/src/tslint');
|
||||
tslintJson['nx-enforce-module-boundaries'] = [
|
||||
tslintJson.rules['nx-enforce-module-boundaries'] = [
|
||||
true,
|
||||
{
|
||||
allow: [],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user