@fatsolutions/ganchos 1.0.3 → 1.0.5
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/dist/bootstrap.js
CHANGED
|
File without changes
|
|
@@ -29,4 +29,15 @@ if [ -n "$JS_FILES" ]; then
|
|
|
29
29
|
exit 1
|
|
30
30
|
}
|
|
31
31
|
fi
|
|
32
|
+
|
|
33
|
+
# Check if files were modified by auto-fix
|
|
34
|
+
MODIFIED=$(echo "$JS_FILES" | xargs git diff --name-only)
|
|
35
|
+
if [ -n "$MODIFIED" ]; then
|
|
36
|
+
echo ""
|
|
37
|
+
echo "The following files were auto-fixed:"
|
|
38
|
+
echo "$MODIFIED" | sed 's/^/ /'
|
|
39
|
+
echo ""
|
|
40
|
+
echo "Please review the changes and commit again."
|
|
41
|
+
exit 1
|
|
42
|
+
fi
|
|
32
43
|
fi
|
|
@@ -47,4 +47,15 @@ if [ -n "$TS_FILES" ]; then
|
|
|
47
47
|
exit 1
|
|
48
48
|
}
|
|
49
49
|
fi
|
|
50
|
+
|
|
51
|
+
# Check if files were modified by auto-fix
|
|
52
|
+
MODIFIED=$(echo "$TS_FILES" | xargs git diff --name-only)
|
|
53
|
+
if [ -n "$MODIFIED" ]; then
|
|
54
|
+
echo ""
|
|
55
|
+
echo "The following files were auto-fixed:"
|
|
56
|
+
echo "$MODIFIED" | sed 's/^/ /'
|
|
57
|
+
echo ""
|
|
58
|
+
echo "Please review the changes and commit again."
|
|
59
|
+
exit 1
|
|
60
|
+
fi
|
|
50
61
|
fi
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fatsolutions/ganchos",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Git Hook Manager for Polyglot Monorepos, developed in house by FatSolutions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"bin": {
|
|
9
|
+
"ganchos-bootstrap": "./dist/bootstrap.js",
|
|
9
10
|
"ganchos": "./dist/index.js"
|
|
10
11
|
},
|
|
11
12
|
"files": [
|
|
@@ -38,7 +39,6 @@
|
|
|
38
39
|
"registry": "https://registry.npmjs.org"
|
|
39
40
|
},
|
|
40
41
|
"scripts": {
|
|
41
|
-
"postinstall": "node dist/bootstrap.js",
|
|
42
42
|
"build": "tsup && tsc -p tsconfig.configs.json",
|
|
43
43
|
"build:dev": "tsc -p tsconfig.build.json && tsc -p tsconfig.configs.json",
|
|
44
44
|
"dev": "tsup --watch",
|