@features-cli/feature-cli-darwin-x64 0.4.14 → 0.5.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/features +0 -0
- package/package.json +9 -2
- package/postinstall.js +18 -0
package/features
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@features-cli/feature-cli-darwin-x64",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Features CLI for darwin-x64",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -10,10 +10,17 @@
|
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"provenance": true
|
|
12
12
|
},
|
|
13
|
+
"files": [
|
|
14
|
+
"features*",
|
|
15
|
+
"postinstall.js"
|
|
16
|
+
],
|
|
13
17
|
"os": [
|
|
14
18
|
"darwin"
|
|
15
19
|
],
|
|
16
20
|
"cpu": [
|
|
17
21
|
"x64"
|
|
18
|
-
]
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"postinstall": "node postinstall.js"
|
|
25
|
+
}
|
|
19
26
|
}
|
package/postinstall.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const fs = require('fs');
|
|
3
|
+
const path = require('path');
|
|
4
|
+
|
|
5
|
+
// Find the binary file
|
|
6
|
+
const files = fs.readdirSync(__dirname);
|
|
7
|
+
const binaryFile = files.find(f => f.startsWith('features'));
|
|
8
|
+
|
|
9
|
+
if (binaryFile) {
|
|
10
|
+
const binaryPath = path.join(__dirname, binaryFile);
|
|
11
|
+
try {
|
|
12
|
+
// Make the binary executable (chmod +x)
|
|
13
|
+
fs.chmodSync(binaryPath, 0o755);
|
|
14
|
+
console.log(`Made ${binaryFile} executable`);
|
|
15
|
+
} catch (err) {
|
|
16
|
+
console.warn(`Warning: Could not make ${binaryFile} executable:`, err.message);
|
|
17
|
+
}
|
|
18
|
+
}
|