@akanjs/cli 3.0.0-alpha.82 → 3.0.0-alpha.84
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/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a39c669b04132373380cce9a4d43a8a4fa028fbf2d14255e9f7b3a453a7d3c5d
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.84",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@langchain/openai": "^1.4.6",
|
|
34
34
|
"@tailwindcss/node": "^4.3.0",
|
|
35
35
|
"@trapezedev/project": "^7.1.4",
|
|
36
|
-
"akanjs": "3.0.0-alpha.
|
|
36
|
+
"akanjs": "3.0.0-alpha.84",
|
|
37
37
|
"chalk": "^5.6.2",
|
|
38
38
|
"commander": "^14.0.3",
|
|
39
39
|
"dayjs": "^1.11.20",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
set -e
|
|
2
|
+
|
|
3
|
+
# Find commit files
|
|
4
|
+
echo "Finding commit files..."
|
|
5
|
+
FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g')
|
|
6
|
+
[ -z "$FILES" ] && exit 0
|
|
7
|
+
|
|
8
|
+
# Filter out ts, tsx, json files, should not exit when there are no lint files
|
|
9
|
+
LINT_FILES=$(echo "$FILES" | grep -E '(\.ts|\.tsx)$' || true)
|
|
10
|
+
|
|
11
|
+
echo "Checking commit files with Biome..."
|
|
12
|
+
# Run Biome autofix if there are lint files. Any remaining errors fail the commit.
|
|
13
|
+
if [ -n "$LINT_FILES" ]; then
|
|
14
|
+
echo "$LINT_FILES" | xargs ./node_modules/.bin/biome check --write --config-path=.husky/biome.precommit.json --no-errors-on-unmatched --diagnostic-level=error
|
|
15
|
+
echo "$LINT_FILES" | xargs git add --
|
|
16
|
+
fi
|