permachine 0.2.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/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "permachine",
3
+ "version": "0.2.0",
4
+ "description": "Automatically merge machine-specific config files with base configs using git hooks",
5
+ "type": "module",
6
+ "bin": {
7
+ "permachine": "./dist/cli.js"
8
+ },
9
+ "scripts": {
10
+ "build": "bun build src/cli.ts --outdir dist --target node --format esm",
11
+ "test": "bun test",
12
+ "test:watch": "bun test --watch",
13
+ "dev": "bun run src/cli.ts",
14
+ "prepublishOnly": "bun run build"
15
+ },
16
+ "keywords": [
17
+ "git",
18
+ "config",
19
+ "merge",
20
+ "machine-specific",
21
+ "per-machine",
22
+ "dotenv",
23
+ "json",
24
+ "git-hooks",
25
+ "environment",
26
+ "configuration",
27
+ "multi-machine",
28
+ "cross-machine"
29
+ ],
30
+ "author": "JosXa",
31
+ "license": "MIT",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "https://github.com/JosXa/permachine.git"
35
+ },
36
+ "bugs": {
37
+ "url": "https://github.com/JosXa/permachine/issues"
38
+ },
39
+ "homepage": "https://github.com/JosXa/permachine#readme",
40
+ "files": [
41
+ "dist",
42
+ "templates",
43
+ "README.md",
44
+ "LICENSE"
45
+ ],
46
+ "devDependencies": {
47
+ "@types/bun": "latest",
48
+ "@types/node": "^25.0.6",
49
+ "bun-types": "latest"
50
+ },
51
+ "dependencies": {
52
+ "chokidar": "^5.0.0",
53
+ "glob": "^13.0.0",
54
+ "minimist": "^1.2.8",
55
+ "strip-json-comments": "^5.0.3"
56
+ },
57
+ "engines": {
58
+ "node": ">=18.0.0"
59
+ }
60
+ }
@@ -0,0 +1,7 @@
1
+ #!/bin/sh
2
+ # Auto-generated by permachine
3
+ # This hook runs after checkout (branch switching)
4
+
5
+ permachine merge --silent
6
+
7
+ exit 0
@@ -0,0 +1,7 @@
1
+ #!/bin/sh
2
+ # Auto-generated by permachine
3
+ # This hook runs after commit
4
+
5
+ permachine merge --silent
6
+
7
+ exit 0
@@ -0,0 +1,7 @@
1
+ #!/bin/sh
2
+ # Auto-generated by permachine
3
+ # This hook runs after merge/pull
4
+
5
+ permachine merge --silent
6
+
7
+ exit 0