ahoybuoy 0.3.9 → 0.3.18
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.js +20 -1
- package/package.json +9 -5
- package/README.md +0 -22
package/bin.js
CHANGED
|
@@ -1,2 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import '
|
|
2
|
+
import { createRequire } from 'module';
|
|
3
|
+
import { resolve, dirname } from 'path';
|
|
4
|
+
import { execFileSync } from 'child_process';
|
|
5
|
+
import { fileURLToPath } from 'url';
|
|
6
|
+
|
|
7
|
+
// Find the @buoy-design/cli bin entry
|
|
8
|
+
const require = createRequire(import.meta.url);
|
|
9
|
+
const cliPkg = require.resolve('@buoy-design/cli/package.json');
|
|
10
|
+
const cliDir = dirname(cliPkg);
|
|
11
|
+
const cliBin = resolve(cliDir, 'dist', 'bin.js');
|
|
12
|
+
|
|
13
|
+
// Forward all args to the real CLI
|
|
14
|
+
try {
|
|
15
|
+
execFileSync(process.execPath, [cliBin, ...process.argv.slice(2)], {
|
|
16
|
+
stdio: 'inherit',
|
|
17
|
+
env: process.env,
|
|
18
|
+
});
|
|
19
|
+
} catch (e) {
|
|
20
|
+
process.exit(e.status ?? 1);
|
|
21
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ahoybuoy",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
4
4
|
"description": "Catch design drift before it ships",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/ahoybuoy/buoy.git",
|
|
12
|
-
"directory": "
|
|
12
|
+
"directory": "packages/ahoybuoy"
|
|
13
13
|
},
|
|
14
14
|
"bugs": {
|
|
15
15
|
"url": "https://github.com/ahoybuoy/buoy/issues"
|
|
@@ -21,11 +21,15 @@
|
|
|
21
21
|
"cli",
|
|
22
22
|
"design-tokens"
|
|
23
23
|
],
|
|
24
|
+
"files": [
|
|
25
|
+
"bin.js",
|
|
26
|
+
"README.md"
|
|
27
|
+
],
|
|
24
28
|
"bin": {
|
|
25
|
-
"
|
|
26
|
-
"
|
|
29
|
+
"buoy": "./bin.js",
|
|
30
|
+
"ahoybuoy": "./bin.js"
|
|
27
31
|
},
|
|
28
32
|
"dependencies": {
|
|
29
|
-
"@buoy-design/cli": "
|
|
33
|
+
"@buoy-design/cli": "0.3.18"
|
|
30
34
|
}
|
|
31
35
|
}
|
package/README.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# ahoybuoy
|
|
2
|
-
|
|
3
|
-
Catch design drift before it ships.
|
|
4
|
-
|
|
5
|
-
## Quick Start
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npx ahoybuoy begin
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
Or install globally:
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npm install -g ahoybuoy
|
|
15
|
-
buoy begin
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## About
|
|
19
|
-
|
|
20
|
-
This is the official CLI for [Buoy](https://buoy.design) - catch design system drift before it ships.
|
|
21
|
-
|
|
22
|
-
See the [full documentation](https://github.com/ahoybuoy/buoy) for more details.
|