@yaoxfly/cli 1.0.3 → 1.0.4

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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  无感知下载模板,无需安装`@yaoxfly/cli`。
8
8
 
9
9
  ```
10
- npx @yaoxfly/cli create [工程名]
10
+ npx @yaoxfly/cli@latest create [工程名]
11
11
 
12
12
  ```
13
13
 
package/bin/create.js CHANGED
@@ -49,7 +49,7 @@ const tips = (param) => {
49
49
  console.log(log_symbols_1.default.success, chalk_1.default.green('The project is initialized'));
50
50
  console.log('\n To get started');
51
51
  console.log(`\n cd ${projectName}`);
52
- !install && console.log(`\n ${installMode} i`);
52
+ !install && console.log(`\n ${installMode} install`);
53
53
  console.log(`\n ${installMode === 'yarn' ? 'yarn dev' : `${installMode} run dev`} `);
54
54
  };
55
55
  const create = (projectName, options) => __awaiter(void 0, void 0, void 0, function* () {
@@ -132,10 +132,10 @@ const create = (projectName, options) => __awaiter(void 0, void 0, void 0, funct
132
132
  spinner.succeed();
133
133
  if (install) {
134
134
  const stdout = yield (0, utils_1.shellExec)({
135
- directive: `${installMode} i`,
135
+ directive: `${installMode} install --force`,
136
136
  cwd: projectName,
137
137
  loading: 'Install...',
138
- log: `${installMode} i`
138
+ log: `${installMode} install`
139
139
  });
140
140
  console.log(stdout);
141
141
  tips({ projectName, install, installMode });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaoxfly/cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "脚手架工具,开箱即用",
5
5
  "main": "bin",
6
6
  "private": false,
package/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "1.0.3"
2
+ "version": "1.0.4"
3
3
  }