16 lines
357 B
TypeScript
16 lines
357 B
TypeScript
import {
|
|
Rule,
|
|
Tree,
|
|
SchematicContext,
|
|
chain
|
|
} from '@angular-devkit/schematics';
|
|
import { updateJsonInTree } from '@nrwl/workspace';
|
|
|
|
export default function(): Rule {
|
|
return updateJsonInTree('package.json', packageJson => {
|
|
packageJson.scripts['affected:lint'] =
|
|
'./node_modules/.bin/nx affected:lint';
|
|
return packageJson;
|
|
});
|
|
}
|