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/*']
|
'@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');
|
runCLI('build --prod --outputHashing none');
|
||||||
checkFilesExist('dist/apps/proj/main.js');
|
checkFilesExist('dist/apps/proj/main.js');
|
||||||
});
|
});
|
||||||
|
|||||||
@ -410,7 +410,7 @@ function updateTsLint() {
|
|||||||
});
|
});
|
||||||
tslintJson.rulesDirectory = tslintJson.rulesDirectory || [];
|
tslintJson.rulesDirectory = tslintJson.rulesDirectory || [];
|
||||||
tslintJson.rulesDirectory.push('node_modules/@nrwl/schematics/src/tslint');
|
tslintJson.rulesDirectory.push('node_modules/@nrwl/schematics/src/tslint');
|
||||||
tslintJson['nx-enforce-module-boundaries'] = [
|
tslintJson.rules['nx-enforce-module-boundaries'] = [
|
||||||
true,
|
true,
|
||||||
{
|
{
|
||||||
allow: [],
|
allow: [],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user