You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/ionic/state.js
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -33,8 +33,8 @@ var fs = require('fs'),
33
33
shelljs=require('shelljs'),
34
34
Task=require('./task').Task,
35
35
_=require('underscore'),
36
-
IonicProject=require('./project'),
37
36
IonicAppLib=require('ionic-app-lib'),
37
+
IonicProject=IonicAppLib.project,
38
38
State=IonicAppLib.state,
39
39
Utils=IonicAppLib.utils,
40
40
IonicInfo=IonicAppLib.info;
@@ -56,13 +56,13 @@ IonicTask.prototype.run = function run(ionic, argv) {
56
56
57
57
this.ionic=ionic;
58
58
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');
0 commit comments