UNPKG

@yolkai/nx-schematics

Version:

Extensible Dev Tools for Monorepos: Schematics

24 lines (21 loc) 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const schematics_1 = require("@angular-devkit/schematics"); const literals_1 = require("@angular-devkit/core/src/utils/literals"); const ast_utils_1 = require("@yolkai/nx-workspace/src/utils/ast-utils"); function displayInformation(host, context) { context.logger.info(literals_1.stripIndents `Prettier has been updated to 1.16.4 which has a lot of small improvements Formatting of your code might change as you are working on each file. Prettier will now format *.less files you can disable this by adding '*.less' to your .prettierignore Optional: You may want to run "npm run format" as part of this update to reformat all files in your workspace. You can also opt out of formatting in files by adding them to the .prettierignore file in the root of your workspace.`); } function default_1() { return schematics_1.chain([ ast_utils_1.addDepsToPackageJson({}, { prettier: '1.16.4' }), displayInformation ]); } exports.default = default_1;