repofence 0.1.2 → 0.1.4

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/dist/cli.js CHANGED
@@ -43,6 +43,8 @@ const env_loader_1 = require("./core/env-loader");
43
43
  const commander_1 = require("commander");
44
44
  const process = __importStar(require("process"));
45
45
  const chalk_1 = __importDefault(require("chalk"));
46
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
47
+ const { version } = require('../package.json');
46
48
  // Enable colors if stdout is a TTY or FORCE_COLOR is set
47
49
  // This ensures colors work in most terminals (iTerm2, Terminal.app, VS Code, etc.)
48
50
  const supportsColor = process.stdout.isTTY || process.env.FORCE_COLOR === '1' || process.env.FORCE_COLOR === 'true';
@@ -58,7 +60,7 @@ const program = new commander_1.Command();
58
60
  program
59
61
  .name('repofence')
60
62
  .description('Repofence CLI (packs + backend auth)')
61
- .version('0.1.0');
63
+ .version(version);
62
64
  // Global options
63
65
  program
64
66
  .option('-v, --verbose', 'enable verbose logging')
@@ -17,13 +17,13 @@ const promptToken = async () => {
17
17
  };
18
18
  const authCommand = async (_cwd, options) => {
19
19
  if (options.web) {
20
- const authBase = process.env.REPOFENCE_AUTH_URL || 'https://repofence.com/login';
20
+ const authBase = process.env.REPOFENCE_AUTH_URL || 'https://repofence.com/pricing';
21
21
  const state = Math.random().toString(36).slice(2, 10);
22
22
  const url = `${authBase}?state=${encodeURIComponent(state)}`;
23
23
  console.log('\n' + chalk_1.default.bold('='.repeat(60)));
24
24
  console.log(chalk_1.default.bold('repofence — Get your license'));
25
25
  console.log(chalk_1.default.bold('='.repeat(60)));
26
- console.log('\nOpening your browser to:\n ' + chalk_1.default.underline(url) + '\n');
26
+ console.log('\nOpening your browser to:\n ' + chalk_1.default.underline(authBase) + '\n');
27
27
  await (0, open_1.default)(url, { wait: false });
28
28
  console.log(chalk_1.default.dim('─'.repeat(60)));
29
29
  console.log(chalk_1.default.bold('Next steps:\n'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repofence",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Repofence CLI (packs + backend auth)",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {
@@ -28,6 +28,7 @@
28
28
  "commander": "^11.1.0",
29
29
  "dotenv": "^16.4.5",
30
30
  "open": "^11.0.0",
31
+ "repofence": "^0.1.2",
31
32
  "tar": "^6.2.1"
32
33
  },
33
34
  "devDependencies": {