@peer-agent/cli 0.0.1-beta.41 → 0.0.1-beta.44
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/bin/peer.js +1 -1
- package/lib/platform.mjs +1 -1
- package/package.json +4 -4
- package/scripts/postinstall.mjs +1 -1
package/bin/peer.js
CHANGED
|
@@ -29,7 +29,7 @@ if (!existsSync(binary) || !existsSync(helper)) {
|
|
|
29
29
|
'or set PEER_AGENT_RELEASE_URL to a direct archive URL and reinstall.',
|
|
30
30
|
'',
|
|
31
31
|
'Manual fallback: download peer-*-*.tar.gz from',
|
|
32
|
-
' https://github.com/
|
|
32
|
+
' https://github.com/ly-ccx/Peer-Agent/releases',
|
|
33
33
|
'and keep peer + peer-credential-helper in the same directory.',
|
|
34
34
|
].join('\n'),
|
|
35
35
|
);
|
package/lib/platform.mjs
CHANGED
|
@@ -57,7 +57,7 @@ export function resolvePlatformTarget(platform = process.platform, arch = proces
|
|
|
57
57
|
* @param {{ owner?: string, repo?: string }} [opts]
|
|
58
58
|
*/
|
|
59
59
|
export function releaseAssetUrl(version, target, opts = {}) {
|
|
60
|
-
const owner = opts.owner ?? process.env.PEER_AGENT_GITHUB_OWNER ?? '
|
|
60
|
+
const owner = opts.owner ?? process.env.PEER_AGENT_GITHUB_OWNER ?? 'ly-ccx';
|
|
61
61
|
const repo = opts.repo ?? process.env.PEER_AGENT_GITHUB_REPO ?? 'Peer-Agent';
|
|
62
62
|
const tag = version.startsWith('v') ? version : `v${version}`;
|
|
63
63
|
return `https://github.com/${owner}/${repo}/releases/download/${tag}/${target.archive}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peer-agent/cli",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.44",
|
|
4
4
|
"description": "Peer Agent CLI — install via npm; downloads the platform peer binary from GitHub Releases.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|
|
29
|
-
"url": "git+https://github.com/
|
|
29
|
+
"url": "git+https://github.com/ly-ccx/Peer-Agent.git",
|
|
30
30
|
"directory": "packages/npm-cli"
|
|
31
31
|
},
|
|
32
|
-
"homepage": "https://github.com/
|
|
32
|
+
"homepage": "https://github.com/ly-ccx/Peer-Agent#readme",
|
|
33
33
|
"bugs": {
|
|
34
|
-
"url": "https://github.com/
|
|
34
|
+
"url": "https://github.com/ly-ccx/Peer-Agent/issues"
|
|
35
35
|
},
|
|
36
36
|
"keywords": [
|
|
37
37
|
"peer-agent",
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -36,7 +36,7 @@ try {
|
|
|
36
36
|
console.error(`[@peer-agent/cli] postinstall failed: ${message}`);
|
|
37
37
|
console.error(
|
|
38
38
|
'[@peer-agent/cli] You can still install manually from GitHub Releases: ' +
|
|
39
|
-
`https://github.com/
|
|
39
|
+
`https://github.com/ly-ccx/Peer-Agent/releases/tag/v${version}`,
|
|
40
40
|
);
|
|
41
41
|
// Fail install so global users notice missing binaries instead of a broken `peer`.
|
|
42
42
|
process.exit(1);
|