@rankcli/cli 0.0.2 → 0.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.
package/dist/index.js CHANGED
@@ -1856,9 +1856,12 @@ async function fetchAndSaveSubscription() {
1856
1856
  }
1857
1857
  }
1858
1858
 
1859
+ // src/version.ts
1860
+ var VERSION = "0.0.3";
1861
+
1859
1862
  // src/index.ts
1860
1863
  var program = new import_commander.Command();
1861
- program.name("rankcli").description("RankCLI - Ship code, get ranked. SEO meets CI/CD.").version("0.0.1");
1864
+ program.name("rankcli").description("RankCLI - Ship code, get ranked. SEO meets CI/CD.").version(VERSION);
1862
1865
  program.command("login").description("Log in to your RankCLI account").option("-e, --email <email>", "Email address").option("-b, --browser", "Open browser for login").option("-t, --token <apiKey>", "API key for non-interactive authentication").action(login);
1863
1866
  program.command("logout").description("Log out of your RankCLI account").action(logout);
1864
1867
  program.command("whoami").description("Show current logged in user").action(whoami);
package/dist/index.mjs CHANGED
@@ -1868,9 +1868,12 @@ async function fetchAndSaveSubscription() {
1868
1868
  }
1869
1869
  }
1870
1870
 
1871
+ // src/version.ts
1872
+ var VERSION = "0.0.3";
1873
+
1871
1874
  // src/index.ts
1872
1875
  var program = new Command();
1873
- program.name("rankcli").description("RankCLI - Ship code, get ranked. SEO meets CI/CD.").version("0.0.1");
1876
+ program.name("rankcli").description("RankCLI - Ship code, get ranked. SEO meets CI/CD.").version(VERSION);
1874
1877
  program.command("login").description("Log in to your RankCLI account").option("-e, --email <email>", "Email address").option("-b, --browser", "Open browser for login").option("-t, --token <apiKey>", "API key for non-interactive authentication").action(login);
1875
1878
  program.command("logout").description("Log out of your RankCLI account").action(logout);
1876
1879
  program.command("whoami").description("Show current logged in user").action(whoami);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rankcli/cli",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "RankCLI - Ship code, get ranked. SEO meets CI/CD.",
5
5
  "homepage": "https://rankcli.dev",
6
6
  "main": "dist/index.js",
@@ -30,7 +30,7 @@
30
30
  "scripts": {
31
31
  "dev": "tsx watch src/index.ts",
32
32
  "build": "npm run build:checks && npm run build:wasm && npm run build:js",
33
- "build:js": "tsup src/index.ts src/wasm-engine.ts --format cjs,esm --dts",
33
+ "build:js": "npm run update-version && tsup src/index.ts src/wasm-engine.ts --format cjs,esm --dts",
34
34
  "build:checks": "cd ../agent-runtime && pnpm build:wasm",
35
35
  "build:wasm": "cd native && wasm-pack build --target nodejs --release && cp -r pkg ../wasm",
36
36
  "build:wasm:dev": "cd native && wasm-pack build --target nodejs --dev && mkdir -p ../wasm && cp -r pkg/* ../wasm/",
@@ -38,7 +38,8 @@
38
38
  "start": "node dist/index.js",
39
39
  "lint": "eslint src/",
40
40
  "test": "vitest run --passWithNoTests",
41
- "test:wasm": "node test-wasm.js"
41
+ "test:wasm": "node test-wasm.js",
42
+ "update-version": "node scripts/update-version.js"
42
43
  },
43
44
  "dependencies": {
44
45
  "@rankcli/agent-runtime": "^0.0.1",