🐛 🔧 chore: husky git hooks

fix: added windows support
pull/16/head
Boaz Poolman 2021-05-12 17:24:42 +02:00 committed by alexzrp
parent 9c33ed50de
commit f78d6643b7
6 changed files with 10 additions and 6 deletions

1
.husky/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_

0
.husky/commit-msg Normal file → Executable file
View File

0
.husky/pre-commit Normal file → Executable file
View File

View File

@ -41,5 +41,8 @@
"license": "MIT",
"devDependencies": {
"husky": "^6.0.0"
},
"scripts": {
"prepare": "husky install"
}
}

View File

@ -45,7 +45,7 @@ module.exports = {
) {
await strapi.plugins['config-sync'].services.main.deleteConfigFile(configName);
} else {
await strapi.plugins['config-sync'].services.main.writeConfigFile(configPrefix, currentConfig.key, currentConfig);
await strapi.plugins['config-sync'].services.main.writeConfigFile(configPrefix, currentConfig.key.replace('::', '##'), currentConfig);
}
}));
},

View File

@ -94,7 +94,7 @@ module.exports = {
await Promise.all(configFiles.map(async (file) => {
const type = file.split('.')[0]; // Grab the first part of the filename.
const name = file.split(/\.(.+)/)[1].split('.').slice(0, -1).join('.'); // Grab the rest of the filename minus the file extension.
const name = file.split(/\.(.+)/)[1].split('.').slice(0, -1).join('.').replace('##', '::'); // Grab the rest of the filename minus the file extension.
if (
configType && configType !== type ||