Skip to content

Commit 391e0af

Browse files
author
sky
committed
fix: npm bin file missing and start to run
1 parent 17347d7 commit 391e0af

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bin/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const cliFilePath = path.join(process.cwd(), 'node_modules', '@easy-team/res-cli
88
// fix when production mode, ves-cli not exists, start app error by ves start
99
if (fs.existsSync(cliFilePath)) {
1010
const ResCLI = require(cliFilePath);
11-
new ResCLI.Command().start();
11+
new ResCLI.Command().run();
1212
} else {
1313
new EggScriptCommand().start();
1414
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@easy-team/res",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "A Powerful, Simple Node React Web Framework",
55
"dependencies": {
66
"egg": "^2.3.0",
@@ -56,6 +56,7 @@
5656
"files": [
5757
"index.js",
5858
"lib",
59+
"bin",
5960
"app",
6061
"config",
6162
"app.js",

0 commit comments

Comments
 (0)