code: function fixDemoModuleTs(module, demoFolder) {
      // @NgModule()里必须包含一个exports，用于将组件暴露给上级组件
      var comp = findExportsComponent(module.code);
      if (!comp) {
          console.error('ERROR: need a "exports" property in the module code, ' +
                      'and the value of which should contains only one component!');
          console.error(`       module path=${demoFolder}`);
          process.exit(1);
      }
  
      // 删除 JigsawDemoDescriptionModule 相关的东西
      module.code = module.code.replace(/import\s*{\s*JigsawDemoDescriptionModule\s*}\s*from.*\r?\n/, '');
      module.code = module.code.replace(/\bJigsawDemoDescriptionModule\b\s*,?/g, '');
  }
docs: 转变demo.module.ts文件