diff --git a/.husky/pre-push b/.husky/pre-push
index f75c5cf..8b31092 100755
--- a/.husky/pre-push
+++ b/.husky/pre-push
@@ -77,6 +77,6 @@ echo "";
# Run all the tests
echo "Running tests";
-npx --no nps test;
+npx --no -- nps test;
exit 0;
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d1f3312..de06db3 100755
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+## 0.8.5 (2024-05-05)
+
+
+
+
## 0.8.4 (2024-05-05)
- style: change casing of submodules to be uppercase always ([b2798a6](https://github.com/gobstones/gobstones-scripts/commit/b2798a6))
diff --git a/package.json b/package.json
index a5a8764..f0eeb0a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@gobstones/gobstones-scripts",
- "version": "0.8.4",
+ "version": "0.8.5",
"description": "Scripts to abstract away build configuration of Gobstones Project's libraries and modules.",
"repository": {
"type": "git",
diff --git a/project-types/NonCode/package-definition.json b/project-types/NonCode/package-definition.json
index 4b4636e..acc2366 100644
--- a/project-types/NonCode/package-definition.json
+++ b/project-types/NonCode/package-definition.json
@@ -42,7 +42,7 @@
},
"dependencies": {},
"devDependencies": {
- "@gobstones/gobstones-scripts": "^0.8.4",
+ "@gobstones/gobstones-scripts": "^0.8.5",
"husky": "^8.0.2"
}
}
diff --git a/project-types/cliLibrary/package-definition.json b/project-types/cliLibrary/package-definition.json
index 4f8ea9d..f84a30d 100644
--- a/project-types/cliLibrary/package-definition.json
+++ b/project-types/cliLibrary/package-definition.json
@@ -59,7 +59,7 @@
"commander": "^11.1.0"
},
"devDependencies": {
- "@gobstones/gobstones-scripts": "^0.8.4",
+ "@gobstones/gobstones-scripts": "^0.8.5",
"husky": "^8.0.2"
}
}
diff --git a/project-types/common/husky/pre-commit b/project-types/common/husky/pre-commit
index 5088ade..0cfbe23 100755
--- a/project-types/common/husky/pre-commit
+++ b/project-types/common/husky/pre-commit
@@ -38,7 +38,7 @@ echo "";
# Run license
echo "\nAdd license text to code files\n";
-npx --no gobstones-scripts run license --silent ;
+npx --no -- gobstones-scripts run license --silent ;
# Run prettify
echo "Run prettify\n";
@@ -46,7 +46,7 @@ npx --no -- gobstones-scripts run prettify --silent ;
# Run changelog
echo "\nRun changelog\n";
-npx --no gobstones-scripts run changelog --silent ;
+npx --no -- gobstones-scripts run changelog --silent ;
# Add all generated files
echo "\nAdd generated files to commit\n";
diff --git a/project-types/common/husky/pre-push b/project-types/common/husky/pre-push
index a2a3c89..6d1acf0 100755
--- a/project-types/common/husky/pre-push
+++ b/project-types/common/husky/pre-push
@@ -8,12 +8,29 @@ REMOTE_NAME=$1;
REMOTE_URL=$2;
# Read the input and split it approprietly
INPUT=$(cat);
-INPUT_ARR=($INPUT);
+COUNTER=0;
+for WORD in $INPUT; do
+ case $COUNTER in
+ 0)
+ LOCAL_REF=$WORD;;
+ 1)
+ LOCAL_OBJ_NAME=$WORD;;
+ 2)
+ REMOTE_REF=$WORD;;
+ 3)
+ REMOTE_OBJ_NAME=$WORD;;
+ esac
+ COUNTER=$((COUNTER + 1))
+done
-LOCAL_REF=${INPUT_ARR[0]}
-LOCAL_OBJ_NAME=${INPUT_ARR[1]}
-REMOTE_REF=${INPUT_ARR[2]}
-REMOTE_OBJ_NAME=${INPUT_ARR[3]}
+case "$LOCAL_REF" in
+ refs\/tags*)
+ # Apply specific code when publishing tags
+ IS_TAG=1;;
+ *)
+ # Apply specific code when publishing any branch
+ IS_TAG=0;;
+esac
# Set failing on command fail, and undefined variable use
set -eu;
diff --git a/project-types/library/package-definition.json b/project-types/library/package-definition.json
index ff5a18f..396b854 100644
--- a/project-types/library/package-definition.json
+++ b/project-types/library/package-definition.json
@@ -44,7 +44,7 @@
"@gobstones/gobstones-core": "^0.4.7"
},
"devDependencies": {
- "@gobstones/gobstones-scripts": "^0.8.4",
+ "@gobstones/gobstones-scripts": "^0.8.5",
"husky": "^8.0.2"
}
}
diff --git a/project-types/reactLibrary/package-definition.json b/project-types/reactLibrary/package-definition.json
index ea0c0b8..cab92e0 100644
--- a/project-types/reactLibrary/package-definition.json
+++ b/project-types/reactLibrary/package-definition.json
@@ -47,7 +47,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
- "@gobstones/gobstones-scripts": "^0.8.4",
+ "@gobstones/gobstones-scripts": "^0.8.5",
"husky": "^8.0.2"
}
}
diff --git a/src/Config/about.ts b/src/Config/about.ts
index 89baad2..a8bf522 100644
--- a/src/Config/about.ts
+++ b/src/Config/about.ts
@@ -23,7 +23,7 @@
*
* @group Internal: Values
*/
-export const version = '0.8.4';
+export const version = '0.8.5';
/**
* The tool's test server address.