Skip to content

Commit ba6e919

Browse files
committed
add init/upgrade to package.json
1 parent d62b786 commit ba6e919

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

bin/db

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ if (command === 'init') {
8888
}
8989
if (version_no == '0.2.15') {
9090
console.log('Everything up-to-date.');
91-
process.exit(1);
91+
process.exit(0);
9292
}
9393
var allSqlFile = [
9494
{version:'0.2.14', 'path':path.resolve(__dirname, '../sql/codepush-v0.2.14.sql')},

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929
"npm": ">= 3.10.8"
3030
},
3131
"scripts": {
32-
"start": "node ./bin/www",
3332
"dev": "supervisor ./bin/www",
33+
"start": "node ./bin/www",
34+
"init": "node ./bin/db init",
35+
"upgrade": "node ./bin/db upgrade",
3436
"test": "make test",
3537
"test-win": "mocha test/api/init test/api/users test/api/auth test/api/account test/api/accessKeys test/api/sessions test/api/apps test/api/index --recursive --timeout 15000",
3638
"coverage": "make coverage"

0 commit comments

Comments
 (0)