@npm_akash/rn-package-installer 1.0.4 → 1.0.5

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/bin/cli.js +5 -8
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  import chalk from "chalk";
2
4
  import { getUserChoices } from "../src/prompts.js";
3
5
  import { installPackages } from "../src/installer.js";
@@ -10,20 +12,15 @@ console.log(chalk.cyan.bold("\nšŸš€ RN Package Installer\n"));
10
12
  await getUserChoices();
11
13
 
12
14
  if (!selectedPackages || selectedPackages.length === 0) {
13
- console.log(chalk.yellow("No packages selected. Exiting."));
15
+ console.log("No packages selected. Exiting.");
14
16
  return;
15
17
  }
16
18
 
17
19
  await installPackages(selectedPackages, packageManager);
18
20
 
19
- console.log(
20
- chalk.green.bold("\nāœ” Packages installation complete!\n")
21
- );
21
+ console.log(chalk.green("\nāœ” Packages installation complete!\n"));
22
22
  } catch (err) {
23
- console.error(
24
- chalk.red("\nāŒ Error occurred:\n"),
25
- err?.message || err
26
- );
23
+ console.error("āŒ Error:", err?.message || err);
27
24
  process.exit(1);
28
25
  }
29
26
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_akash/rn-package-installer",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Interactive package installer for React and React Native",
5
5
  "type": "module",
6
6
  "main": "bin/cli.js",