Skip to content

Commit 984f46f

Browse files
committed
fix(state): fix state
1 parent 89f560b commit 984f46f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/ionic/state.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ var fs = require('fs'),
3333
shelljs = require('shelljs'),
3434
Task = require('./task').Task,
3535
_ = require('underscore'),
36-
IonicProject = require('./project'),
3736
IonicAppLib = require('ionic-app-lib'),
37+
IonicProject = IonicAppLib.project,
3838
State = IonicAppLib.state,
3939
Utils = IonicAppLib.utils,
4040
IonicInfo = IonicAppLib.info;
@@ -56,13 +56,13 @@ IonicTask.prototype.run = function run(ionic, argv) {
5656

5757
this.ionic = ionic;
5858

59-
try {
60-
projectPath = path.resolve('ionic.project');
61-
stats = fs.statSync(projectPath);
62-
} catch (ex) {
63-
this.ionic.fail('You cannot run any state commands on a project that is not an Ionic project.\nTry adding an ionic.project file or running ionic start to get an application to save or restore');
64-
return;
65-
}
59+
// try {
60+
// projectPath = path.resolve('ionic.project');
61+
// stats = fs.statSync(projectPath);
62+
// } catch (ex) {
63+
// this.ionic.fail('You cannot run any state commands on a project that is not an Ionic project.\nTry adding an ionic.project file or running ionic start to get an application to save or restore');
64+
// return;
65+
// }
6666

6767
try {
6868
project = IonicProject.load();

0 commit comments

Comments
 (0)