@liorian/cli 0.12.0-alpha.2 → 0.20.0-alpha.1

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/lib/install.js +5 -4
  2. package/package.json +7 -6
package/lib/install.js CHANGED
@@ -9,8 +9,9 @@ const path = require("path");
9
9
  const https = require("https");
10
10
  const http = require("http");
11
11
 
12
- const REPO = "protorians/liorian-cli";
12
+ const REPO = "protorians/lior-cli";
13
13
  const BINARY_NAME = "liorian";
14
+ const ARCHIVE_PREFIX = "lior-cli";
14
15
 
15
16
  function getOsToken() {
16
17
  const platform = os.platform();
@@ -31,7 +32,7 @@ function getUserAgent() {
31
32
  const pkg = require("../package.json");
32
33
  // `Node/<version>` is the engine token of Node's core `http`/`https`
33
34
  // package; `Senteints/<version>` is the CLI.
34
- return `Protorians/5.0 (${getOsToken()}) Node/${process.version.slice(1)} Senteints/${pkg.version}`;
35
+ return `protorians/5.0 (${getOsToken()}) Node/${process.version.slice(1)} Senteints/${pkg.version}`;
35
36
  }
36
37
 
37
38
  const PLATFORM_MAP = {
@@ -72,7 +73,7 @@ function getPlatform() {
72
73
 
73
74
  function getDownloadUrl(version, platform) {
74
75
  const archiveVersion = version.replace(/^v/, "");
75
- const archiveName = `${BINARY_NAME}-cli_${archiveVersion}_${platform.triple}.${platform.ext}`;
76
+ const archiveName = `${ARCHIVE_PREFIX}_${archiveVersion}_${platform.triple}.${platform.ext}`;
76
77
  return `https://github.com/${REPO}/releases/download/${version}/${archiveName}`;
77
78
  }
78
79
 
@@ -111,7 +112,7 @@ async function main() {
111
112
  const version = getVersion();
112
113
  const platform = getPlatform();
113
114
  const binDir = path.join(__dirname, "..", "bin");
114
- const tmpDir = path.join(os.tmpdir(), `liorian-install-${Date.now()}`);
115
+ const tmpDir = path.join(os.tmpdir(), `lorian-install-${Date.now()}`);
115
116
 
116
117
  console.log(`Installing @liorian/cli ${version} for ${platform.triple}...`);
117
118
 
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@liorian/cli",
3
- "version": "0.12.0-alpha.2",
4
- "description": "Liorian CLI - Create, maintain, and publish modules in the Liorian ecosystem",
3
+ "version": "0.20.0-alpha.1",
4
+ "description": "Lior CLI - Create, maintain, and publish modules in the Liorian ecosystem",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/protorians/liorian-cli.git",
9
- "directory": "npm/liorian-cli"
8
+ "url": "https://github.com/protorians/lior-cli.git",
9
+ "directory": "npm/lior-cli"
10
10
  },
11
- "homepage": "https://github.com/protorians/liorian-cli#readme",
11
+ "homepage": "https://github.com/protorians/lior-cli#readme",
12
12
  "bugs": {
13
- "url": "https://github.com/protorians/liorian-cli/issues"
13
+ "url": "https://github.com/protorians/lior-cli/issues"
14
14
  },
15
15
  "bin": {
16
16
  "liorian": "bin/liorian"
@@ -23,6 +23,7 @@
23
23
  "lib"
24
24
  ],
25
25
  "keywords": [
26
+ "lior",
26
27
  "liorian",
27
28
  "cli",
28
29
  "module",