hunk.code_window:     parentFolders = splitPath.join(path.sep);
     }
     if (baseModuleName.includes('.')) {
       baseModuleName = baseModuleName
         .split('.')
         .filter(part => part !== 'module' && part !== 'ts')
         .join('.');
     }
     const baseModuleWithFileSuffix = `${baseModuleName}.module.ts`;
  
hunk.labels: keep keep keep keep replace replace replace replace keep keep keep keep
hunk.after_edit:     baseModuleName = baseModuleName.replace(/(\.module)?(\.ts)?$/, '');
  
hunk.file_path: packages/@angular/cli/utilities/resolve-module-file.ts
hunk.type: replace
file: 'use strict';
  
  var Blueprint     = require('../models/blueprint');
  var Task          = require('../models/task');
  var Promise       = require('../ext/promise');
  var temp          = require('temp');
  var childProcess  = require('child_process');
  var path          = require('path');
  var merge         = require('lodash/merge');
  
  var mkdir = Promise.denodeify(temp.mkdir);
  var exec = Promise.denodeify(childProcess.exec);
  
  module.exports = Task.extend({
    run: function(options) {
      var cwd             = process.cwd();
      var name            = options.rawName;
      var blueprintOption = options.blueprint;
      // If we're in a dry run, pretend we changed directories.
      // Pretending we cd'd avoids prompts in the actual current directory.
      var fakeCwd         = path.join(cwd, name);
      var target          = options.dryRun ? fakeCwd : cwd;
  
      var installOptions = {
        target: target,
        entity: { name: name },
        ui: this.ui,
        project: this.project,
        dryRun: options.dryRun,
        targetFiles: options.targetFiles,
        rawArgs: options.rawArgs
      };
  
      installOptions = merge(installOptions, options || {});
  
      var blueprintName = blueprintOption || 'app';
      var blueprint = Blueprint.lookup(blueprintName, {
        paths: this.project.blueprintLookupPaths()
      });
      return blueprint.install(installOptions);
    }
  });
  