heroui-native-pro 1.0.0-alpha.4 → 1.0.0-alpha.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heroui-native-pro",
3
- "version": "1.0.0-alpha.4",
3
+ "version": "1.0.0-alpha.6",
4
4
  "description": "HeroUI React Native",
5
5
  "license": "UNLICENSED",
6
6
  "author": "HeroUI",
@@ -17,6 +17,20 @@ if (!PKG_ROOT.includes('node_modules')) {
17
17
  const product = PRODUCTS['react-native'];
18
18
  const chalk = new Chalk({ level: 3 });
19
19
 
20
+ const printLoginPrompt = () => {
21
+ console.log(chalk.yellow.bold(`\nSign in to finish installing ${product.name}.\n`));
22
+ console.log(
23
+ chalk.yellow(
24
+ `Run:\n\n` +
25
+ ` ${chalk.bold('npx heroui-pro login')}\n\n` +
26
+ `Then re-run install, or:\n\n` +
27
+ ` ${chalk.bold('npx heroui-pro install')}\n\n` +
28
+ `For CI/CD, set the ${chalk.bold.underline(HEROUI_AUTH_TOKEN)} environment variable.\n` +
29
+ `Need a license? Visit ${chalk.bold.underline(HEROUI_WEB_URL)}.\n`,
30
+ ),
31
+ );
32
+ };
33
+
20
34
  const main = async () => {
21
35
  const ciToken = getCIToken();
22
36
 
@@ -30,7 +44,10 @@ const main = async () => {
30
44
  return await downloadFromCLI(product, PKG_ROOT);
31
45
  }
32
46
 
33
- throw new Error('No credentials found');
47
+ // No credentials yet — expected first-run state. Exit cleanly so `npm install`
48
+ // succeeds and the user can run `npx heroui-pro login` to finish setup.
49
+ printLoginPrompt();
50
+ process.exit(0);
34
51
  };
35
52
 
36
53
  main().catch(error => {