getaimeter 0.1.0 → 0.1.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.
- package/package.json +1 -1
- package/service.js +4 -4
- package/update-check.js +1 -1
package/package.json
CHANGED
package/service.js
CHANGED
|
@@ -35,7 +35,7 @@ function getWatcherScript() {
|
|
|
35
35
|
const { execSync } = require('child_process');
|
|
36
36
|
try {
|
|
37
37
|
const globalBin = execSync('npm root -g', { encoding: 'utf8' }).trim();
|
|
38
|
-
const globalCli = path.join(globalBin, '
|
|
38
|
+
const globalCli = path.join(globalBin, 'getaimeter', 'cli.js');
|
|
39
39
|
if (fs.existsSync(globalCli)) return globalCli;
|
|
40
40
|
} catch {}
|
|
41
41
|
|
|
@@ -45,13 +45,13 @@ function getWatcherScript() {
|
|
|
45
45
|
console.log('');
|
|
46
46
|
try {
|
|
47
47
|
const { execSync: ex } = require('child_process');
|
|
48
|
-
ex('npm install -g
|
|
48
|
+
ex('npm install -g getaimeter', { stdio: 'inherit' });
|
|
49
49
|
const globalBin = ex('npm root -g', { encoding: 'utf8' }).trim();
|
|
50
|
-
const globalCli = path.join(globalBin, '
|
|
50
|
+
const globalCli = path.join(globalBin, 'getaimeter', 'cli.js');
|
|
51
51
|
if (fs.existsSync(globalCli)) return globalCli;
|
|
52
52
|
} catch {
|
|
53
53
|
console.log(' Could not install globally. Install manually:');
|
|
54
|
-
console.log(' npm install -g
|
|
54
|
+
console.log(' npm install -g getaimeter');
|
|
55
55
|
console.log(' Then run: aimeter install');
|
|
56
56
|
}
|
|
57
57
|
}
|
package/update-check.js
CHANGED
|
@@ -68,7 +68,7 @@ function showUpdateMessage(latest) {
|
|
|
68
68
|
const current = getCurrentVersion();
|
|
69
69
|
console.log('');
|
|
70
70
|
console.log(` Update available: ${current} → ${latest}`);
|
|
71
|
-
console.log(` Run: npm update -g
|
|
71
|
+
console.log(` Run: npm update -g getaimeter`);
|
|
72
72
|
console.log('');
|
|
73
73
|
}
|
|
74
74
|
|