please-release-please 0.0.0 → 0.1.0
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/prp.js +3 -3
- package/package.json +1 -1
package/bin/prp.js
CHANGED
|
@@ -5,13 +5,13 @@ const { spawnSync } = require('node:child_process');
|
|
|
5
5
|
const os = require('node:os');
|
|
6
6
|
const path = require('node:path');
|
|
7
7
|
|
|
8
|
-
const { version } = require('../package.json');
|
|
8
|
+
const { name, version } = require('../package.json');
|
|
9
9
|
|
|
10
10
|
function binaryPath() {
|
|
11
11
|
if (process.env.PRP_BINARY) {
|
|
12
12
|
return process.env.PRP_BINARY;
|
|
13
13
|
}
|
|
14
|
-
const platform =
|
|
14
|
+
const platform = `${name}-${process.platform}-${process.arch}`;
|
|
15
15
|
let manifestPath;
|
|
16
16
|
try {
|
|
17
17
|
manifestPath = require.resolve(`${platform}/package.json`);
|
|
@@ -22,7 +22,7 @@ function binaryPath() {
|
|
|
22
22
|
}
|
|
23
23
|
const manifest = require(manifestPath);
|
|
24
24
|
if (manifest.version !== version) {
|
|
25
|
-
throw new Error(`${platform}@${manifest.version} does not match
|
|
25
|
+
throw new Error(`${platform}@${manifest.version} does not match ${name}@${version}; reinstall ${name}.`);
|
|
26
26
|
}
|
|
27
27
|
const executable = process.platform === 'win32' ? 'prp.exe' : 'prp';
|
|
28
28
|
return path.join(path.dirname(manifestPath), 'bin', executable);
|
package/package.json
CHANGED