rigsmith 0.0.1 → 1.0.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/bin/rigsmith.js +13 -0
- package/package.json +15 -10
- package/README.md +0 -1
package/bin/rigsmith.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict'
|
|
3
|
+
const { spawnSync } = require('node:child_process')
|
|
4
|
+
const TOOLS = ["rig","shiprig","changerig","clauderig"]
|
|
5
|
+
const [tool, ...rest] = process.argv.slice(2)
|
|
6
|
+
if (!tool || !TOOLS.includes(tool)) {
|
|
7
|
+
console.log('rigsmith — the CLI family: ' + TOOLS.join(', '))
|
|
8
|
+
console.log('Usage: rigsmith <tool> [args] (each tool is also installed on its own, e.g. \`rig\`)')
|
|
9
|
+
process.exit(tool ? 1 : 0)
|
|
10
|
+
}
|
|
11
|
+
const shim = require.resolve('@rigsmith/' + tool + '/bin/' + tool + '.js')
|
|
12
|
+
const res = spawnSync(process.execPath, [shim, ...rest], { stdio: 'inherit' })
|
|
13
|
+
process.exit(res.status === null ? 1 : res.status)
|
package/package.json
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "rigsmith",
|
|
3
|
-
"version": "0.0
|
|
2
|
+
"name": "rigsmith",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "The rigsmith CLI family: rig, shiprig, changerig, clauderig",
|
|
4
5
|
"license": "MIT",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
"scripts": {
|
|
9
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
6
|
+
"homepage": "https://rigsmith.dev",
|
|
7
|
+
"bin": {
|
|
8
|
+
"rigsmith": "bin/rigsmith.js"
|
|
10
9
|
},
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
"files": [
|
|
11
|
+
"bin"
|
|
12
|
+
],
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@rigsmith/rig": "1.0.0",
|
|
15
|
+
"@rigsmith/shiprig": "1.0.0",
|
|
16
|
+
"@rigsmith/changerig": "1.0.0",
|
|
17
|
+
"@rigsmith/clauderig": "1.0.0"
|
|
18
|
+
}
|
|
14
19
|
}
|
package/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Placeholder — see homepage.
|