@shun-js/shun-cli 0.3.2 → 0.3.3

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/bin/shun-start.js CHANGED
@@ -65,6 +65,11 @@ async function startServer(serverName, options) {
65
65
  const serverConfigPathIsExists = await isExists(serverConfigPath);
66
66
  debug(methodName, 'serverConfigPath', serverConfigPath);
67
67
  debug(methodName, 'serverConfigPathIsExists', serverConfigPathIsExists);
68
+ if (!serverConfigPathIsExists) {
69
+ console.log(cli.colors.red(`未找到对应配置文件:${serverConfigPath}`));
70
+ console.log();
71
+ return;
72
+ }
68
73
 
69
74
  // pm2
70
75
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shun-js/shun-cli",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "shun.js cli",
5
5
  "keywords": [
6
6
  "shun.js",
@@ -32,5 +32,5 @@
32
32
  "access": "public",
33
33
  "registry": "https://registry.npmjs.org/"
34
34
  },
35
- "gitHead": "4fa47fe5cf1b00acfe54f47af836101291093f06"
35
+ "gitHead": "c2d34db4559d60de157035ddb5899081847f09e9"
36
36
  }