stackboi 0.1.1 → 0.1.3

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.
Files changed (2) hide show
  1. package/dist/cli.js +7 -7
  2. package/package.json +25 -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/darwin-arm64',
11
- 'darwin-x64': '@stackboi/darwin-x64',
12
- 'linux-x64': '@stackboi/linux-x64',
13
- 'linux-arm64': '@stackboi/linux-arm64',
14
- 'win32-x64': '@stackboi/win32-x64',
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?.stackboi || 'stackboi'
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 stackboi: ${result.error.message}`)
58
+ console.error(`Failed to run sb: ${result.error.message}`)
59
59
  process.exit(1)
60
60
  }
61
61
 
package/package.json CHANGED
@@ -1,7 +1,23 @@
1
1
  {
2
2
  "name": "stackboi",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "A stacked branch workflow tool",
5
+ "keywords": [
6
+ "cli",
7
+ "git",
8
+ "stacked-branches",
9
+ "workflow"
10
+ ],
11
+ "homepage": "https://github.com/rohannair/stackboi#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/rohannair/stackboi/issues"
14
+ },
15
+ "license": "GPL-3.0",
16
+ "author": "Rohan Nair",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/rohannair/stackboi.git"
20
+ },
5
21
  "bin": {
6
22
  "sb": "dist/cli.js"
7
23
  },
@@ -42,10 +58,13 @@
42
58
  "typescript": "^5"
43
59
  },
44
60
  "optionalDependencies": {
45
- "@stackboi/darwin-arm64": "0.1.1",
46
- "@stackboi/darwin-x64": "0.1.1",
47
- "@stackboi/linux-arm64": "0.1.1",
48
- "@stackboi/linux-x64": "0.1.1",
49
- "@stackboi/win32-x64": "0.1.1"
61
+ "@rohannair/stackboi-darwin-arm64": "0.1.3",
62
+ "@rohannair/stackboi-darwin-x64": "0.1.3",
63
+ "@rohannair/stackboi-linux-arm64": "0.1.3",
64
+ "@rohannair/stackboi-linux-x64": "0.1.3",
65
+ "@rohannair/stackboi-win32-x64": "0.1.3"
66
+ },
67
+ "engines": {
68
+ "node": ">=18"
50
69
  }
51
70
  }