rnassist 1.0.2 → 1.0.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.
Files changed (2) hide show
  1. package/metro.js +4 -5
  2. package/package.json +1 -1
package/metro.js CHANGED
@@ -11,14 +11,13 @@ function getDebuggerUrl() {
11
11
  if (list.length > 0) {
12
12
  resolve(list[0].webSocketDebuggerUrl);
13
13
  } else {
14
- console.log(
15
- chalk.red(
16
- "Metro is not running. Start your app first with 'npx expo start' or 'npx react-native start'",
17
- ),
18
- );
14
+ console.log("No devices found. Make sure your app is running on iOS or Android, not web.");
19
15
  process.exit(1);
20
16
  }
21
17
  });
18
+ }).on('error', () => {
19
+ console.log("Metro is not running. Start your app first with 'npx expo start' or 'npx react-native start'");
20
+ process.exit(1);
22
21
  });
23
22
  });
24
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rnassist",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "AI-powered debugger and performance analyzer for React Native projects",
5
5
  "main": "index.js",
6
6
  "scripts": {