yf-commit 0.3.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/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # yf-commit
2
+
3
+ Unscoped alias of [`@yourfam/yf-commit`](https://www.npmjs.com/package/@yourfam/yf-commit). Same command, same version.
4
+
5
+ ```bash
6
+ npx yf-commit --help
7
+ ```
8
+
9
+ Install the scoped package if you can; this name exists so `npx yf-commit` cannot be taken by someone else.
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { spawn } from "node:child_process";
4
+ import { createRequire } from "node:module";
5
+
6
+ const require = createRequire(import.meta.url);
7
+ const cli = require.resolve("@yourfam/yf-commit/bin/yf-commit.js");
8
+ const child = spawn(process.execPath, [cli, ...process.argv.slice(2)], {
9
+ stdio: "inherit",
10
+ windowsHide: true,
11
+ });
12
+ child.on("exit", (code, signal) => {
13
+ if (signal) {
14
+ process.kill(process.pid, signal);
15
+ return;
16
+ }
17
+ process.exit(code ?? 1);
18
+ });
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "yf-commit",
3
+ "version": "0.3.0",
4
+ "description": "Unscoped alias of @yourfam/yf-commit — AI commit message from your staged git diff",
5
+ "type": "module",
6
+ "bin": {
7
+ "yf-commit": "bin/yf-commit.js"
8
+ },
9
+ "files": [
10
+ "bin",
11
+ "README.md"
12
+ ],
13
+ "engines": {
14
+ "node": ">=20"
15
+ },
16
+ "keywords": [
17
+ "git",
18
+ "commit",
19
+ "conventional-commits",
20
+ "cli"
21
+ ],
22
+ "author": {
23
+ "name": "YourFam",
24
+ "email": "kamal@yourfam.co",
25
+ "url": "https://github.com/YourFam"
26
+ },
27
+ "license": "MIT",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/YourFam/yf-commit.git",
31
+ "directory": "alias"
32
+ },
33
+ "bugs": {
34
+ "url": "https://github.com/YourFam/yf-commit/issues"
35
+ },
36
+ "homepage": "https://github.com/YourFam/yf-commit#readme",
37
+ "publishConfig": {
38
+ "access": "public"
39
+ },
40
+ "dependencies": {
41
+ "@yourfam/yf-commit": "0.3.0"
42
+ }
43
+ }