cmyr-template-cli 1.13.0 → 1.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
13
13
 
14
14
  const program = new commander.Command('ct')
15
15
  .description('草梅项目创建器');
16
- program.version("1.12.5" , '-v, --version');
16
+ program.version("1.13.0" , '-v, --version');
17
17
  const args = process.argv.slice(2);
18
18
  if (args.length === 0) {
19
19
  args.push('create');
package/dist/plopfile.js CHANGED
@@ -99,7 +99,7 @@ async function getFastGitRepo(repository) {
99
99
  }
100
100
  async function asyncExec(cmd, options) {
101
101
  return new Promise((resolve, reject) => {
102
- child_process.exec(cmd, options, (err, stdout, stderr) => {
102
+ const ls = child_process.exec(cmd, options, (err, stdout, stderr) => {
103
103
  if (err) {
104
104
  return reject(err);
105
105
  }
@@ -108,6 +108,12 @@ async function asyncExec(cmd, options) {
108
108
  }
109
109
  resolve(stdout);
110
110
  });
111
+ ls.stdout.on('data', (data) => {
112
+ console.log(data);
113
+ });
114
+ ls.stderr.on('data', (data) => {
115
+ console.log(colors__default["default"].red(data));
116
+ });
111
117
  });
112
118
  }
113
119
  async function initProject(answers) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmyr-template-cli",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "草梅友仁自制的项目模板创建器",
5
5
  "author": "CaoMeiYouRen",
6
6
  "license": "MIT",