stackboi 0.1.1 → 0.1.2
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/dist/cli.js +7 -7
- package/package.json +6 -6
package/dist/cli.js
CHANGED
|
@@ -7,11 +7,11 @@ import path from 'node:path'
|
|
|
7
7
|
const require = createRequire(import.meta.url)
|
|
8
8
|
|
|
9
9
|
const PLATFORMS = {
|
|
10
|
-
'darwin-arm64': '@stackboi
|
|
11
|
-
'darwin-x64': '@stackboi
|
|
12
|
-
'linux-x64': '@stackboi
|
|
13
|
-
'linux-arm64': '@stackboi
|
|
14
|
-
'win32-x64': '@stackboi
|
|
10
|
+
'darwin-arm64': '@rohannair/stackboi-darwin-arm64',
|
|
11
|
+
'darwin-x64': '@rohannair/stackboi-darwin-x64',
|
|
12
|
+
'linux-x64': '@rohannair/stackboi-linux-x64',
|
|
13
|
+
'linux-arm64': '@rohannair/stackboi-linux-arm64',
|
|
14
|
+
'win32-x64': '@rohannair/stackboi-win32-x64',
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
function getPlatformPackage() {
|
|
@@ -36,7 +36,7 @@ function getBinaryPath() {
|
|
|
36
36
|
const pkgPath = require.resolve(`${pkg}/package.json`)
|
|
37
37
|
const pkgDir = path.dirname(pkgPath)
|
|
38
38
|
const pkgJson = require(pkgPath)
|
|
39
|
-
const binName = pkgJson.bin?.
|
|
39
|
+
const binName = pkgJson.bin?.sb || 'sb'
|
|
40
40
|
return path.join(pkgDir, binName)
|
|
41
41
|
} catch {
|
|
42
42
|
console.error(`Failed to find binary for your platform.`)
|
|
@@ -55,7 +55,7 @@ const result = spawnSync(binaryPath, args, {
|
|
|
55
55
|
})
|
|
56
56
|
|
|
57
57
|
if (result.error) {
|
|
58
|
-
console.error(`Failed to run
|
|
58
|
+
console.error(`Failed to run sb: ${result.error.message}`)
|
|
59
59
|
process.exit(1)
|
|
60
60
|
}
|
|
61
61
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stackboi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "A stacked branch workflow tool",
|
|
5
5
|
"bin": {
|
|
6
6
|
"sb": "dist/cli.js"
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"typescript": "^5"
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
45
|
-
"@stackboi
|
|
46
|
-
"@stackboi
|
|
47
|
-
"@stackboi
|
|
48
|
-
"@stackboi
|
|
49
|
-
"@stackboi
|
|
45
|
+
"@rohannair/stackboi-darwin-arm64": "0.1.2",
|
|
46
|
+
"@rohannair/stackboi-darwin-x64": "0.1.2",
|
|
47
|
+
"@rohannair/stackboi-linux-arm64": "0.1.2",
|
|
48
|
+
"@rohannair/stackboi-linux-x64": "0.1.2",
|
|
49
|
+
"@rohannair/stackboi-win32-x64": "0.1.2"
|
|
50
50
|
}
|
|
51
51
|
}
|