nx/packages/schematics/migrations/20171129-change-schema.ts
2017-12-01 11:37:13 -05:00

11 lines
313 B
TypeScript

import { updateJsonFile } from '../src/collection/utility/fileutils';
export default {
description: 'Update the schema file to point to the nrwl schema.',
run: () => {
updateJsonFile('.angular-cli.json', json => {
json['$schema'] = './node_modules/@nrwl/schematics/src/schema.json';
});
}
};