bigpowers 2.74.5 → 2.74.6
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/.pi/package.json +1 -1
- package/CHANGELOG.md +7 -0
- package/bin/bigpowers.js +1 -5
- package/package.json +1 -1
package/.pi/package.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.74.6](https://github.com/danielvm-git/bigpowers/compare/v2.74.5...v2.74.6) (2026-07-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **install:** hoist pkg require to module scope ([e77d24a](https://github.com/danielvm-git/bigpowers/commit/e77d24aed50a0f048ab8df1c912aaef7aebdc285))
|
|
7
|
+
|
|
1
8
|
## [2.74.5](https://github.com/danielvm-git/bigpowers/compare/v2.74.4...v2.74.5) (2026-07-07)
|
|
2
9
|
|
|
3
10
|
|
package/bin/bigpowers.js
CHANGED
|
@@ -10,6 +10,7 @@ const path = require('path');
|
|
|
10
10
|
|
|
11
11
|
const ROOT = path.dirname(path.dirname(__filename));
|
|
12
12
|
const SKILLS_MARKER = path.join(os.homedir(), '.claude', 'skills', 'survey-context');
|
|
13
|
+
const pkg = require(path.join(ROOT, 'package.json'));
|
|
13
14
|
|
|
14
15
|
function isInstalled() {
|
|
15
16
|
try {
|
|
@@ -31,7 +32,6 @@ function run(cmd, cwd = ROOT) {
|
|
|
31
32
|
const cmd = process.argv[2];
|
|
32
33
|
|
|
33
34
|
if (cmd === 'setup' || cmd === 'install') {
|
|
34
|
-
const pkg = require(path.join(ROOT, 'package.json'));
|
|
35
35
|
console.log(`🚀 bigpowers v${pkg.version} — setting up...\n`);
|
|
36
36
|
run('bash scripts/sync-skills.sh');
|
|
37
37
|
run('bash scripts/install.sh');
|
|
@@ -42,7 +42,6 @@ if (cmd === 'setup' || cmd === 'install') {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
if (cmd === 'update') {
|
|
45
|
-
const pkg = require(path.join(ROOT, 'package.json'));
|
|
46
45
|
console.log(`🔄 Updating bigpowers v${pkg.version}...\n`);
|
|
47
46
|
run('bash scripts/sync-skills.sh');
|
|
48
47
|
run('bash scripts/install.sh');
|
|
@@ -52,7 +51,6 @@ if (cmd === 'update') {
|
|
|
52
51
|
|
|
53
52
|
if (cmd === 'status') {
|
|
54
53
|
if (isInstalled()) {
|
|
55
|
-
const pkg = require(path.join(ROOT, 'package.json'));
|
|
56
54
|
const count = fs.readdirSync(path.join(os.homedir(), '.claude', 'skills'))
|
|
57
55
|
.filter(d => fs.lstatSync(path.join(os.homedir(), '.claude', 'skills', d)).isSymbolicLink())
|
|
58
56
|
.length;
|
|
@@ -78,11 +76,9 @@ Commands:
|
|
|
78
76
|
|
|
79
77
|
// Default: check state and guide
|
|
80
78
|
if (isInstalled()) {
|
|
81
|
-
const pkg = require(path.join(ROOT, 'package.json'));
|
|
82
79
|
console.log(`bigpowers v${pkg.version} — already installed.`);
|
|
83
80
|
console.log('Commands: bigpowers {setup|update|status|help}');
|
|
84
81
|
} else {
|
|
85
|
-
const pkg = require(path.join(ROOT, 'package.json'));
|
|
86
82
|
console.log(`🚀 bigpowers v${pkg.version} — skills not yet installed.`);
|
|
87
83
|
console.log(' Run: bigpowers setup');
|
|
88
84
|
process.exit(1);
|
package/package.json
CHANGED